@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap");
:root {
  --ink: #13242d;
  --muted: #61727a;
  --paper: #f7faf9;
  --white: #fff;
  --green: #176b5b;
  --green2: #0f5145;
  --mint: #def3ec;
  --line: #dce6e2;
  --shadow: 0 18px 55px rgba(19, 36, 45, 0.09);
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="ar"] body {
  font-family: "Noto Kufi Arabic", Tahoma, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button,
.nav-cta,
a {
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: #fff;
  padding: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  min-height: 76px;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.brand b {
  color: var(--green);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a {
  color: #405159;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}
.language-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.nav-cta,
.button.primary {
  background: var(--green);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(23, 107, 91, 0.2);
}
.nav-cta:hover,
.button.primary:hover {
  background: var(--green2);
  transform: translateY(-1px);
}
.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
}
.hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 85% 20%, #d7efe7 0, transparent 34%),
    linear-gradient(160deg, #fbfdfc, #edf6f2);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 62px;
}
.eyebrow,
.kicker {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero h1,
.page-intro h1 {
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin: 14px 0 22px;
}
.hero h1 span {
  color: var(--green);
}
html[lang="ar"] .hero h1,
html[lang="ar"] .page-intro h1 {
  letter-spacing: 0;
  line-height: 1.32;
}
.hero-copy,
.page-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #405159;
  font-size: 0.88rem;
}
.trust-row span:before {
  content: "✓";
  color: var(--green);
  margin-inline-end: 7px;
  font-weight: 700;
}
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-card p {
  margin: 14px 4px 2px;
  color: var(--muted);
}
.section {
  padding: 82px 0;
}
.section.light {
  background: #fff;
}
.section.soft {
  background: #edf6f2;
}
.section.deep {
  background: var(--ink);
  color: #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head h2,
.form-copy h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin: 8px 0;
}
.section-head > p {
  max-width: 540px;
  color: var(--muted);
}
.deep .section-head > p,
.deep .form-copy p {
  color: #c8d3d5;
}
.service-grid,
.package-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-grid.four {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  font-size: 1.28rem;
  margin: 10px 0;
}
.card p {
  color: var(--muted);
}
.card-number {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--green);
}
.text-link {
  color: var(--green);
  font-weight: 700;
}
.page-intro {
  padding: 70px 0 56px;
  background: linear-gradient(150deg, #f9fcfb, #e7f4ef);
}
.page-intro h1 {
  font-size: clamp(2.45rem, 5vw, 4.4rem);
}
.detail-list {
  display: grid;
  gap: 14px;
}
.detail-row {
  display: grid;
  grid-template-columns: 55px 1fr 1.15fr;
  gap: 24px;
  align-items: start;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}
.detail-row > span {
  color: #8bd2bf;
  font-weight: 700;
}
.detail-row h2,
.detail-row p {
  margin: 0;
}
.detail-row p {
  color: #c8d3d5;
}
.package-card {
  display: flex;
  flex-direction: column;
}
.package-card.featured {
  border: 2px solid var(--green);
  transform: translateY(-7px);
}
.price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 14px 0;
}
.price small {
  font-size: 0.8rem;
  color: var(--muted);
}
.package-card ul {
  padding-inline-start: 20px;
  color: var(--muted);
  flex: 1;
}
.custom-payment {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.amount-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.amount-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.amount-input input {
  border: 0;
  padding: 13px 8px;
  width: 170px;
  outline: 0;
}
.form-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}
.service-mini {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}
.service-mini p {
  margin: 6px 0 0;
  color: var(--muted);
}
.deep .service-mini p {
  color: #c8d3d5;
}
.form-panel {
  background: #fff;
  color: var(--ink);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.secure-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--mint);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  color: #164d42;
}
.secure-icon {
  font-size: 1.35rem;
}
.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.checkout-steps span {
  flex: 1;
  border-radius: 999px;
  background: #edf2f0;
  padding: 7px 10px;
  text-align: center;
  font-size: 0.78rem;
}
.checkout-steps span:first-child {
  background: var(--green);
  color: #fff;
}
.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.order-summary small {
  display: block;
  color: var(--muted);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.88rem;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccd9d4;
  border-radius: 13px;
  padding: 12px 13px;
  background: #fbfdfc;
  outline: 0;
  min-height: 48px;
  font-size: 1rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.12);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500 !important;
}
.check input {
  width: auto;
  margin-top: 5px;
}
.form-status {
  min-height: 24px;
  margin: 10px 0 0;
}
.form-status.error {
  color: #a23535;
}
.form-status.success {
  color: var(--green);
}
.preserve {
  white-space: pre-wrap;
}
.privacy-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.note {
  border-inline-start: 3px solid #d7ad55;
  padding: 12px 16px;
  background: rgba(244, 234, 215, 0.1);
  color: inherit;
}
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--green);
  color: #fff;
  padding: 34px;
  border-radius: var(--radius);
}
.cta-band p {
  color: #d8ebe5;
}
.cta-band .button {
  background: #fff;
  color: var(--green);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 22px;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}
