:root {
  --primary: #78cc6d;
  --primary-dark: #56b85c;
  --bg: #f5f7f8;
  --shell-a: #52a7a4;
  --shell-b: #70c96b;
  --card: #ffffff;
  --text: #32343a;
  --muted: #686d76;
  --soft: #969ba4;
  --border: #eeeeee;
  --line: rgba(0, 0, 0, .08);
  --shadow: 10px 10px 20px rgba(20, 27, 36, .08);
  --radius: 6px;
  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #18191f;
  --shell-a: #17181d;
  --shell-b: #202129;
  --card: #31313a;
  --text: rgba(255, 255, 255, .9);
  --muted: rgba(255, 255, 255, .64);
  --soft: rgba(255, 255, 255, .42);
  --border: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .11);
  --shadow: 10px 10px 20px rgba(0, 0, 0, .2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: linear-gradient(135deg, var(--shell-a), var(--shell-b));
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary);
}

p {
  margin: 0 0 1rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--shell-a), var(--shell-b));
  overflow: hidden;
  isolation: isolate;
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.site-bg::before {
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    radial-gradient(circle at 24% 18%, rgba(126, 229, 199, .32), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(160, 190, 255, .24), transparent 34%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  opacity: .44;
  transform: perspective(900px) rotateX(58deg) scale(1.25);
  animation: devGridDrift 18s linear infinite;
}

.site-bg::after {
  background:
    radial-gradient(circle at 12% 74%, rgba(255, 224, 156, .18), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(226, 211, 255, .18), transparent 30%),
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .14) 48%, transparent 78%);
  filter: blur(1px);
  opacity: .72;
  animation: devAurora 13s ease-in-out infinite alternate;
}

[data-theme="dark"] .site-bg::before {
  opacity: .24;
}

[data-theme="dark"] .site-bg::after {
  opacity: .42;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  background: var(--card);
  transition: opacity .28s ease, visibility .28s ease;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(120, 204, 109, .24);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

.btn-outline-secondary,
.btn-link,
.btn:not(.btn-primary) {
  background: #f1f2f4;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .btn-link,
[data-theme="dark"] .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.form-control,
.form-select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(120, 204, 109, .16);
}

textarea.form-control {
  min-height: 146px;
  resize: vertical;
}

.form-error {
  margin: 8px 0 0;
  color: #d22525;
  font-weight: 600;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.check input,
.admin-check input {
  appearance: none;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.check input::before,
.admin-check input::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.check input:checked,
.admin-check input:checked {
  background: var(--primary);
}

.check input:checked::before,
.admin-check input:checked::before {
  opacity: 1;
}

.check input:focus-visible,
.admin-check input:focus-visible {
  outline: 3px solid rgba(120, 204, 109, .22);
  outline-offset: 2px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

/* Public shell */
.portfolio-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
}

.profile-card,
.content-card,
.icon-nav,
.utility-button {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-card,
.content-card,
.icon-nav,
.utility-button,
.site-footer-credit {
  backdrop-filter: blur(12px);
}

.utility-nav {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.utility-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, color .22s ease, box-shadow .22s ease;
}

.utility-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 27, 36, .14);
}

.utility-button i {
  font-size: 26px;
}

.utility-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.utility-cart em {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.profile-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  animation: shellCardIn .74s cubic-bezier(.2, .8, .2, 1) both;
}

.profile-cover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 73%, 50% 86%, 0 73%);
  background:
    linear-gradient(rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)),
    var(--profile-photo-url, url("/images/profile-photo.jpg")) center 13% / cover no-repeat,
    linear-gradient(135deg, #dfeef4 0%, #f7fbff 48%, #d3e1e7 100%);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}

.profile-card:hover .profile-cover {
  transform: scale(1.025);
}

.profile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.avatar {
  display: none;
}

.profile-card h1 {
  max-width: 100%;
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.typed-line {
  min-height: 26px;
  margin: 0 0 22px;
  color: var(--primary);
  overflow: hidden;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}

.social-links a,
.social-links span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  transition: transform .22s ease, color .22s ease;
}

.social-links a:hover,
.social-links span:hover {
  transform: translateY(-3px) scale(1.08);
  color: var(--primary);
}

.headline {
  max-width: 380px;
  color: var(--muted);
}

.availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(120, 204, 109, .12);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.3;
}

.availability i {
  font-size: 10px;
}

.contact-mini {
  width: 100%;
  margin: 20px 0 0;
  color: var(--muted);
}

.contact-mini div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-align: left;
}

.contact-mini dt {
  color: var(--text);
  font-weight: 700;
}

.contact-mini dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 70px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-link:last-child {
  border-right: 0;
}

.profile-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-nav {
  min-width: 0;
  overflow: hidden;
  animation: shellCardIn .78s .08s cubic-bezier(.2, .8, .2, 1) both;
}

.icon-nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: center;
  transition: color .2s ease, transform .2s ease, background .2s ease;
}

.icon-nav a:hover {
  background: rgba(120, 204, 109, .08);
  transform: translateX(2px);
}

.icon-nav a:last-child {
  border-bottom: 0;
}

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

.icon-nav i {
  display: block;
}

.icon-nav span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-card {
  min-width: 0;
  color: var(--muted);
  animation: shellCardIn .82s .14s cubic-bezier(.2, .8, .2, 1) both;
}

.content-card::-webkit-scrollbar,
.cart-table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.content-card::-webkit-scrollbar-thumb,
.cart-table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 120, 120, .45);
}

.card-stage {
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.section-card,
.section-block {
  min-width: 0;
  background: var(--card);
  color: var(--muted);
}

.motion-reveal {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  filter: blur(8px);
  transition:
    opacity .62s ease,
    transform .62s cubic-bezier(.2, .8, .2, 1),
    filter .62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.card-stage > [data-section-card] {
  display: none;
}

.card-stage > [data-section-card].active-card,
.card-stage > [data-section-card].leaving-card {
  display: block;
}

.card-stage--animating {
  overflow: clip;
  --card-shift: 34px;
  --card-tilt: .7deg;
  --card-pastel-a: rgba(120, 204, 109, .18);
  --card-pastel-b: rgba(142, 207, 255, .14);
}

.card-stage--animating.card-stage--backward {
  --card-shift: -34px;
  --card-tilt: -.7deg;
}

.card-stage--mist {
  --card-pastel-a: rgba(120, 204, 109, .2);
  --card-pastel-b: rgba(151, 219, 255, .16);
}

.card-stage--mint {
  --card-pastel-a: rgba(120, 204, 109, .22);
  --card-pastel-b: rgba(232, 216, 255, .18);
}

.card-stage--pearl {
  --card-pastel-a: rgba(255, 221, 154, .18);
  --card-pastel-b: rgba(120, 204, 109, .18);
}

.card-stage--animating > [data-section-card] {
  transform-origin: 50% 18%;
  will-change: opacity, transform, filter, clip-path;
}

.card-stage--animating > [data-section-card].active-card {
  position: relative;
  z-index: 2;
  animation: cardPastelEnter .72s cubic-bezier(.2, .8, .2, 1) both;
}

.card-stage--animating > [data-section-card].leaving-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  pointer-events: none;
  animation: cardPastelLeave .54s cubic-bezier(.4, 0, .2, 1) both;
}

.card-stage--animating > [data-section-card].active-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 10%, var(--card-pastel-a), transparent 34%),
    radial-gradient(circle at 88% 18%, var(--card-pastel-b), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 44%);
  opacity: 0;
  pointer-events: none;
  animation: cardPastelWash .7s ease both;
}

