:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-soft: #101114;
  --panel: rgba(22, 23, 27, 0.78);
  --panel-strong: rgba(28, 29, 34, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(54, 213, 190, 0.32);
  --text: #f7f2ee;
  --muted: #a39d98;
  --soft: #74706f;
  --accent: #36d5be;
  --accent-2: #88efe0;
  --gold: #f0bf59;
  --rose: #ee756b;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1ea;
  --bg-soft: #edf3ef;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(26, 35, 32, 0.13);
  --line-strong: rgba(17, 148, 128, 0.32);
  --text: #111816;
  --muted: #5e6864;
  --soft: #7b8580;
  --accent: #16b69e;
  --accent-2: #0f8f7d;
  --gold: #bf8734;
  --rose: #c75a52;
  --shadow: 0 18px 42px rgba(34, 42, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  direction: rtl;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  text-align: right;
  background:
    radial-gradient(circle at 82% 15%, rgba(54, 213, 190, 0.08), transparent 24rem),
    radial-gradient(circle at 14% 42%, rgba(240, 191, 89, 0.06), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(15deg, rgba(54, 213, 190, 0.035), transparent 34rem),
    var(--bg);
  background-size: auto, auto, 54px 54px, auto, auto;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 82% 15%, rgba(22, 182, 158, 0.16), transparent 24rem),
    radial-gradient(circle at 14% 42%, rgba(191, 135, 52, 0.13), transparent 22rem),
    linear-gradient(135deg, rgba(17, 24, 22, 0.05) 1px, transparent 1px),
    linear-gradient(15deg, rgba(22, 182, 158, 0.08), transparent 34rem),
    var(--bg);
  background-size: auto, auto, 54px 54px, auto, auto;
}

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.04em;
  height: 1.04em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

main::before,
main::after,
.hero::before,
.hero::after,
.section::before,
.cta-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

main::before {
  --float-base: rotateX(60deg) rotateZ(-26deg);
  --float-move: translate3d(10px, -14px, 0) rotateX(60deg) rotateZ(-18deg);
  top: 170px;
  left: 8%;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(54, 213, 190, 0.42);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(54, 213, 190, 0.42), rgba(54, 213, 190, 0.05));
  box-shadow: inset -10px -12px 22px rgba(0, 0, 0, 0.26), 0 16px 36px rgba(54, 213, 190, 0.12);
  transform: var(--float-base);
  animation: objectFloat 7.5s ease-in-out infinite;
}

main::after {
  --float-base: rotate(-16deg);
  --float-move: translate3d(-12px, -10px, 0) rotate(-9deg);
  top: 690px;
  right: 7%;
  width: 132px;
  height: 36px;
  border: 1px solid rgba(240, 191, 89, 0.34);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 213, 190, 0.38), rgba(240, 191, 89, 0.2));
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.04), 0 18px 32px rgba(0, 0, 0, 0.18);
  transform: var(--float-base);
  animation: objectFloat 8.5s ease-in-out infinite reverse;
}

.hero > *,
.section > *,
.page-hero > *,
.cta-panel > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 44px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 0 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 19, 22, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  direction: ltr;
}

.brand {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  direction: ltr;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(54, 213, 190, 0.76);
}

.main-nav {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 22px;
  min-width: 0;
  direction: rtl;
}

.main-nav a,
.header-cta,
.control-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-actions {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  direction: ltr;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.main-nav a.active,
.main-nav a:hover,
.header-cta.active,
.header-cta:hover,
.control-pill:hover {
  color: var(--text);
}

.main-nav a.active::after {
  background: var(--accent);
}

.header-cta {
  min-width: 96px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent-2);
  background: rgba(54, 213, 190, 0.08);
  direction: rtl;
}

.control-pill {
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
}

.control-pill:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.control-pill[aria-pressed="true"] {
  border-color: var(--line-strong);
  color: var(--accent-2);
  background: rgba(54, 213, 190, 0.1);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.72);
}