.faq-list p,
.legal p {
  color: var(--muted);
}
.legal {
  max-width: 850px;
}
.site-footer {
  background: #0d1b22;
  color: #e7eeee;
  padding: 58px 0 22px;
}
.footer-main,
.footer-bottom {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-main p {
  max-width: 430px;
  color: #aebdc1;
}
.footer-main h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #83c8b7;
}
.footer-main > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 20px;
  color: #8fa2a7;
  font-size: 0.85rem;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: 0.5s;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .nav-shell {
    min-height: 68px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    inset-inline: 12px;
    background: #fff;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 11px;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--mint);
  }
  .site-nav .language-link {
    border: 0;
  }
  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }
  .nav-open .site-nav {
    display: flex;
  }
  .hero-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 54px 0 64px;
  }
  .service-grid,
  .package-grid,
  .principle-grid,
  .service-grid.four {
    grid-template-columns: 1fr;
  }
  .package-card.featured {
    transform: none;
  }
  .detail-row {
    grid-template-columns: 42px 1fr;
  }
  .detail-row p {
    grid-column: 2;
  }
  .section-head,
  .custom-payment,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .amount-form {
    width: 100%;
  }
  .amount-form .field {
    flex: 1;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 24px), 1120px);
  }
  .nav-shell {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 0.98rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .section {
    padding: 52px 0;
  }
  .page-intro {
    padding: 48px 0 42px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.75rem);
    line-height: 1.08;
    margin-bottom: 18px;
  }
  html[lang="ar"] .hero h1 {
    line-height: 1.32;
  }
  .page-intro h1 {
    font-size: clamp(2.15rem, 10vw, 2.7rem);
  }
  .hero-copy,
  .page-intro p {
    font-size: 1rem;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .actions .button,
  .cta-band .button,
  .amount-form .button,
  .form-panel .button {
    width: 100%;
    min-height: 50px;
  }
  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 22px;
  }
  .hero-card {
    padding: 12px;
    border-radius: 22px;
  }
  .hero-card img {
    border-radius: 14px;
  }
  .section-head {
    gap: 10px;
    margin-bottom: 26px;
  }
  .section-head h2,
  .form-copy h2,
  .cta-band h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }
  .card,
  .custom-payment,
  .cta-band {
    padding: 22px;
    border-radius: 18px;
  }
  .detail-row {
    grid-template-columns: 34px 1fr;
    gap: 10px 12px;
    padding: 20px;
  }
  .detail-row p {
    grid-column: 1/-1;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .form-panel {
    padding: 18px;
    border-radius: 18px;
  }
  .secure-banner {
    align-items: flex-start;
  }
  .checkout-steps {
    gap: 6px;
  }
  .checkout-steps span {
    padding: 8px 6px;
    font-size: 0.72rem;
  }
  .order-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .service-mini {
    padding: 16px;
  }
  .amount-form {
    flex-direction: column;
    align-items: stretch;
  }
  .amount-input,
  .amount-input input {
    width: 100%;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-main > div:first-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .site-footer {
    padding-top: 46px;
  }
}

@media (max-width: 360px) {
  .brand span:last-child {
    font-size: 0.9rem;
  }
  .menu-toggle {
    padding-inline: 12px;
  }
  .hero h1 {
    font-size: 2.12rem;
  }
}

.invoice-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px) 16px;
  background:
    radial-gradient(circle at 12% 6%, rgba(32, 151, 127, 0.12), transparent 28rem),
    linear-gradient(145deg, #f3f9f7 0%, #e8f2ef 100%);
}
.invoice-sheet {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e6e1;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(11, 55, 47, 0.13);
}
.invoice-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #0e705f 0 72%, #d7a83b 72% 100%);
}
.invoice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 8px 0 30px;
}
.invoice-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.invoice-brand-lockup .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(18, 120, 102, 0.2);
}
.invoice-brand-lockup strong { display: block; color: #102e29; font-size: 1.32rem; letter-spacing: -0.02em; }
.invoice-brand-lockup strong span { color: #127866; }
.invoice-brand-lockup p { margin: 3px 0 0; color: #6b7976; font-size: 0.78rem; }
.invoice-title-block { text-align: end; }
.invoice-kicker { color: #b17b16; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.invoice-title-block h1 { margin: 3px 0 10px; color: #102e29; font-size: clamp(2.25rem, 6vw, 3.7rem); line-height: 0.95; letter-spacing: -0.055em; }
.invoice-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 8px 15px;
  border: 1.5px solid #a77516;
  border-radius: 999px;
  background: #fff9ec;
  color: #8c5e08;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}
[data-invoice-status][data-status="paid"] .invoice-stamp {
  border-color: #127866;
  background: #eaf8f4;
  color: #127866;
}
[data-invoice-status][data-status="failed"] .invoice-stamp {
  border-color: #b24040;
  background: #fff2f2;
  color: #b24040;
}
.invoice-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 calc(clamp(28px, 5vw, 56px) * -1);
  padding: 18px clamp(28px, 5vw, 56px);
  background: #0f3b34;
  color: #fff;
}
.invoice-meta-strip div { display: grid; gap: 4px; padding-inline: 20px; border-inline-start: 1px solid rgba(255,255,255,0.18); }
.invoice-meta-strip div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.invoice-meta-strip span { color: #b9d5cf; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.invoice-meta-strip strong { font-size: 0.94rem; overflow-wrap: anywhere; }
.invoice-message { margin: 22px 0; padding: 13px 16px; border: 1px solid #d5e9e3; border-radius: 12px; background: #f3faf7; color: #315c54; font-size: 0.9rem; }
.invoice-details { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin: 26px 0 30px; }
.invoice-panel { padding: 22px; border: 1px solid #dce8e4; border-radius: 17px; background: #fbfdfc; }
.invoice-panel h2 { margin: 0 0 17px; color: #127866; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.invoice-field { display: grid; grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed #dbe5e2; }
.invoice-field:last-child { padding-bottom: 0; border-bottom: 0; }
.invoice-field span { color: #788581; font-size: 0.78rem; }
.invoice-field strong { color: #1c332f; font-size: 0.9rem; overflow-wrap: anywhere; }
.invoice-customer-name strong { color: #102e29; font-size: 1rem; }
.invoice-service-wrap { overflow: hidden; border: 1px solid #d7e5e0; border-radius: 16px; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th,
.invoice-table td { padding: 18px 20px; text-align: start; }
.invoice-table th { padding: 13px 20px; background: #f1f7f5; color: #41645d; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-align: start; text-transform: uppercase; }
.invoice-table td { color: #1c332f; font-weight: 700; border-top: 1px solid #dce8e4; }
.invoice-table th:last-child,
.invoice-table td:last-child { text-align: end; }
.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(390px, 100%);
  margin: 18px 0 0 auto;
  padding: 18px 20px;
  border-radius: 15px;
  background: #127866;
  color: #fff;
}
.invoice-total span { color: #c8e4de; font-size: 0.83rem; }
.invoice-total strong { font-size: 1.35rem; }
[dir="rtl"] .invoice-total { margin-right: auto; margin-left: 0; }
.invoice-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e0e9e6; color: #6a7875; font-size: 0.82rem; }
.invoice-note p { margin: 0; }
.invoice-note strong { color: #244b44; }
.invoice-note-icon { display: inline-grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e5f5f0; color: #127866; font-weight: 900; }
.invoice-sheet > .button-row { margin-top: 28px; }

@media (max-width: 600px) {
  .invoice-page { padding: 10px; }
  .invoice-sheet { padding: 24px 18px; border-radius: 20px; }
  .invoice-heading { align-items: flex-start; flex-direction: column; gap: 24px; padding: 4px 0 24px; }
  .invoice-title-block { width: 100%; text-align: start; }
  .invoice-title-block h1 { font-size: 2.7rem; }
  .invoice-brand-lockup .brand-mark { width: 50px; height: 50px; border-radius: 14px; }
  .invoice-brand-lockup strong { font-size: 1.12rem; }
  .invoice-brand-lockup p { max-width: 210px; font-size: 0.7rem; }
  .invoice-meta-strip { grid-template-columns: 1fr; gap: 0; margin: 0 -18px; padding: 8px 18px; }
  .invoice-meta-strip div { grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 10px 0; border-inline-start: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .invoice-meta-strip div:last-child { border-bottom: 0; }
  .invoice-meta-strip strong { text-align: end; }
  .invoice-message { margin: 18px 0; }
  .invoice-details { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 22px; }
  .invoice-panel { padding: 18px; }
  .invoice-field { grid-template-columns: 1fr; gap: 4px; }
  .invoice-table thead { display: none; }
  .invoice-table,
  .invoice-table tbody,
  .invoice-table tr,
  .invoice-table td { display: block; width: 100%; }
  .invoice-table tr { padding: 8px 16px; }
  .invoice-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 0; border-bottom: 1px solid #e0e9e6; text-align: end; }
  .invoice-table td:last-child { border-bottom: 0; text-align: end; }
  .invoice-table td::before { content: attr(data-label); flex: 0 0 38%; color: #73817d; font-size: 0.76rem; font-weight: 600; text-align: start; }
  .invoice-total { margin-top: 14px; padding: 16px 18px; }
  .invoice-note { align-items: flex-start; }
  .invoice-sheet > .button-row { display: grid; grid-template-columns: 1fr; }
  .invoice-sheet > .button-row .button { width: 100%; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  .invoice-page { padding: 0; background: #fff; }
  .invoice-sheet { width: 100%; padding: 24px; border: 0; border-radius: 0; box-shadow: none; }
  .invoice-heading,
  .invoice-meta-strip,
  .invoice-details,
  .invoice-service-wrap,
  .invoice-total,
  .invoice-note { break-inside: avoid; }
}

.admin-body { min-height: 100vh; background: #edf5f2; }
.admin-shell { width: min(1040px, calc(100% - 28px)); margin: 0 auto; padding: clamp(28px, 6vw, 72px) 0; }
.admin-card {
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
  border: 1px solid #d9e6e2;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(12, 54, 47, 0.1);
}
.admin-card > .brand { margin-bottom: 28px; }
.admin-card h1 { margin: 8px 0 10px; font-size: clamp(2rem, 6vw, 3rem); }
.admin-card form { display: grid; gap: 20px; margin-top: 28px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.text-button { border: 0; background: transparent; color: #126d5e; font: inherit; cursor: pointer; text-decoration: underline; }
.admin-notice { padding: 14px 16px; border: 1px solid #e7d39c; border-radius: 12px; background: #fff9e9; color: #6c5010; }
.admin-confirm { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border-radius: 12px; background: #f0f7f5; font-weight: 650; }
.admin-confirm input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: #127866; }
.invoice-result { margin-top: 28px; padding: 22px; border: 1px solid #a7d0c7; border-radius: 16px; background: #f0faf7; }
.invoice-result h2 { margin: 0 0 10px; }
.admin-history { margin-top: 42px; padding-top: 34px; border-top: 1px solid #dce8e4; }
.admin-history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.admin-history-head h2 { margin: 5px 0 6px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.admin-history-head p { margin: 0; color: var(--muted); }
.admin-search { display: grid; gap: 7px; margin: 24px 0 4px; font-size: 0.88rem; font-weight: 700; }
.admin-search input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #ccd9d4; border-radius: 13px; background: #fbfdfc; font: inherit; outline: 0; }
.admin-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.12); }
.admin-invoice-list { display: grid; gap: 14px; margin-top: 16px; }
.admin-invoice-item { padding: 20px; border: 1px solid #d9e6e2; border-radius: 17px; background: #fbfdfc; }
.admin-invoice-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid #e2ebe8; }
.admin-invoice-title > div { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.admin-paid-badge { padding: 5px 9px; border-radius: 999px; background: #e5f5f0; color: #126d5e; font-size: 0.72rem; font-weight: 800; }
.admin-invoice-amount { color: #103d35; font-size: 1.1rem; }
.admin-invoice-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding: 17px 0; }
.admin-invoice-details div { display: grid; gap: 3px; min-width: 0; }
.admin-invoice-details span { color: var(--muted); font-size: 0.75rem; }
.admin-invoice-details strong { overflow-wrap: anywhere; }
.admin-invoice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-invoice-actions .button { min-height: 42px; padding: 9px 14px; font-size: 0.83rem; }
.admin-copy-status { min-height: 0; margin-bottom: 0; overflow-wrap: anywhere; }
.admin-empty { padding: 26px; border: 1px dashed #bfd0cb; border-radius: 14px; color: var(--muted); text-align: center; }

@media (max-width: 600px) {
  .admin-top { flex-direction: column; }
  .admin-history-head { flex-direction: column; }
  .admin-history-head .button { width: 100%; }
  .admin-invoice-title { align-items: flex-start; flex-direction: column; }
  .admin-invoice-details { grid-template-columns: 1fr; }
  .admin-invoice-actions { display: grid; grid-template-columns: 1fr; }
  .admin-card { border-radius: 18px; }
  .admin-card .button { width: 100%; }
}