.card-stage--animating > [data-section-card].active-card > * {
  position: relative;
  z-index: 1;
  animation: cardContentSettle .68s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes cardPastelEnter {
  0% {
    opacity: 0;
    transform: translate3d(var(--card-shift), 18px, 0) scale(.972) rotate(var(--card-tilt));
    filter: blur(8px) saturate(.92);
    clip-path: inset(5% 7% 8% 7% round 18px);
    box-shadow: 0 8px 20px rgba(20, 27, 36, .04);
  }
  56% {
    opacity: 1;
    filter: blur(0) saturate(1.04);
    clip-path: inset(0 0 0 0 round 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
    filter: none;
    clip-path: inset(0 0 0 0 round 0);
    box-shadow: var(--shadow);
  }
}

@keyframes cardPastelLeave {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--card-shift) * -0.45), -12px, 0) scale(.985);
    filter: blur(6px) saturate(.9);
  }
}

@keyframes cardPastelWash {
  0% {
    opacity: 0;
    transform: scale(.96);
  }
  35% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@keyframes cardContentSettle {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-block > h2,
.section-card > h2,
.about-subtitle,
.resume-subtitle,
.contact-form-title,
.cart-card > h2,
.section-title-row > h2 {
  position: relative;
  isolation: isolate;
  margin: 0 0 34px;
  padding: 0 0 22px;
  color: var(--text);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.16;
}

.section-block > h2::first-letter,
.section-card > h2::first-letter,
.about-subtitle::first-letter,
.resume-subtitle::first-letter,
.contact-form-title::first-letter,
.cart-card > h2::first-letter,
.section-title-row > h2::first-letter {
  color: var(--primary);
}

.section-block > h2::before,
.section-card > h2::before,
.about-subtitle::before,
.resume-subtitle::before,
.contact-form-title::before,
.cart-card > h2::before,
.section-title-row > h2::before {
  content: "";
  position: absolute;
  left: -10px;
  top: .52em;
  z-index: -1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(120, 204, 109, .18);
  transform: translateY(-50%);
}

.section-block > h2::after,
.section-card > h2::after,
.about-subtitle::after,
.resume-subtitle::after,
.contact-form-title::after,
.cart-card > h2::after,
.section-title-row > h2::after {
  content: "";
  position: absolute;
  left: -54px;
  right: -54px;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Home cards */
.hero-section {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.hero-section h2 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
}

.hero-section p {
  max-width: 760px;
  font-size: clamp(17px, 1.45vw, 22px);
}

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

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  border-bottom: 1px solid var(--border);
}

.about-copy,
.about-facts {
  padding: 40px 36px;
}

.about-copy {
  border-right: 1px solid var(--border);
}

.about-copy h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

.about-copy p,
.about-custom-text p {
  font-size: clamp(16px, 1.5vw, 19px);
}

.about-facts {
  display: grid;
  align-content: center;
  gap: 0;
}

.about-facts div,
.contact-facts div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.about-facts dt,
.contact-facts dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.about-facts dd,
.contact-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.about-subtitle,
.resume-subtitle,
.contact-form-title {
  margin-top: 42px;
}

.about-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.about-services article {
  min-width: 0;
  padding: 44px 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.about-services i,
.service-card > i {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 34px;
}

.about-services h3,
.service-card h3,
.mini-card h3,
.product-card h3,
.blog-card h3,
.work-item h3 {
  max-width: 100%;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.about-clients {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-bg) 92%, var(--primary) 8%);
}

.about-clients::before,
.about-clients::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 72px;
  height: 100%;
  pointer-events: none;
}

.about-clients::before {
  left: 0;
  background: linear-gradient(90deg, var(--card-bg), transparent);
}

.about-clients::after {
  right: 0;
  background: linear-gradient(270deg, var(--card-bg), transparent);
}

.client-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clientLogoScroll 24s linear infinite;
}

.about-clients:hover .client-logo-track {
  animation-play-state: paused;
}

.client-logo {
  display: inline-grid;
  place-items: center;
  width: clamp(150px, 18vw, 220px);
  height: 118px;
  margin: 0 10px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  color: var(--soft);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  text-align: center;
}

.client-logo img {
  display: block;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes clientLogoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about-custom-text {
  padding: 34px 0 0;
}

.resume-board,
.resume-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.resume-column,
.resume-skill-panel {
  min-width: 0;
  padding: 34px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resume-column h3,
.resume-skill-panel h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.resume-column h3 i,
.resume-skill-panel h3 i {
  color: var(--primary);
  font-size: 28px;
}

.resume-timeline {
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 18px;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.resume-timeline article {
  position: relative;
  min-width: 0;
}

.resume-timeline article::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.period {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 8px;
  border: 1px solid rgba(120, 204, 109, .45);
  border-radius: 4px;
  color: var(--primary);
  font-size: 12px;
}

.company {
  color: var(--soft);
}

.bar-skill {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.bar-skill:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.bar-skill-header,
.bar-skill > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.bar-skill-name {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.bar-skill-badge,
.bar-skill small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 999px;
  background: rgba(40, 123, 74, 0.1);
  color: var(--primary);
  border: 1px solid rgba(40, 123, 74, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.25px;
  text-transform: capitalize;
  transition: all 0.2s ease;
}

.bar-skill:hover .bar-skill-badge,
.bar-skill:hover small {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 123, 74, 0.15);
}

.bar-skill-badge[data-level="expert"] {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}

.bar-skill-badge[data-level="advanced"] {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.3);
}

.bar-skill-badge[data-level="intermediate"] {
  background: rgba(120, 204, 109, 0.14);
  color: #1e824c;
  border-color: rgba(120, 204, 109, 0.35);
}

.bar-skill-badge[data-level="beginner"] {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}

.dot-skill span,
.circle-skill span {
  color: var(--muted);
}

.bar-skill em {
  display: block;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.bar-skill b {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

.dot-skill {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.dot-skill em {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot-skill b {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--border);
}

.dot-skill b.filled {
  background: var(--primary);
}

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

.circle-skill {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.circle-skill::before {
  content: "";
  width: 92px;
  height: 92px;
  grid-area: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--value, 75%), var(--border) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
}

.circle-skill strong {
  grid-area: 1 / 1;
  color: var(--text);
}

.knowledge-list,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-list li,
.check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  overflow-wrap: anywhere;
}

.knowledge-list li::before,
.check-list li::before {
  content: "\F26E";
  color: var(--primary);
  font-family: "bootstrap-icons";
  font-weight: 700;
}

.card-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card,
.mini-card,
.product-card,
.blog-card {
  min-width: 0;
  padding: 34px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.about-services article:hover,
.service-card:hover,
.mini-card:hover,
.product-card:hover,
.blog-card:hover,
.resume-skill-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 204, 109, .34);
  box-shadow: 0 18px 45px rgba(20, 27, 36, .08);
}

[data-theme="dark"] .about-services article:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .mini-card:hover,
[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .resume-skill-panel:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.service-card {
  text-align: center;
}

.about-services article i,
.service-card > i,
.resume-skill-panel h3 i,
.contact-facts dt,
.about-facts dt {
  transition: transform .24s ease, box-shadow .24s ease;
}

.about-services article:hover i,
.service-card:hover > i {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  box-shadow: 0 14px 28px rgba(120, 204, 109, .22);
}

.project-thumb,
.blog-thumb,
.work-thumb,
.cart-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf4f7;
}

.project-thumb::after,
.work-visual::after,
.blog-visual::after,
.work-thumb::after,
.blog-thumb::after {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .36), transparent 66%);
  transform: translateX(-85%);
  transition: transform .72s ease;
  pointer-events: none;
}

.product-card:hover .project-thumb::after,
.work-item:hover .work-thumb::after,
.blog-card:hover .blog-thumb::after,
.work-item:hover .work-visual::after,
.blog-card:hover .blog-visual::after {
  transform: translateX(85%);
}

.project-thumb {
  aspect-ratio: 1 / .78;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 54px;
  font-weight: 700;
  text-decoration: none;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.product-card:hover .project-thumb img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.product-detail-media {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #eaf4f7;
}

.product-detail-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.portfolio-grid.works-grid {
  columns: 2;
  column-gap: 54px;
  column-rule: 1px solid var(--border);
}

.work-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 42px;
  break-inside: avoid;
  text-align: center;
}

.work-thumb {
  min-height: 220px;
  margin-bottom: 18px;
}

.work-thumb img,
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.work-thumb img {
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.blog-card:hover .blog-thumb img,
.work-item:hover .work-thumb img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.work-visual,
.blog-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, #eaf7f9, #b8f1ef);
}

.work-visual__screen,
.blog-visual__window {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 18%;
  height: 34%;
  border-radius: 5px;
  background: linear-gradient(#1e3345 0 18%, var(--primary) 18% 26%, #f6f9fb 26%);
}

.work-visual__shape {
  position: absolute;
  left: 26%;
  top: 48%;
  width: 48%;
  height: 32%;
  background: linear-gradient(135deg, rgba(120, 204, 109, .75), rgba(80, 163, 162, .75));
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%);
}

.work-visual__bar,
.blog-visual__line {
  position: absolute;
  left: 38%;
  right: 14%;
  bottom: 18%;
  height: 9%;
  border-radius: 5px;
  background: rgba(255, 255, 255, .75);
}

.blog-thumb {
  aspect-ratio: 1.35 / .85;
  margin-bottom: 0;
}

.blog-card {
  padding: 0;
  text-align: center;
}

.blog-card-body {
  padding: 26px 24px 34px;
}

.blog-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
}

.filter-row,
.filter-form,
.product-filter-form,
.blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.works-filter {
  margin-bottom: 0;
}

.works-filter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.works-select-wrap {
  position: relative;
  display: block;
  min-width: min(100%, 320px);
}

.works-filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}