.hero,
.page-hero,
.section,
.cta-panel,
.site-footer {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 82px 0 48px;
}

.hero::before {
  --float-base: rotate(14deg);
  --float-move: translate3d(-10px, 12px, 0) rotate(20deg);
  top: 18%;
  right: 6%;
  width: 118px;
  height: 32px;
  border: 1px solid rgba(54, 213, 190, 0.34);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 213, 190, 0.34), rgba(240, 191, 89, 0.16));
  transform: var(--float-base);
  animation: objectFloat 8s ease-in-out infinite;
}

.hero::after {
  --float-base: rotateX(68deg) rotateZ(-20deg);
  --float-move: translate3d(10px, -12px, 0) rotateX(68deg) rotateZ(-8deg);
  left: 4%;
  bottom: 16%;
  width: 84px;
  height: 84px;
  border: 16px solid rgba(54, 213, 190, 0.12);
  border-top-color: rgba(54, 213, 190, 0.74);
  border-radius: 50%;
  transform: var(--float-base);
  animation: objectFloat 9s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
  padding: 28px 0;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 52%;
  right: 50%;
  width: min(620px, 72vw);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(54, 213, 190, 0.48), rgba(240, 191, 89, 0.34), transparent);
  box-shadow: 0 0 24px rgba(54, 213, 190, 0.26);
  transform: translateX(50%);
  opacity: 0.72;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-title span,
.cta-panel .cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  direction: ltr;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.eyebrow::after,
.section-title span::after,
.cta-panel .cta-kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  direction: ltr;
  color: transparent;
  background: linear-gradient(90deg, #fff8ef 0 32%, var(--accent-2) 58%, #137b70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.8rem, 6.9vw, 5.2rem);
  line-height: 0.96;
  font-weight: 900;
  text-shadow: 0 18px 44px rgba(54, 213, 190, 0.08);
}

.page-hero h1 {
  direction: rtl;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.22;
}

.role {
  margin: 16px 0 0;
  direction: ltr;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  direction: ltr;
}

.hero-tags span,
.project-tags li,
.work-card ul li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.primary-btn,
.soft-btn,
.ghost-btn,
.pricing-grid a,
.work-card > a,
.work-actions > a,
.work-actions > span,
.view-all,
.about-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #07110f;
}

.soft-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.ghost-btn,
.pricing-grid a,
.work-card > a,
.work-actions > a,
.work-actions > span,
.view-all,
.about-card a {
  border: 1px solid var(--line-strong);
  background: rgba(54, 213, 190, 0.07);
  color: var(--accent-2);
}

.primary-btn:hover,
.soft-btn:hover,
.ghost-btn:hover,
.pricing-grid a:hover,
.work-card > a:hover,
.work-actions > a:hover,
.view-all:hover,
.about-card a:hover {
  transform: translateY(-2px);
}

.work-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
  margin-top: 2px;
}

.work-grid.compact .work-actions {
  grid-template-columns: 1fr;
}

.work-actions > a,
.work-actions > span {
  min-height: 40px;
  padding-inline: 13px;
}

.visit-btn {
  border-color: rgba(240, 191, 89, 0.36) !important;
  background: rgba(240, 191, 89, 0.08) !important;
  color: var(--gold) !important;
}

.visit-btn.is-disabled {
  border-color: var(--line) !important;
  color: var(--soft) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  cursor: default;
}

.page-main {
  min-height: 72vh;
}

.section,
.page-hero {
  position: relative;
  padding: 48px 0;
}

.page-hero {
  padding-top: 82px;
  padding-bottom: 28px;
}

.page-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.section::before {
  --float-base: rotate(-18deg);
  --float-move: translate3d(10px, -8px, 0) rotate(-8deg);
  top: 30px;
  left: 4%;
  width: 88px;
  height: 26px;
  border: 1px solid rgba(54, 213, 190, 0.22);
  border-radius: 999px;
  background: rgba(54, 213, 190, 0.07);
  transform: var(--float-base);
  animation: objectFloat 9s ease-in-out infinite;
}

.section:nth-of-type(even)::before {
  --float-base: rotate(15deg);
  --float-move: translate3d(-10px, 8px, 0) rotate(24deg);
  right: 6%;
  left: auto;
  border-color: rgba(240, 191, 89, 0.24);
  background: rgba(240, 191, 89, 0.08);
  transform: var(--float-base);
}

.section-title {
  position: relative;
  display: inline-grid;
  margin-bottom: 22px;
  text-align: right;
}

.section-title::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 8px;
  width: 8px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(var(--accent), rgba(240, 191, 89, 0.2));
}

.section-title h2,
.cta-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.about-card,
.cta-panel,
.service-grid article,
.work-card,
.skill,
.pricing-grid article,
.contact-tile,
.message-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px 8px 18px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--shadow);
}

.service-grid article::before,
.pricing-grid article::before,
.contact-tile::before,
.skill::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.service-grid article::after,
.pricing-grid article::after,
.contact-tile::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 13px;
  width: 26px;
  height: 26px;
  border-left: 1px solid rgba(54, 213, 190, 0.35);
  border-bottom: 1px solid rgba(54, 213, 190, 0.35);
  border-radius: 0 0 0 8px;
}

.service-grid article,
.work-card,
.pricing-grid article,
.contact-tile {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-grid article:hover,
.work-card:hover,
.pricing-grid article:hover,
.contact-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

html[data-theme="light"] .about-card,
html[data-theme="light"] .cta-panel,
html[data-theme="light"] .service-grid article,
html[data-theme="light"] .work-card,
html[data-theme="light"] .skill,
html[data-theme="light"] .pricing-grid article,
html[data-theme="light"] .contact-tile,
html[data-theme="light"] .message-form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54)),
    var(--panel);
}

.about-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 10px 38px 10px 30px;
  background:
    linear-gradient(90deg, rgba(54, 213, 190, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    var(--panel);
}

.about-card::before {
  content: "PROFILE";
  position: absolute;
  top: 18px;
  left: 24px;
  direction: ltr;
  color: rgba(54, 213, 190, 0.18);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.about-card p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 2.08;
}

.about-card p strong {
  color: var(--accent-2);
  font-weight: 900;
}

.editable-about p {
  min-height: 94px;
  padding: 14px 16px;
  border: 1px dashed rgba(54, 213, 190, 0.25);
  border-radius: var(--radius);
  background: rgba(54, 213, 190, 0.035);
  outline: 0;
}

.editable-about p:focus {
  border-color: rgba(54, 213, 190, 0.58);
  color: var(--text);
}

.service-grid,
.work-grid,
.pricing-grid,
.contact-grid,
.skills-layout {
  display: grid;
  gap: 14px;
}

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

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

.service-grid article {
  min-height: 152px;
  padding: 18px;
}

.service-grid article:nth-child(odd),
.work-card:nth-child(even) {
  border-radius: 28px 8px 20px 8px;
}

.service-grid article:nth-child(even),
.work-card:nth-child(odd) {
  border-radius: 8px 28px 8px 20px;
}

.service-grid article > .icon,
.contact-tile > .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(54, 213, 190, 0.12);
  color: var(--accent-2);
}

.service-grid h3,
.work-card h3,
.pricing-grid h3 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 900;
}

.service-grid p,
.work-card p,
.pricing-grid li,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

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

.work-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.work-card {
  display: grid;
  grid-template-rows: 122px auto auto 1fr;
  gap: 10px;
  min-height: 304px;
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(54, 213, 190, 0.07), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    var(--panel);
}

.work-card.large {
  grid-template-rows: 142px auto auto 1fr auto auto;
  min-height: 368px;
}

.work-card > span {
  direction: ltr;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
}

.work-card h3 {
  margin: 0;
}

.work-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.work-visual::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  opacity: 0.95;
  transform: rotate(-12deg);
}