.filtering-out {
  opacity: .2;
}

.contact-map {
  height: 290px;
  margin-bottom: 32px;
  overflow: hidden;
  background: #e8e8e8;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0 0 52px;
}

.contact-form,
.stacked-form {
  display: grid;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-form label span,
.stacked-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.contact-submit {
  justify-self: start;
  min-width: 260px;
  min-height: 64px;
}

.price {
  color: var(--text);
  font-weight: 700;
}

.products-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 20px;
}

/* Cart and simple public pages */
.empty-cart {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 28px 0;
}

.browse-shop-btn {
  min-width: 220px;
  min-height: 60px;
}

.site-footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(22px, 4vw, 36px);
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 204, 109, .1), rgba(142, 207, 255, .08)),
    var(--card);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 16px 42px rgba(20, 27, 36, .06);
}

.site-footer-credit span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(120, 204, 109, .16);
  color: var(--primary);
}

.site-footer-credit p,
.site-footer-credit a {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer-credit a:hover {
  color: var(--primary);
}

.cart-table-wrap {
  overflow-x: auto;
}

.shop-cart-table {
  width: 100%;
  min-width: 760px;
  border: 1px solid var(--border);
  color: var(--text);
}

.shop-cart-table th,
.shop-cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.shop-cart-table th {
  text-transform: uppercase;
  font-size: 13px;
}

.cart-remove button {
  border: 0;
  background: transparent;
  color: var(--text);
}

.cart-thumb {
  width: 84px;
  height: 84px;
}

.cart-product-name a {
  color: var(--primary);
  font-weight: 600;
}

.cart-qty .form-control {
  width: 72px;
}

.coupon-form {
  display: flex;
  gap: 8px;
}

.cart-update-form {
  text-align: right;
}

.cart-summary {
  margin-top: 34px;
}

.cart-summary h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 28px;
}

.cart-total-box {
  border: 1px solid var(--border);
}

.cart-total-box p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 18px;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.cart-total-box p:last-child {
  border-bottom: 0;
}

.cart-total-box span {
  font-weight: 700;
  text-transform: uppercase;
}

.cart-checkout {
  width: 100%;
  margin-top: 28px;
  min-height: 62px;
}

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

.facts-grid div,
.mini-card {
  border: 1px solid var(--border);
  padding: 18px;
}

.error-state {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 48px 24px;
  text-align: center;
}

.error-code {
  color: var(--text);
  font-size: 42px;
  font-weight: 700;
}