.work-visual .icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  color: var(--text);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.34));
}

.work-visual.bot::before {
  background: linear-gradient(135deg, rgba(54, 213, 190, 0.78), rgba(54, 213, 190, 0.14));
}

.work-visual.music::before {
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.76), rgba(0, 216, 255, 0.16));
}

.work-visual.medical::before {
  background: linear-gradient(135deg, rgba(105, 168, 255, 0.68), rgba(54, 213, 190, 0.12));
}

.work-visual.gift::before {
  background: linear-gradient(135deg, rgba(240, 191, 89, 0.78), rgba(238, 117, 107, 0.16));
}

.work-visual.database::before {
  background: linear-gradient(135deg, rgba(136, 239, 224, 0.54), rgba(105, 168, 255, 0.16));
}

.work-visual.code::before {
  background: linear-gradient(135deg, rgba(105, 168, 255, 0.62), rgba(54, 213, 190, 0.14));
}

.work-visual.txmusic {
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.12), rgba(8, 12, 22, 0.48)),
    url("./assets/txmusic-profile.webp") center top / cover no-repeat,
    var(--bg-soft);
}

.work-visual.txmusic::before {
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 1;
  transform: none;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.08), rgba(6, 10, 20, 0.54));
}

.work-visual.txmusic .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(6px);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  margin-bottom: 50px;
  padding: 28px 30px;
  border-radius: 34px 10px 34px 10px;
  background:
    linear-gradient(90deg, rgba(54, 213, 190, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.cta-panel::before {
  --float-base: rotate(-12deg);
  --float-move: translate3d(10px, -8px, 0) rotate(-4deg);
  left: 34px;
  bottom: 28px;
  width: 150px;
  height: 38px;
  border: 1px solid rgba(240, 191, 89, 0.32);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 213, 190, 0.2), rgba(240, 191, 89, 0.18));
  transform: var(--float-base);
  animation: objectFloat 8.4s ease-in-out infinite;
}

.cta-panel::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 52px;
  height: 52px;
  border: 10px solid rgba(54, 213, 190, 0.1);
  border-top-color: rgba(54, 213, 190, 0.58);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(-22deg);
  animation: spinRing 12s linear infinite;
}

.cta-copy {
  max-width: 680px;
}

.cta-panel h2 {
  max-width: 680px;
}

.cta-panel p {
  max-width: 610px;
}

.cta-actions {
  justify-content: flex-end;
  margin-top: 0;
  min-width: 250px;
}

.skills-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.skill-box {
  min-width: 0;
}

.skill-box h3 {
  margin: 0 0 11px;
  direction: ltr;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.skill {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 94px;
  margin-bottom: 10px;
  padding: 13px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(16, 17, 20, 0.78);
}

.skill b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  direction: rtl;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.35;
}

.skill span:not(.tech-icon) {
  direction: ltr;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 900;
}

.skill > i {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.skill > i::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform-origin: right center;
  animation: skillFill 950ms cubic-bezier(0.2, 0.72, 0.14, 1) both;
}

.skill::after {
  content: "حرفه‌ای";
  justify-self: end;
  grid-column: 1 / -1;
  min-height: 26px;
  padding: 2px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  font-weight: 700;
}

.skill[style*="70%"]::after,
.skill[style*="60%"]::after {
  content: "خوب";
}

@keyframes objectFloat {
  0%,
  100% {
    transform: var(--float-base);
  }

  50% {
    transform: var(--float-move);
  }
}

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

@keyframes skillFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.tech-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tech-brand {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--accent-2);
  font-size: 1.42rem;
  line-height: 1;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.22));
}

.tech-brand.devicon-nextjs-original {
  color: #f8f8f8;
}

.language-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #07110f;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tech-js {
  background: #f0db4f;
  color: #1f1d16;
}

.tech-html,
.tech-css {
  clip-path: polygon(10% 0, 90% 0, 82% 86%, 50% 100%, 18% 86%);
  border-radius: 5px;
}