.error-code::first-letter {
  color: var(--primary);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@keyframes devGridDrift {
  from { background-position: 0 0, 0 0, center, center; }
  to { background-position: 44px 44px, 44px 44px, center, center; }
}

@keyframes devAurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

@keyframes shellCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Desktop shell */
@media (min-width: 1101px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .portfolio-shell {
    --rail: clamp(58px, 5vw, 72px);
    --profile: clamp(350px, 32vw, 480px);
    --shell-h: clamp(650px, 82vh, 860px);
    grid-template-columns: var(--rail) minmax(0, var(--profile)) var(--rail) minmax(0, 1fr);
    grid-template-areas: "utility profile menu content";
    gap: clamp(8px, .8vw, 12px);
    width: min(calc(100vw - 24px), 1420px);
    height: var(--shell-h);
    margin: clamp(14px, 6vh, 76px) auto 18px;
  }

  .utility-nav {
    grid-area: utility;
    align-self: start;
    width: var(--rail);
    margin-top: 18px;
  }

  .utility-button {
    width: var(--rail);
    min-height: clamp(56px, 5vw, 72px);
  }

  .utility-cart em {
    top: 17px;
    right: 13px;
  }

  .profile-card {
    grid-area: profile;
    height: 100%;
  }

  .profile-cover {
    height: 54%;
  }

  .profile-content {
    height: calc(100% - 70px);
    padding: clamp(344px, 46vh, 430px) clamp(22px, 3vw, 42px) 88px;
  }

  .profile-card h1 {
    font-size: clamp(30px, 2.7vw, 42px);
  }

  .typed-line {
    font-size: clamp(14px, 1.25vw, 17px);
  }

  .social-links {
    gap: clamp(12px, 1.35vw, 18px);
  }

  .headline,
  .contact-mini,
  .availability {
    display: none;
  }

  .icon-nav {
    grid-area: menu;
    align-self: start;
    width: var(--rail);
    margin-top: 18px;
  }

  .icon-nav a {
    width: var(--rail);
    min-height: clamp(64px, 6.1vh, 76px);
    padding: 7px 2px;
  }

  .icon-nav i {
    font-size: clamp(20px, 1.9vw, 24px);
  }

  .icon-nav span {
    font-size: clamp(8px, .75vw, 11px);
  }

  .content-card {
    grid-area: content;
    height: 100%;
    overflow: hidden auto;
  }

  .content-card.content-card--stage {
    overflow: hidden auto;
  }

  .section-card,
  .section-block {
    min-height: 100%;
    padding: clamp(34px, 4vw, 54px);
  }
}

/* Tablet and mobile shell */
@media (max-width: 1100px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .portfolio-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "utility"
      "menu"
      "profile"
      "content";
    gap: 10px;
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 10px;
  }

  .icon-nav {
    grid-area: menu;
    position: sticky;
    top: 64px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }

  .icon-nav a {
    min-height: 62px;
    padding: 7px 1px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .icon-nav a:last-child {
    border-right: 0;
  }

  .icon-nav i {
    font-size: 20px;
  }

  .icon-nav span {
    font-size: clamp(7px, 1.7vw, 10px);
  }

  .utility-nav {
    grid-area: utility;
    position: sticky;
    top: 0;
    z-index: 110;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-button {
    width: 100%;
    min-height: 54px;
  }

  .utility-cart em {
    top: 12px;
    right: calc(50% - 28px);
  }

  .profile-card {
    grid-area: profile;
    min-height: 620px;
  }

  .profile-cover {
    height: 42%;
    min-height: 232px;
  }

  .profile-content {
    padding: 258px 24px 88px;
  }

  .profile-card h1 {
    font-size: clamp(30px, 6.2vw, 44px);
  }

  .social-links {
    gap: 16px;
  }

  .social-links a,
  .social-links span {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .headline,
  .contact-mini {
    display: none;
  }

  .content-card {
    grid-area: content;
    background: transparent;
    box-shadow: none;
  }

  .section-card,
  .section-block {
    margin-bottom: 10px;
    padding: 30px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .section-block > h2::after,
  .section-card > h2::after,
  .about-subtitle::after,
  .resume-subtitle::after,
  .contact-form-title::after,
  .cart-card > h2::after,
  .section-title-row > h2::after {
    left: -28px;
    right: -28px;
  }

  .about-intro,
  .resume-board,
  .resume-skills,
  .about-services,
  .card-grid,
  .blog-grid,
  .contact-facts,
  .contact-form-row,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .resume-column,
  .resume-skill-panel,
  .about-services article,
  .service-card,
  .mini-card,
  .product-card,
  .blog-card {
    border-right: 0;
  }

  .about-copy {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .about-copy,
  .about-facts {
    padding: 28px 0;
  }

  .client-logo {
    width: clamp(140px, 44vw, 190px);
    height: 96px;
    padding: 14px 18px;
  }

  .client-logo img {
    max-height: 56px;
  }

  .portfolio-grid.works-grid {
    columns: 1;
    column-rule: 0;
  }

  .section-title-row,
  .filter-row,
  .filter-form {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .portfolio-shell {
    width: 100%;
    padding: 8px;
    gap: 8px;
  }

  .site-footer-credit {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .icon-nav {
    top: 62px;
  }

  .icon-nav a {
    min-height: 58px;
    padding: 6px 1px;
  }

  .icon-nav i {
    font-size: 18px;
  }

  .icon-nav span {
    font-size: 7px;
  }

  .profile-card {
    min-height: 560px;
  }

  .profile-cover {
    min-height: 210px;
  }

  .profile-content {
    padding: 232px 18px 84px;
  }

  .profile-card h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .availability {
    max-width: calc(100vw - 72px);
    font-size: 13px;
  }

  .profile-link {
    font-size: 12px;
  }

  .section-card,
  .section-block {
    padding: 26px 20px;
  }

  .section-block > h2,
  .section-card > h2,
  .about-subtitle,
  .resume-subtitle,
  .contact-form-title,
  .cart-card > h2,
  .section-title-row > h2 {
    margin-bottom: 26px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .section-block > h2::after,
  .section-card > h2::after,
  .about-subtitle::after,
  .resume-subtitle::after,
  .contact-form-title::after,
  .cart-card > h2::after,
  .section-title-row > h2::after {
    left: -20px;
    right: -20px;
  }

  .hero-section h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-actions,
  .filter-form,
  .section-title-row,
  .coupon-form,
  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .contact-submit,
  .browse-shop-btn {
    width: 100%;
    min-width: 0;
  }

  .about-facts div,
  .contact-facts div,
  .cart-total-box p {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .about-facts dd,
  .contact-facts dd {
    text-align: left;
  }

  .circle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .icon-nav span {
    font-size: 6.3px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
    height: 118px;
  }

  .profile-link {
    min-height: 59px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-content {
    padding-bottom: 132px;
  }
}

/* Admin */
body:has(.admin-layout),
body:has(.login-screen) {
  min-height: 100vh;
  background: #f4f7f6;
  color: #20242c;
  overflow: auto;
}

.login-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  background: var(--admin-bg, #f4f6f8);
}

.login-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text, #334155);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #ffffff);
  transition: all 0.2s ease;
}

.login-back-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.login-card-container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  padding: 36px 32px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  background: var(--card, #ffffff);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08), 0 0 40px rgba(120, 204, 109, 0.05);
  transition: all 0.25s ease;
}

.login-brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary, #287b4a), #1d6239);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(40, 123, 74, 0.28);
}

.login-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted, #64748b);
  pointer-events: none;
  font-size: 16px;
  z-index: 4;
}

.login-input-group .form-control {
  padding-left: 42px;
  height: 46px;
  border-radius: 10px;
  font-size: 14.5px;
}

.login-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted, #64748b);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.login-password-toggle:hover {
  color: var(--text, #0f172a);
}

.login-btn {
  height: 46px;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(40, 123, 74, 0.35);
}

/* Dark mode for login */
[data-theme="dark"] .login-screen,
[data-bs-theme="dark"] .login-screen {
  background: #0f172a !important;
}

[data-theme="dark"] .login-card,
[data-bs-theme="dark"] .login-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 50px rgba(74, 222, 128, 0.08) !important;
}

[data-theme="dark"] .login-brand-icon,
[data-bs-theme="dark"] .login-brand-icon {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35) !important;
}

[data-theme="dark"] .login-back-link,
[data-bs-theme="dark"] .login-back-link {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .login-back-link:hover,
[data-bs-theme="dark"] .login-back-link:hover {
  color: #4ade80 !important;
  border-color: #4ade80 !important;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f7f6;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  overflow-y: auto;
  background: #20242c;
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-brand strong {
  display: block;
  font-size: 22px;
}

.admin-brand span {
  display: block;
  margin-top: 4px;
}

.admin-brand span,
.admin-kicker,
.admin-title p,
.admin-panel-title a,
.admin-form small {
  color: #707887;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(120, 204, 109, .18);
  color: #fff;
}

.admin-sidebar .admin-view-site {
  justify-content: center;
  min-height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(120, 204, 109, .28);
  background: linear-gradient(135deg, rgba(120, 204, 109, .98), rgba(72, 178, 154, .92));
  box-shadow: 0 14px 30px rgba(120, 204, 109, .18);
  color: #fff;
  font-weight: 800;
}

.admin-sidebar-close,
.admin-mobile-bar,
.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar-close,
.admin-menu-toggle {
  border: 0;
  cursor: pointer;
}

.admin-sidebar-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.admin-main {
  min-width: 0;
  padding: 30px;
}

.admin-mobile-bar {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(20, 27, 36, .07);
}

.admin-public-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #78cc6d;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.content-protection-copy :not(input):not(textarea):not(select) {
  user-select: none;
  -webkit-user-select: none;
}

.admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #78cc6d;
  color: #fff;
  font-weight: 700;
}

.admin-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-title h2 {
  margin: 0;
  color: #20242c;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.admin-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-panel,
.stat-grid article,
.module-shortcut {
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 27, 36, .06);
}

.admin-panel {
  padding: 22px;
  margin-bottom: 22px;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-grid article {
  padding: 20px;
}

.stat-grid span {
  display: block;
  color: #707887;
}

.stat-grid strong {
  color: #20242c;
  font-size: 30px;
}

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

.module-shortcut {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.module-shortcut:hover,
.module-shortcut:focus-visible {
  border-color: color-mix(in srgb, var(--shortcut-color, #78cc6d) 38%, #e5e8ef);
  box-shadow: 0 18px 38px rgba(20, 27, 36, .1);
  transform: translateY(-2px);
}

.module-shortcut::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shortcut-color, #78cc6d) 12%, transparent);
}

.module-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--shortcut-color, #78cc6d) 15%, #fff);
  color: var(--shortcut-color, #78cc6d);
  font-size: 24px;
  flex: 0 0 auto;
}

.module-shortcut strong {
  position: relative;
  z-index: 1;
}

.module-shortcut strong {
  flex: 1 1 auto;
  min-width: 0;
  color: #20242c;
  font-size: 18px;
  line-height: 1.2;
}

.module-arrow {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--shortcut-color, #78cc6d);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.module-shortcut:hover .module-arrow,
.module-shortcut:focus-visible .module-arrow {
  opacity: 1;
  transform: translateX(0);
}

.module-shortcut--emerald { --shortcut-color: #46bf72; }
.module-shortcut--blue { --shortcut-color: #3f7ee8; }
.module-shortcut--violet { --shortcut-color: #7c5cff; }
.module-shortcut--amber { --shortcut-color: #d99a20; }
.module-shortcut--teal { --shortcut-color: #18a99a; }
.module-shortcut--rose { --shortcut-color: #e95f7f; }
.module-shortcut--slate { --shortcut-color: #64748b; }

.admin-table {
  min-width: 780px;
  margin: 0;
}

.admin-table th {
  color: #20242c;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table td {
  vertical-align: middle;
  color: #555c68;
}

.admin-actions {
  white-space: nowrap;
}

.admin-inline-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #20242c;
  font-weight: 700;
}

.admin-form .form-control,
.admin-form .form-select {
  min-height: 48px;
  border-color: #dfe4ea;
  background: #fff;
  color: #20242c;
}

.admin-form textarea.form-control {
  min-height: 132px;
}

.admin-form label.admin-check,
.admin-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fbfcfd;
  color: #20242c;
  line-height: 1.45;
  cursor: pointer;
}

.admin-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-check input {
  border-color: #78cc6d;
}

.admin-image-field,
.admin-file-field,
.settings-group {
  padding: 18px;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: #fbfcfd;
}

.admin-image-field legend,
.admin-file-field legend,
.settings-group h3 {
  margin: 0 0 14px;
  color: #20242c;
  font-size: 18px;
  font-weight: 700;
}

.admin-file-field {
  display: grid;
  gap: 14px;
}

.admin-file-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef9ed;
  color: #4dae43;
  font-weight: 700;
}

.admin-file-current--empty {
  background: #fff;
  color: #707887;
}

.admin-image-preview {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  min-height: 150px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px dashed #cfd7df;
  border-radius: 10px;
  background: #fff;
  color: #707887;
}

.admin-image-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4e5;
  color: #8a5400;
  font-weight: 700;
}

.admin-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  color: #707887;
  text-align: center;
}

.admin-empty i {
  color: var(--primary);
  font-size: 42px;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-pagination a,
.admin-pagination span {
  padding: 9px 12px;
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  background: #fff;
}

.admin-pagination a.disabled {
  pointer-events: none;
  opacity: .45;
}

.message-card {
  padding: 16px 0;
  border-bottom: 1px solid #e5e8ef;
}

.message-card:last-child {
  border-bottom: 0;
}

.was-validated :invalid {
  border-color: #d22525;
}

.admin-toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2200;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.admin-toast {
  display: grid;
  grid-template-columns: 22px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe4ea;
  border-left: 5px solid #78cc6d;
  border-radius: 10px;
  background: #fff;
  color: #20242c;
  box-shadow: 0 16px 40px rgba(20, 27, 36, .16);
  font-weight: 700;
  line-height: 1.35;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease;
}

.admin-toast i {
  color: #78cc6d;
  font-size: 20px;
}

.admin-toast button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #707887;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

.admin-toast--error i {
  color: #d22525;
}

.admin-toast--warning {
  border-left-color: #d99a20;
}

.admin-toast--warning i {
  color: #d99a20;
}

.admin-toast--hide {
  opacity: 0;
  transform: translateY(-8px);
}

@media (max-width: 1100px) {
  body.admin-sidebar-open {
    overflow: hidden;
  }

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

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: min(84vw, 320px);
    height: 100dvh;
    transform: translateX(-105%);
    box-shadow: 22px 0 46px rgba(12, 18, 28, .24);
    transition: transform .24s ease;
  }

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

  .admin-sidebar-close,
  .admin-mobile-bar,
  .admin-sidebar-backdrop {
    display: flex;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 14, 22, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  body.admin-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

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

  .admin-main {
    padding: 16px;
  }

  .admin-mobile-bar {
    position: sticky;
    top: 10px;
    z-index: 50;
    backdrop-filter: blur(14px);
  }

  .admin-title {
    display: grid;
  }
}

@media (max-width: 560px) {
  .admin-pagination {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-pagination {
    display: grid;
  }

  .admin-pagination a,
  .admin-pagination span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }

  .client-logo-track {
    animation: none;
  }
}

/* Shared accessible palette and management workspace */
:root {
  --primary: #287b4a;
  --primary-dark: #1d6239;
  --card-bg: var(--card);
  --muted: #535d69;
  --soft: #65717d;
  --admin-bg: #f4f6f8;
  --admin-panel: #ffffff;
  --admin-text: #1e293b;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;
}

[data-theme="dark"],
[data-bs-theme="dark"] {
  color-scheme: dark;
  --primary: #4ade80;
  --primary-dark: #22c55e;
  --bg: #0f172a;
  --card: #1e293b;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --border: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --admin-bg: #0b1120;
  --admin-panel: #1e293b;
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  --admin-border: #334155;
}

/* High contrast dark mode adjustments */
[data-theme="dark"] body {
  background: linear-gradient(135deg, #09121a, #0b1821);
  color: var(--text);
}

[data-theme="dark"] .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #052e16 !important;
  font-weight: 700;
}

[data-theme="dark"] .btn:not(.btn-primary):not(.btn-outline-danger):not(.btn-danger) {
  background: #334155;
  color: #f8fafc;
  border-color: #475569;
}

[data-theme="dark"] .btn:not(.btn-primary):hover {
  background: #475569;
  color: #ffffff;
}

[data-theme="dark"] .about-facts dt,
[data-theme="dark"] .contact-facts dt {
  background: var(--primary);
  color: #052e16;
}

[data-theme="dark"] .about-facts dd,
[data-theme="dark"] .contact-facts dd,
[data-theme="dark"] .contact-mini dd,
[data-theme="dark"] .company {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25) !important;
}

[data-theme="dark"] .form-select option,
[data-bs-theme="dark"] .form-select option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .form-control::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] .table,
[data-bs-theme="dark"] .table {
  --bs-table-color: #f8fafc !important;
  --bs-table-bg: transparent !important;
  --bs-table-border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .table td,
[data-bs-theme="dark"] .table td {
  color: #f8fafc !important;
  background-color: transparent !important;
}

[data-theme="dark"] .table th,
[data-bs-theme="dark"] .table th {
  color: #94a3b8 !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .badge.text-bg-light {
  background-color: #334155 !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
}

[data-theme="dark"] .badge.text-bg-secondary {
  background-color: #475569 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .muted,
[data-theme="dark"] small.text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] .status-pill {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .about-services article,
[data-theme="dark"] .service-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .resume-column,
[data-theme="dark"] .resume-skill-panel {
  background: var(--card);
  color: var(--text);
}

[data-theme="dark"] .about-services article:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .blog-card:hover {
  background: #283040;
}

[data-theme="dark"] .client-logo {
  color: #cbd5e1;
}

[data-theme="dark"] .bar-skill {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .bar-skill-name,
[data-theme="dark"] .bar-skill > span {
  color: #f1f5f9;
}

[data-theme="dark"] .bar-skill-badge,
[data-theme="dark"] .bar-skill small {
  background: rgba(120, 204, 109, 0.16);
  color: #78cc6d;
  border-color: rgba(120, 204, 109, 0.35);
}

[data-theme="dark"] .bar-skill-badge[data-level="expert"] {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .bar-skill-badge[data-level="advanced"] {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .bar-skill-badge[data-level="intermediate"] {
  background: rgba(120, 204, 109, 0.2);
  color: #78cc6d;
  border-color: rgba(120, 204, 109, 0.4);
}

[data-theme="dark"] .bar-skill-badge[data-level="beginner"] {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .bar-skill:hover .bar-skill-badge,
[data-theme="dark"] .bar-skill:hover small {
  box-shadow: 0 0 12px rgba(120, 204, 109, 0.25);
}

[data-theme="dark"] .bar-skill em {
  background: #334155;
}

[data-theme="dark"] .admin-panel,
[data-theme="dark"] .stat-grid article {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .detail-grid dt {
  color: #94a3b8 !important;
}

[data-theme="dark"] .detail-grid dd {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-check,
[data-theme="dark"] .admin-image-field,
[data-theme="dark"] .admin-file-field,
[data-theme="dark"] .settings-group {
  background: #162032 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-image-preview,
[data-theme="dark"] .admin-pagination a,
[data-theme="dark"] .admin-pagination span,
[data-theme="dark"] .admin-toast,
[data-theme="dark"] .admin-mobile-bar {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .admin-form label,
[data-theme="dark"] .admin-form label span,
[data-theme="dark"] .admin-image-field legend,
[data-theme="dark"] .admin-file-field legend,
[data-theme="dark"] .settings-group h3 {
  color: #f8fafc !important;
}

/* Service Logo & Client Logo Styles */
.service-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto 18px;
  background: rgba(120, 204, 109, 0.08);
  padding: 8px;
  border: 1px solid var(--border);
}

.client-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(140px, 16vw, 200px);
  height: 120px;
  margin: 0 12px;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: transform .2s ease, opacity .2s ease;
}

.client-logo img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
}

.client-logo:hover {
  transform: translateY(-3px);
  color: var(--primary);
}

/* Admin Sidebar Categorization & Structure */
body:has(.admin-layout), body:has(.login-screen), .admin-layout {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f172a;
  border-right: 1px solid #1e293b;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
}

.admin-sidebar a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.admin-sidebar a.active {
  background: var(--primary);
  color: #052e16 !important;
  font-weight: 700;
}

.admin-brand {
  padding: 0 8px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand strong {
  display: block;
  font-size: 17px;
  color: #ffffff;
}

.admin-brand span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-view-site {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #cbd5e1 !important;
}

.admin-view-site:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  overflow-y: auto;
}

.admin-nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
  padding: 14px 10px 4px;
}

.admin-main {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 36px);
}

.admin-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-workspace-bar span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--admin-muted);
}

.admin-theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 50%;
  background: var(--admin-panel);
  color: var(--admin-text);
  cursor: pointer;
  transition: transform .15s ease;
}

.admin-theme-toggle:hover {
  transform: scale(1.06);
}

.admin-panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: clamp(18px, 2vw, 28px);
}

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

.stat-grid article {
  background: var(--admin-panel);
  border: 1px solid var(--admin-border);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
}

.stat-grid article span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--admin-muted);
}

.stat-grid article strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--admin-text);
  margin-top: 8px;
}

.admin-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--admin-text);
  --bs-table-border-color: var(--admin-border);
  min-width: 660px;
}

.admin-table th {
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--admin-muted);
  background: var(--admin-bg);
  border-bottom: 2px solid var(--admin-border);
}

.admin-table td {
  padding: 14px 14px;
  font-size: 13px;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
}

.admin-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-record-link {
  color: var(--primary);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  font-size: 11px;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
  gap: 10px 20px;
  font-size: 13px;
}

.detail-grid dt {
  color: var(--admin-muted);
  font-weight: 600;
}

.detail-grid dd {
  margin: 0;
  color: var(--admin-text);
}

.admin-image-field {
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-bg);
}

.admin-image-preview {
  width: 100px;
  height: 100px;
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--admin-panel);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-image-preview span {
  font-size: 11px;
  color: var(--admin-muted);
  text-align: center;
  padding: 8px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 16px;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: 270px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }
  body.admin-sidebar-open .admin-sidebar-backdrop {
    display: block;
  }
}

/* ============================================================ */
/* PROFESSIONAL CUSTOM ORDER & TRACK SYSTEM STYLES              */
/* ============================================================ */

/* --- Order & Commission Form Styling --- */
.pro-order-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pro-header-banner {
  background: linear-gradient(135deg, rgba(120, 204, 109, 0.12), rgba(120, 204, 109, 0.03));
  border: 1px solid rgba(120, 204, 109, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 6px;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(120, 204, 109, 0.2);
  color: var(--primary);
  border: 1px solid rgba(120, 204, 109, 0.3);
}

.pro-header-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--text);
}

.pro-header-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.pro-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pro-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pro-trust-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.pro-trust-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.pro-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pro-form-card:hover {
  border-color: rgba(120, 204, 109, 0.35);
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.pro-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-card-header h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.pro-card-header p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.pro-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pro-input-icon {
  position: absolute;
  left: 14px;
  color: var(--soft);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.pro-input-wrap .form-control,
.pro-input-wrap .form-select {
  padding-left: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  min-height: 46px;
  transition: all 0.2s ease;
}

.pro-input-wrap textarea.form-control {
  padding-left: 16px;
  min-height: 90px;
}

.pro-input-wrap .form-control:focus,
.pro-input-wrap .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(120, 204, 109, 0.2);
}

.pro-input-wrap:focus-within .pro-input-icon {
  color: var(--primary);
}

.pro-terms-card {
  background: rgba(120, 204, 109, 0.05);
  border: 1px dashed rgba(120, 204, 109, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
}

.pro-submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(120, 204, 109, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.pro-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(120, 204, 109, 0.48);
  color: #fff;
}

/* --- Tracking Page & Section Styling --- */
.pro-track-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.pro-track-search-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #8ecfff);
}

.pro-search-bar {
  display: flex;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pro-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(120, 204, 109, 0.2);
}

.pro-search-bar .search-icon {
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.pro-search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  color: var(--text);
  font-size: 1.05rem;
  padding: 8px 10px;
  outline: none;
}

.pro-search-bar .btn-track {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.pro-search-bar .btn-track:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.pro-helper-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.pro-chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(120, 204, 109, 0.08);
}

/* Tracking Result Card */
.pro-track-result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
}

.pro-track-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.pro-token-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.btn-copy-token {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.btn-copy-token:hover {
  color: var(--primary);
  background: rgba(120, 204, 109, 0.1);
}

/* Pulsing Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.status-pill.status-success {
  background: rgba(86, 184, 92, 0.15);
  color: #2e7d32;
  border: 1px solid rgba(86, 184, 92, 0.3);
}

[data-theme="dark"] .status-pill.status-success {
  color: #78cc6d;
}

.status-pill.status-warning {
  background: rgba(255, 179, 0, 0.15);
  color: #b26a00;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

[data-theme="dark"] .status-pill.status-warning {
  color: #ffc107;
}

.status-pill.status-primary {
  background: rgba(74, 144, 226, 0.15);
  color: #1976d2;
  border: 1px solid rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .status-pill.status-primary {
  color: #64b5f6;
}

.status-pill.status-danger {
  background: rgba(239, 83, 80, 0.15);
  color: #c62828;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

[data-theme="dark"] .status-pill.status-danger {
  color: #ef5350;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: pulseAnim 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Stepper Modern */
.pro-stepper-container {
  position: relative;
  padding: 16px 0 24px;
  margin-bottom: 28px;
}

.pro-stepper-line {
  position: absolute;
  top: 38px;
  left: 6%;
  right: 6%;
  height: 4px;
  background: var(--border);
  z-index: 1;
  border-radius: 4px;
}

.pro-stepper-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-stepper-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.pro-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 24%;
}

.pro-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pro-step-item.is-done .pro-step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pro-step-item.is-current .pro-step-icon {
  background: var(--card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 5px rgba(120, 204, 109, 0.25);
  font-size: 1.35rem;
}

.pro-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.pro-step-item.is-muted .pro-step-title {
  color: var(--soft);
}

.pro-step-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Detail Cards */
.pro-card-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}

.pro-card-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pro-item-card strong {
  font-size: 0.92rem;
  color: var(--text);
}

.pro-price-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 2px dashed var(--border);
}