.tech-html {
  background: #e44d26;
}

.tech-css {
  background: #1572b6;
}

.tech-vue {
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 30%, #35495e 30% 44%, transparent 44%),
    linear-gradient(135deg, #42b883 0 50%, #35a77a 50%);
}

.tech-next {
  border-color: rgba(255, 255, 255, 0.24);
  background: #050505;
}

.tech-nuxt,
.tech-node,
.tech-mongo {
  background: #00dc82;
  color: #06271b;
}

.tech-react {
  border-radius: 50%;
  background: radial-gradient(circle, #61dafb 0 13%, #20232a 14%);
  color: #61dafb;
}

.tech-node {
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  border-radius: 0;
  background: #68a063;
  color: #09220a;
}

.tech-laravel {
  background: #ff2d20;
}

.tech-mysql {
  background: #00758f;
  font-size: 0.52rem;
}

.tech-mongo {
  border-radius: 999px 999px 999px 8px;
  background: #47a248;
  color: #fff;
}

.tech-lua {
  border-radius: 50%;
  background: #000080;
  font-size: 0.52rem;
}

.tech-ps {
  background: #001e36;
  color: #31a8ff;
}

.tech-pr {
  background: #2a0634;
  color: #9999ff;
}

.tech-xd {
  background: #470137;
  color: #ff61f6;
}

.tech-figma {
  background:
    radial-gradient(circle at 50% 20%, #ff7262 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #a259ff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 80%, #1abcfe 0 18%, transparent 19%),
    #151515;
  color: #fff;
}

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

.pricing-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 258px;
  padding: 18px;
}

.pricing-grid h3 {
  margin-top: 0;
}

.pricing-grid strong {
  color: var(--accent-2);
  font-size: 0.86rem;
  line-height: 1.75;
}

.pricing-grid ul {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.pricing-grid li {
  position: relative;
  padding-right: 20px;
}

.pricing-grid li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 900;
}

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

.contact-tile {
  display: grid;
  justify-items: start;
  min-height: 136px;
  padding: 20px;
}

.contact-tile strong {
  margin-top: 13px;
  direction: ltr;
  color: var(--text);
  font-size: 0.98rem;
}

.contact-tile span {
  margin-top: 3px;
  direction: ltr;
  text-align: left;
  color: var(--soft);
  font-size: 0.83rem;
}

.message-form {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-inline: auto;
  padding: 18px;
}

.message-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.message-form .full,
.primary-btn.full {
  grid-column: 1 / -1;
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 13px;
}

.message-form textarea {
  min-height: 118px;
  padding: 13px;
  resize: vertical;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: var(--line-strong);
}

.form-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 320px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(16, 17, 20, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.site-footer .brand {
  grid-column: auto;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  direction: ltr;
  background: rgba(255, 255, 255, 0.025);
}

.footer-social a:hover {
  border-color: var(--line-strong);
  color: var(--accent-2);
}

.not-found-main {
  width: min(1120px, calc(100% - 44px));
  min-height: calc(100vh - 102px);
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: 56px 0 70px;
}

.not-found-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  width: 100%;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 38px 12px 38px 12px;
  background:
    radial-gradient(circle at 18% 24%, rgba(54, 213, 190, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(54, 213, 190, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016)),
    var(--panel);
  box-shadow: var(--shadow);
}

.not-found-panel::before,
.not-found-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.not-found-panel::before {
  background:
    linear-gradient(90deg, transparent, rgba(54, 213, 190, 0.22), transparent),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42% 100%, 44px 44px;
  transform: translateX(-70%);
  animation: scanRoute 5.8s ease-in-out infinite;
}

.not-found-panel::after {
  border: 1px solid rgba(54, 213, 190, 0.16);
  border-radius: inherit;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.lost-orbit {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(320px, 64vw);
  aspect-ratio: 1;
}

.lost-logo {
  width: 54%;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38), 0 0 46px rgba(54, 213, 190, 0.16);
  animation: logoFloat 5s ease-in-out infinite;
}

.orbit-line,
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-line {
  inset: 8%;
  border: 1px solid rgba(54, 213, 190, 0.22);
  border-top-color: rgba(54, 213, 190, 0.86);
  border-left-color: rgba(240, 191, 89, 0.5);
}

.orbit-one {
  animation: orbitSpin 12s linear infinite;
}

.orbit-two {
  inset: 18%;
  border-style: dashed;
  opacity: 0.72;
  animation: orbitSpin 16s linear infinite reverse;
}

.orbit-three {
  inset: 29%;
  border-color: rgba(255, 255, 255, 0.09);
  border-right-color: rgba(54, 213, 190, 0.48);
  animation: orbitPulse 4.4s ease-in-out infinite;
}

.orbit-dot {
  width: 13px;
  height: 13px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(54, 213, 190, 0.82);
}

.dot-one {
  top: 18%;
  left: 15%;
  animation: dotDrift 4.8s ease-in-out infinite;
}

.dot-two {
  right: 18%;
  bottom: 19%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(240, 191, 89, 0.68);
  animation: dotDrift 5.6s ease-in-out infinite reverse;
}

.not-found-copy {
  max-width: 620px;
}

.not-found-copy h1 {
  margin: 0;
  direction: ltr;
  color: transparent;
  background: linear-gradient(90deg, #fff8ef 0 28%, var(--accent-2) 62%, #158a7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(5rem, 13vw, 9.2rem);
  font-weight: 900;
  line-height: 0.8;
  text-shadow: 0 24px 48px rgba(54, 213, 190, 0.08);
}

.not-found-copy h2 {
  margin: 18px 0 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.4;
  font-weight: 900;
}

.not-found-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 2;
}

.not-found-copy .hero-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .not-found-copy .hero-actions {
  justify-content: flex-start;
}

@keyframes scanRoute {
  0%,
  100% {
    transform: translateX(-72%);
    opacity: 0.22;
  }

  48% {
    transform: translateX(72%);
    opacity: 0.66;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

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

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes dotDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -9px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .service-grid,
  .service-grid.featured,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-layout,
  .work-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero {
    min-height: 520px;
  }

  .about-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, 1120px);
    top: 10px;
    min-height: auto;
    margin-top: 10px;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
  }

  .brand {
    order: initial;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-actions {
    order: initial;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-inline-end: 0;
  }

  .header-cta {
    min-width: 86px;
  }

  .main-nav {
    order: initial;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .main-nav a {
    flex: 1;
  }

  .main-nav a::after {
    bottom: -5px;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }

  .hero-content::before {
    right: 50%;
    width: min(420px, 76vw);
    height: 1px;
    transform: translateX(50%);
  }

  .about-card,
  .section-head,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .section-head .view-all {
    justify-self: start;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .not-found-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .not-found-copy {
    display: grid;
    justify-items: center;
  }

  .not-found-copy .hero-actions,
  html[dir="rtl"] .not-found-copy .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero,
  .section,
  .cta-panel,
  .not-found-main,
  .site-footer {
    width: min(100% - 22px, 1120px);
  }

  .site-header {
    width: min(100% - 18px, 1120px);
    padding: 10px;
    border-radius: 15px;
  }

  main::before,
  main::after,
  .section::before {
    opacity: 0.42;
  }

  .main-nav a,
  .header-cta,
  .control-pill {
    font-size: 0.78rem;
  }

  .main-nav {
    gap: 5px;
  }

  .main-nav a {
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-cta {
    min-width: 78px;
    padding-inline: 10px;
  }

  .control-pill {
    min-width: 48px;
    padding-inline: 9px;
  }

  .brand {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero-content {
    padding: 18px 0;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 15vw, 3.7rem);
    line-height: 1.02;
  }

  .role {
    font-size: 0.9rem;
  }

  .hero-tags span,
  .project-tags li,
  .work-card ul li {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions a,
  .cta-actions a {
    flex: 1 1 150px;
  }

  .service-grid,
  .service-grid.featured,
  .pricing-grid,
  .skills-layout,
  .work-grid,
  .work-grid.compact,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding: 38px 0;
  }

  .page-hero {
    padding-top: 54px;
  }

  .message-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .about-card,
  .cta-panel,
  .service-grid article,
  .work-card,
  .skill,
  .pricing-grid article,
  .contact-tile {
    border-radius: 14px;
  }

  .about-card {
    padding: 22px;
  }

  .about-card::before {
    font-size: 2.25rem;
    left: 16px;
    top: 14px;
  }

  .work-card,
  .work-card.large {
    grid-template-rows: 116px auto auto 1fr auto;
    min-height: auto;
  }

  .work-card.large {
    grid-template-rows: 116px auto auto auto auto auto;
  }

  .work-visual .icon {
    width: 44px;
    height: 44px;
  }

  .work-visual::before {
    width: 66px;
    height: 66px;
  }

  .pricing-grid article {
    min-height: auto;
  }

  .cta-panel {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .not-found-main {
    min-height: auto;
    padding: 34px 0 46px;
  }

  .not-found-panel {
    padding: 24px 16px;
    border-radius: 24px 10px 24px 10px;
  }

  .lost-orbit {
    width: min(250px, 72vw);
  }

  .not-found-copy h1 {
    font-size: clamp(4.2rem, 25vw, 6.2rem);
  }

  .not-found-copy p {
    font-size: 0.86rem;
  }
}

@media (max-width: 430px) {
  .main-nav a span {
    font-size: 0.72rem;
  }

  .main-nav a .icon,
  .header-cta .icon {
    width: 0.95em;
    height: 0.95em;
  }

  .section-title h2,
  .cta-panel h2 {
    font-size: 1.34rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
  }

  .contact-tile {
    min-height: 132px;
  }

  .skill {
    min-height: 86px;
    padding: 12px;
  }

  .skill b {
    font-size: 0.8rem;
  }

  .footer-social {
    width: 100%;
  }

  .footer-social a {
    flex: 1 1 120px;
    justify-content: center;
  }
}

html[data-lang="en"],
html[data-lang="en"] body {
  direction: ltr;
  text-align: left;
}

html[data-lang="en"] .main-nav,
html[data-lang="en"] .header-cta,
html[data-lang="en"] .hero-tags,
html[data-lang="en"] .work-card,
html[data-lang="en"] .message-form,
html[data-lang="en"] .admin-panel,
html[data-lang="en"] .detail-card {
  direction: ltr;
  text-align: left;
}

html[data-lang="en"] .section-title,
html[data-lang="en"] .page-hero,
html[data-lang="en"] .about-card,
html[data-lang="en"] .cta-copy {
  text-align: left;
}

html[data-lang="en"] .section-title::before {
  right: auto;
  left: -18px;
}

html[data-lang="en"] .pricing-grid li {
  padding-right: 0;
  padding-left: 20px;
}

html[data-lang="en"] .pricing-grid li::before {
  right: auto;
  left: 0;
}

html[data-lang="en"] .skill b {
  direction: ltr;
  justify-content: flex-start;
}

html[data-lang="en"] .skill::after {
  justify-self: start;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(54, 213, 190, 0.12), transparent 20rem),
    var(--bg);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader > div {
  width: min(360px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px 8px 22px 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.page-loader span,
.page-loader i,
.skeleton-card,
.skeleton-row {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(54, 213, 190, 0.18), rgba(255, 255, 255, 0.06));
  background-size: 240% 100%;
  animation: skeletonMove 1.15s linear infinite;
}

.page-loader span {
  width: 44%;
  height: 18px;
  margin-bottom: 18px;
}

.page-loader i {
  height: 12px;
  margin-top: 11px;
}

.page-loader i:nth-child(3) {
  width: 74%;
}

.page-loader i:nth-child(4) {
  width: 52%;
}

.skeleton-card {
  min-height: 260px;
  border-radius: 18px 8px 18px 8px;
}

.skeleton-row {
  min-height: 86px;
  margin-bottom: 10px;
  border-radius: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.admin-panel,
.detail-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--shadow);
}

.admin-panel::before,
.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.full-admin {
  grid-column: 1 / -1;
}

.compact-head {
  align-items: center;
  margin-bottom: 12px;
}

.admin-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.check-line {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.check-line input {
  width: auto;
  min-height: auto;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px 6px 14px 6px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-item strong {
  color: var(--text);
  font-weight: 900;
}

.admin-item span,
.admin-item small,
.empty-state {
  color: var(--soft);
  font-size: 0.8rem;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.danger {
  border-color: rgba(238, 117, 107, 0.38) !important;
  color: var(--rose) !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 16px;
}

.detail-media {
  display: grid;
  place-items: center;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 8px 30px 8px;
  background:
    linear-gradient(145deg, rgba(54, 213, 190, 0.08), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media .work-visual {
  width: min(290px, 68vw);
  aspect-ratio: 1;
  border-radius: 32px;
}

.detail-media .work-visual::before {
  width: 138px;
  height: 138px;
  border-radius: 32px;
}

.detail-media .work-visual .icon {
  width: 92px;
  height: 92px;
}

.detail-type {
  direction: ltr;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 2;
}

.detail-actions {
  margin-top: 22px;
}

@keyframes skeletonMove {
  to {
    background-position: -240% 0;
  }
}

@media (max-width: 900px) {
  .admin-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-panel,
  .detail-card {
    padding: 16px;
    border-radius: 18px 8px 18px 8px;
  }

  .detail-media {
    min-height: 250px;
  }
}

.detail-gallery {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

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

.detail-shot {
  position: relative;
  min-height: 188px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px 6px 18px 6px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-shot:first-child {
  grid-column: 1 / -1;
  min-height: 250px;
}

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

.page-loader {
  background:
    radial-gradient(circle at 70% 18%, rgba(54, 213, 190, 0.1), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 54px 54px, auto;
}

.page-loader .loader-shell {
  width: min(980px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px 10px 24px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(16, 17, 20, 0.88);
}

.loader-nav,
.loader-hero,
.loader-cards b {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.loader-nav {
  display: grid;
  grid-template-columns: 150px 1fr 82px 82px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
}

.loader-hero {
  display: grid;
  justify-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 28px 8px 28px 8px;
}

.loader-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.loader-cards b {
  min-height: 136px;
  border-radius: 18px 8px 18px 8px;
}

.loader-nav span,
.loader-nav i,
.loader-hero span,
.loader-hero strong,
.loader-hero i,
.loader-cards b {
  display: block;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(54, 213, 190, 0.13), rgba(255, 255, 255, 0.045));
  background-size: 220% 100%;
  animation: skeletonMove 1.55s ease-in-out infinite;
}

.loader-nav span {
  width: 118px;
  height: 18px;
  margin: 0;
}

.loader-nav i {
  width: 100%;
  height: 30px;
  margin: 0;
  border-radius: 999px;
}

.loader-hero span {
  width: 150px;
  height: 12px;
}

.loader-hero strong {
  width: min(520px, 78%);
  height: 58px;
  border-radius: 12px;
}

.loader-hero i {
  width: min(420px, 70%);
  height: 16px;
  margin: 0;
}

.loader-hero i:last-child {
  width: min(300px, 54%);
}

@media (max-width: 720px) {
  .loader-nav {
    grid-template-columns: 1fr 72px;
  }

  .loader-nav i:nth-of-type(2),
  .loader-nav i:nth-of-type(3) {
    display: none;
  }

  .loader-cards {
    grid-template-columns: 1fr;
  }

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


.detail-shot.contain img {
  object-fit: contain;
  padding: 10px;
  background: rgba(8, 12, 22, 0.55);
}