.pro-empty-guide {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
}

.pro-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(120, 204, 109, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .pro-stepper-nodes {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pro-step-item {
    width: 48%;
  }
  .pro-stepper-line {
    display: none;
  }
  .pro-search-bar {
    flex-direction: column;
  }
  .pro-search-bar .btn-track {
    width: 100%;
    justify-content: center;
  }
  .pro-header-banner {
    padding: 18px 16px;
  }
  .pro-form-card {
    padding: 18px 16px;
  }
}

/* Quiet order and tracking pages */
.quiet-page { --primary-soft: color-mix(in srgb, var(--primary) 9%, transparent); }
.quiet-page .quiet-heading { margin-bottom: 28px; }
.quiet-page .quiet-heading h2 { margin-bottom: 12px; }
.quiet-page .quiet-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.quiet-form fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.quiet-form legend, .quiet-downloads h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.quiet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quiet-wide { grid-column: 1 / -1; }
.quiet-form label, .quiet-track-search > label { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.quiet-form .form-control, .quiet-form .form-select { margin-top: 8px; min-height: 46px; border-radius: 8px; font-size: 14px; padding: 11px 13px; }
.quiet-optional { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 6px; }
.quiet-details { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; margin: 22px 0; }
.quiet-details summary { font-size: 14px; font-weight: 500; cursor: pointer; }
.quiet-details summary > span { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.quiet-details[open] summary { margin-bottom: 20px; }
.quiet-form .quiet-consent { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 18px; font-weight: 400; }
.quiet-consent input { margin-top: 4px; accent-color: var(--primary); }
.quiet-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.quiet-form-actions > a:not(.btn) { font-size: 12px; color: var(--muted); }
.quiet-page .btn { border-radius: 8px; font-size: 13px; padding: 11px 17px; letter-spacing: 0; text-transform: none; }
.quiet-track-search { margin: 26px 0; }
.quiet-track-search > div { display: flex; gap: 10px; margin: 9px 0; }
.quiet-track-search input { min-width: 0; border-radius: 8px; font-size: 14px; padding: 12px 14px; }
.quiet-track-search button { flex-shrink: 0; }
.quiet-track-search small, .quiet-result-header small { font-size: 12px; color: var(--muted); }
.quiet-empty { text-align: center; padding: 45px 10px 28px; color: var(--muted); }
.quiet-empty > i { display: block; font-size: 30px; opacity: .65; margin-bottom: 18px; }
.quiet-empty p { font-size: 14px; margin-bottom: 8px; }
.quiet-empty a, .quiet-help { font-size: 12px; }
.quiet-result { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 28px; }
.quiet-result-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.quiet-result-header h3 { font-size: 18px; line-height: 1.5; margin: 6px 0; overflow-wrap: anywhere; }
.quiet-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.quiet-page .status-pill { background: var(--primary-soft); color: var(--primary); border: 0; font-size: 12px; font-weight: 500; padding: 7px 12px; }
.quiet-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.quiet-facts dt { font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.quiet-facts dd { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.quiet-items > div { display: flex; gap: 18px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.quiet-items strong { flex-shrink: 0; font-weight: 500; }
.quiet-items small, .quiet-downloads small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.quiet-totals { margin: 18px 0 26px; }
.quiet-totals > div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; margin: 8px 0; }
.quiet-totals dt { font-weight: 400; }
.quiet-totals dd { margin: 0; }
.quiet-totals .quiet-total { font-size: 20px; font-weight: 600; }
.quiet-downloads { padding-top: 20px; border-top: 1px solid var(--border); }
.quiet-downloads > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 14px; gap: 15px; }
.quiet-notice { background: var(--primary-soft); padding: 16px; border-radius: 8px; font-size: 13px; line-height: 1.7; margin: 20px 0; }
.quiet-help { padding-top: 16px; color: var(--muted); }
@media (max-width: 575px) { .quiet-grid, .quiet-facts { grid-template-columns: 1fr; } .quiet-form-actions > .btn { flex: 1; } .quiet-items > div { font-size: 13px; gap: 10px; } }
.quiet-heading h2, .quiet-result-header h3, .quiet-downloads h3 { color: var(--text); }
[data-theme="dark"] .quiet-page input::placeholder, [data-theme="dark"] .quiet-page textarea::placeholder { color: #98a6b9; opacity: 1; }
.quiet-track-search .btn { width: auto; flex: 0 0 auto; }
.quiet-track-search .form-control { width: 0; flex: 1 1 0; }
@media (max-width: 575px) { .quiet-track-search > div { flex-direction: column; } .quiet-track-search .form-control { width: 100%; flex: auto; } .quiet-track-search .btn { width: 100%; } }
.captcha-dialog { border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg, #fff); color: var(--text); padding: 24px; max-width: calc(100vw - 28px); width: 370px; box-shadow: 0 20px 70px #0004; }
.captcha-dialog::backdrop { background: #0007; }
.captcha-dialog h3 { font-size: 20px; margin-bottom: 10px; }
.captcha-dialog p { font-size: 13px; line-height: 1.6; }
.captcha-dialog [data-captcha-feedback] { margin-top: 12px; }
.g-recaptcha { min-height: 78px; max-width: 100%; }
/* Google mounts image challenges outside our dialog; keep them interactive. */
.captcha-dialog[open] { position: fixed; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); z-index: 10000; box-shadow: 0 0 0 100vmax #0007; }
/* Responsive shell: one scrolling document on phones and tablets. */
.profile-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 13%; }
.profile-cover { background: var(--card-bg, #fff); }
.profile-card, .content-card, .icon-nav, .utility-nav, .motion-reveal,
.active-card, .card-stage, .site-bg, .site-bg::before, .site-bg::after { animation: none !important; }
.motion-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
.profile-card:hover .profile-cover { transform: none; }
.client-logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
.about-clients { overflow: visible; }
.content-card, .section-card { min-width: 0; }
.admin-pagination { display: flex; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 8px; }
.admin-pagination > * { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1100px) {
  html { scroll-padding-top: 120px; }
  .portfolio-shell { height: auto; min-height: 100dvh; max-width: 900px; }
  .utility-nav { top: 0; gap: 0; }
  .utility-button { min-height: 44px; height: 44px; }
  .utility-button i { font-size: 21px; }
  .icon-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; top: 44px; gap: 0; border-radius: 8px; scrollbar-width: thin; }
  .icon-nav a { flex: 1 0 64px; min-width: 64px; min-height: 58px; padding: 8px 5px; }
  .icon-nav span { font-size: 10px; }
  .icon-nav i { font-size: 20px; }
  .profile-card { min-height: 0; height: auto; display: flex; flex-direction: column; }
  .profile-cover { position: relative; flex: none; height: auto; min-height: 0; clip-path: none; padding: 20px 20px 0; }
  .profile-portrait { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; margin: 0 auto; border-radius: 12px; }
  .profile-content { padding: 22px 20px; }
  .profile-card h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.25; }
  .profile-actions { position: static; flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; min-height: 54px; }
  .profile-link { min-height: 54px; font-size: 11px; padding: 12px 8px; }
  .content-card, .content-card--stage, .content-card--page, .card-stage { height: auto; max-height: none; overflow: visible; min-height: 0; }
  .content-card { scroll-margin-top: 116px; }
  .section-card { position: relative; height: auto; min-height: 0; }
  .card-stage .section-card:not(.active-card) { display: none; }
  .content-card--page .section-card { display: block; }
  .site-bg::before, .site-bg::after { display: none; }
  .section-card, .profile-card { box-shadow: 0 4px 16px #0000000a; }
  .contact-map iframe { min-height: 240px; height: 280px; }
  .table-responsive { max-width: 100%; overflow-x: auto; }
  .admin-main, .admin-panel, .admin-title > div { min-width: 0; }
  .admin-title, .admin-action-bar { flex-wrap: wrap; }
  .admin-pagination { flex-direction: row; justify-content: flex-start; }
  input.form-control, textarea.form-control, select.form-select { font-size: 16px; }
}
@media (min-width: 621px) and (max-width: 1100px) {
  .card-grid, .blog-grid, .about-services, .resume-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid.works-grid { columns: 2; }
  .profile-cover { padding-top: 24px; }
}
@media (max-width: 620px) {
  .profile-portrait { max-height: 310px; }
  .section-block, .section-card { padding: 24px 18px; }
  .profile-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-pagination a, .admin-pagination span { width: auto; }
  .quiet-result-header, .quiet-items, .detail-grid { overflow-wrap: anywhere; }
  .social-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 620px) {
  .icon-nav a { flex-basis: 44px; min-width: 44px; padding: 8px 2px; }
  .icon-nav span { font-size: 8px; letter-spacing: 0; }
}
.profile-card, .content-card, .icon-nav, .utility-nav { backdrop-filter: none; }
.typed-line { min-height: 1.65em; }
@media (max-width: 1100px) {
  html { overflow-x: clip; overflow-y: auto; }
  body { overflow: visible; }
  .utility-nav, .icon-nav { align-self: start; }
}
@media (max-width: 1100px) {
  .quiet-form .form-control, .quiet-form .form-select, .quiet-track-search .form-control,
  .admin-form .form-control, .admin-form .form-select { font-size: 16px; }
}
[data-theme="dark"] .admin-title h2, [data-theme="dark"] .admin-panel h3 { color: #f1f5f9; }
[data-theme="dark"] .admin-layout .text-success { color: #78d99e !important; }
[data-theme="dark"] .admin-layout .text-primary { color: #a5c7ff !important; }
@media (max-width: 620px) {
  .admin-main .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-main .stat-grid article { padding: 15px 12px; }
  .admin-main .stat-grid strong { font-size: 20px; overflow-wrap: anywhere; }
  .admin-main .stat-grid span { font-size: 10px; }
}

/* Readable audit timeline, shared by light and dark themes. */
.activity-count{padding:.55rem .9rem;border:1px solid var(--border-color,#64748b);border-radius:999px;font-size:.85rem;white-space:nowrap}
.activity-entry{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:16px;padding:22px 0;border-bottom:1px solid rgba(128,144,166,.22)}
.activity-entry:last-child{border-bottom:0}.activity-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(65,217,130,.12);color:inherit;font-size:1.2rem}
.activity-content h4{font-size:1rem;margin:0 0 7px;line-height:1.5}.activity-content p{margin:0;font-size:.85rem;opacity:.85}.activity-dot{margin:0 9px}.activity-time{display:flex;flex-direction:column;gap:5px;font-size:.8rem;text-align:right;line-height:1.5;opacity:.85}
.activity-details{margin-top:12px;font-size:.8rem}.activity-details summary{cursor:pointer;width:fit-content}.activity-details dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:12px 0}.activity-details dd{margin:0;overflow-wrap:anywhere}.activity-empty{text-align:center;padding:55px 16px}.activity-empty>i{font-size:2rem}.activity-empty h3{margin-top:15px}
@media(max-width:600px){.activity-entry{grid-template-columns:34px minmax(0,1fr);gap:12px}.activity-icon{width:34px;height:34px}.activity-time{grid-column:2;flex-direction:row;text-align:left;gap:12px}.activity-panel .admin-panel-title{align-items:flex-start;flex-direction:column;gap:8px}.activity-count{white-space:normal}}
