/* زاگرۆس — وێبسایتی پیشەسازی · دیزاینی سەردەمی */
:root {
  --ps-bg: #030508;
  --ps-bg-elevated: #0a0f1a;
  --ps-bg-card: rgba(12, 18, 32, 0.72);
  --ps-border: rgba(255, 255, 255, 0.08);
  --ps-border-strong: rgba(255, 255, 255, 0.14);
  --ps-text: #f8fafc;
  --ps-muted: #94a3b8;
  --ps-red: #e31e24;
  --ps-red-bright: #ff3d2e;
  --ps-red-glow: rgba(227, 30, 36, 0.45);
  --ps-gold: #e8b84a;
  --ps-gold-soft: rgba(232, 184, 74, 0.2);
  --ps-wa: #25d366;
  --ps-radius: 20px;
  --ps-radius-lg: 28px;
  --ps-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --ps-shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.35);
  --ps-font: "Noto Kufi Arabic", system-ui, sans-serif;
  --ps-header-h: 5rem;
  --ps-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.public-site {
  margin: 0;
  font-family: var(--ps-font);
  background: var(--ps-bg);
  color: var(--ps-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.muted {
  color: var(--ps-muted);
}

.ps-container {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Ambient background */
.ps-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ps-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ps-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: psOrbFloat 20s ease-in-out infinite;
}

.ps-ambient__orb--1 {
  width: 55vw;
  height: 55vw;
  top: -15%;
  inset-inline-end: -10%;
  background: radial-gradient(circle, var(--ps-red-glow), transparent 70%);
}

.ps-ambient__orb--2 {
  width: 40vw;
  height: 40vw;
  bottom: 10%;
  inset-inline-start: -15%;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.2), transparent 70%);
  animation-delay: -7s;
}

.ps-ambient__orb--3 {
  width: 30vw;
  height: 30vw;
  top: 45%;
  left: 40%;
  background: radial-gradient(circle, var(--ps-gold-soft), transparent 70%);
  animation-delay: -12s;
}

@keyframes psOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, 4%) scale(1.05);
  }
}

/* Header */
.ps-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  transition: background 0.4s var(--ps-ease), box-shadow 0.4s var(--ps-ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.ps-header.is-scrolled {
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--ps-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.ps-header__inner {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--ps-header-h);
}

.ps-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.ps-logo__mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px var(--ps-red-glow));
}

.ps-logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ps-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ps-logo__text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ps-logo__text small {
  font-size: 0.7rem;
  color: var(--ps-muted);
  font-weight: 500;
}

.ps-lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--ps-border);
  background: rgba(0, 0, 0, 0.35);
  margin-inline-start: auto;
  backdrop-filter: blur(8px);
}

.ps-lang__btn {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ps-muted);
  transition: all 0.25s var(--ps-ease);
}

.ps-lang__btn:hover {
  color: var(--ps-text);
}

.ps-lang__btn.is-active {
  background: linear-gradient(135deg, var(--ps-red), var(--ps-red-bright));
  color: #fff;
  box-shadow: 0 4px 16px var(--ps-red-glow);
}

.ps-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.ps-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ps-muted);
  transition: color 0.2s, background 0.2s;
}

.ps-nav a:hover {
  color: var(--ps-text);
  background: rgba(255, 255, 255, 0.06);
}

.ps-nav__admin {
  margin-inline-start: 0.35rem;
  border: 1px solid var(--ps-border-strong) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ps-gold) !important;
}

.ps-nav__admin:hover {
  border-color: var(--ps-gold) !important;
  background: var(--ps-gold-soft) !important;
}

.ps-settings-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--ps-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ps-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ps-ease);
}

.ps-settings-btn:hover {
  color: var(--ps-gold);
  border-color: var(--ps-gold);
  transform: rotate(90deg);
  background: var(--ps-gold-soft);
}

/* Hero */
.ps-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.ps-hero__slides {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.ps-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ps-ease);
  pointer-events: none;
}

.ps-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ps-hero__slide.is-active .ps-hero__content > * {
  animation: psHeroIn 0.9s var(--ps-ease) backwards;
}

.ps-hero__slide.is-active .ps-hero__badge {
  animation-delay: 0.05s;
}
.ps-hero__slide.is-active .ps-hero__eyebrow {
  animation-delay: 0.12s;
}
.ps-hero__slide.is-active .ps-hero__title {
  animation-delay: 0.2s;
}
.ps-hero__slide.is-active .ps-hero__line {
  animation-delay: 0.28s;
}
.ps-hero__slide.is-active .ps-hero__actions {
  animation-delay: 0.38s;
}

@keyframes psHeroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ps-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
}

.ps-hero__slide.is-active .ps-hero__bg {
  animation: psKenBurns 22s ease-in-out infinite alternate;
}

@keyframes psKenBurns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.14);
  }
}

.ps-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.55) 0%, transparent 28%, rgba(3, 5, 8, 0.4) 70%, rgba(3, 5, 8, 0.95) 100%),
    linear-gradient(105deg, rgba(3, 5, 8, 0.92) 0%, rgba(3, 5, 8, 0.5) 42%, rgba(227, 30, 36, 0.12) 100%);
}

.ps-hero__content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: calc(var(--ps-header-h) + 3rem) 0 8rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 52rem;
}

.ps-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-gold);
  background: rgba(232, 184, 74, 0.12);
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.ps-hero__eyebrow {
  color: var(--ps-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.ps-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #fff 45%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ps-hero__line {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ps-muted);
  max-width: 38ch;
  font-weight: 500;
}

.ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.ps-hero__controls {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 min(2.5rem, 5vw) 2.5rem;
  width: min(1240px, 100%);
  margin-inline: auto;
  pointer-events: none;
}

.ps-hero__dots {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.ps-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s var(--ps-ease);
}

.ps-hero__dot.is-active {
  width: 2.5rem;
  background: linear-gradient(90deg, var(--ps-gold), var(--ps-red-bright));
}

.ps-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ps-muted);
  pointer-events: auto;
  transition: color 0.2s;
}

.ps-hero__scroll:hover {
  color: var(--ps-gold);
}

.ps-hero__scroll-icon {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--ps-border-strong);
  border-radius: 999px;
  position: relative;
}

.ps-hero__scroll-icon::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--ps-gold);
  border-radius: 999px;
  animation: psScrollBounce 2s ease-in-out infinite;
}

@keyframes psScrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

/* Trust strip */
.ps-trust {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  border-block: 1px solid var(--ps-border);
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(16px);
}

.ps-trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
}

.ps-trust__item {
  text-align: center;
  min-width: 6rem;
}

.ps-trust__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ps-gold);
  line-height: 1.1;
}

.ps-trust__label {
  display: block;
  font-size: 0.8rem;
  color: var(--ps-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.ps-trust__label--solo {
  font-size: 0.95rem;
  color: var(--ps-text);
}

.ps-trust__divider {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, transparent, var(--ps-border-strong), transparent);
}

/* Buttons */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ps-ease), box-shadow 0.25s var(--ps-ease);
}

.ps-btn:hover {
  transform: translateY(-3px);
}

.ps-btn--primary {
  background: linear-gradient(135deg, var(--ps-red) 0%, var(--ps-red-bright) 100%);
  color: #fff;
  box-shadow: 0 12px 40px var(--ps-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ps-btn--primary:hover {
  box-shadow: 0 18px 50px var(--ps-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ps-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ps-text);
  border: 1px solid var(--ps-border-strong);
  backdrop-filter: blur(8px);
}

.ps-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.ps-btn--wa {
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
  margin-top: 1rem;
  width: 100%;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

/* Sections */
.ps-section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.ps-section__head {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 40rem;
  margin-inline: auto;
}

.ps-section__head--start {
  text-align: inherit;
  margin-inline: 0;
  max-width: 36rem;
}

.ps-section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-red-bright);
  margin-bottom: 0.75rem;
}

.ps-section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ps-section__lead {
  margin: 0;
  font-size: 1.05rem;
}

/* About */
.ps-about {
  background: linear-gradient(180deg, var(--ps-bg) 0%, var(--ps-bg-elevated) 50%, var(--ps-bg) 100%);
}

.ps-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.ps-about__lead {
  font-size: 1.1rem;
  color: var(--ps-muted);
  margin: 0 0 2rem;
  line-height: 1.85;
}

.ps-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ps-stat-card {
  padding: 1.35rem 1rem;
  text-align: center;
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ps-ease), border-color 0.3s;
}

.ps-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--ps-border-strong);
}

.ps-stat-card--accent {
  border-color: rgba(227, 30, 36, 0.35);
  background: linear-gradient(145deg, rgba(227, 30, 36, 0.15), var(--ps-bg-card));
}

.ps-stat-card__value {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--ps-gold);
  line-height: 1;
}

.ps-stat-card__label {
  display: block;
  font-size: 0.78rem;
  color: var(--ps-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

.ps-about__frame {
  position: relative;
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ps-border-strong);
  box-shadow: var(--ps-shadow);
}

.ps-about__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, var(--ps-red-glow), transparent 55%);
  animation: psOrbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.ps-about__frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

/* Products */
.ps-products {
  background: var(--ps-bg-elevated);
}

.ps-products__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.ps-product-card {
  position: relative;
  grid-column: span 4;
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ps-ease), box-shadow 0.4s var(--ps-ease), border-color 0.3s;
}

.ps-product-card--featured {
  grid-column: span 8;
  grid-row: span 2;
}

.ps-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 184, 74, 0.25);
  box-shadow: var(--ps-shadow);
}

.ps-product-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.7s var(--ps-ease);
  z-index: 2;
  pointer-events: none;
}

.ps-product-card:hover .ps-product-card__shine {
  transform: translateX(100%);
}

.ps-product-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1117, #1a1f2e);
}

.ps-product-card--featured .ps-product-card__img {
  aspect-ratio: 16 / 11;
}

.ps-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ps-ease);
}

.ps-product-card:hover .ps-product-card__img img {
  transform: scale(1.06);
}

.ps-product-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  position: relative;
  z-index: 1;
}

.ps-product-card__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-gold);
}

.ps-product-card h3 {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.ps-product-card--featured h3 {
  font-size: 1.5rem;
}

/* Contact */
.ps-contact {
  overflow: hidden;
}

.ps-contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(227, 30, 36, 0.15), transparent),
    linear-gradient(180deg, var(--ps-bg-elevated), var(--ps-bg));
  pointer-events: none;
}

.ps-contact__wrap {
  position: relative;
  z-index: 1;
}

.ps-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.ps-contact__card {
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ps-ease), border-color 0.35s;
}

.ps-contact__card:hover {
  transform: translateY(-6px);
  border-color: var(--ps-border-strong);
}

.ps-contact__card--wa {
  border-color: rgba(37, 211, 102, 0.3);
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.08), var(--ps-bg-card));
}

.ps-contact__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ps-gold);
}

.ps-contact__icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
}

.ps-contact__card--wa .ps-contact__icon-wrap {
  color: var(--ps-wa);
  background: rgba(37, 211, 102, 0.12);
}

.ps-contact__card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.ps-contact__value {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.95rem;
}

.ps-contact__value a {
  color: var(--ps-gold);
  font-weight: 700;
  direction: ltr;
  unicode-bidi: plaintext;
  font-size: 1.05rem;
}

/* Footer */
.ps-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ps-border);
  padding: 2.5rem 0 2rem;
  background: var(--ps-bg);
}

.ps-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.ps-footer__brand strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
}

.ps-footer__brand p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ps-muted);
}

.ps-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ps-muted);
}

.ps-footer__copy a {
  color: var(--ps-text);
  font-weight: 600;
}

.ps-footer__admin {
  justify-self: end;
  padding: 0.65rem 1.2rem !important;
  font-size: 0.85rem !important;
}

/* Reveal animation */
.ps-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ps-ease), transform 0.9s var(--ps-ease);
}

.ps-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ps-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ps-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.ps-modal__panel--hub {
  width: min(400px, 100%);
}

.ps-modal__panel--wide {
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
}

.ps-modal__panel {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(160deg, #141c2e, #0a0f18);
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow);
  padding: 1.5rem 1.6rem 1.6rem;
  transform: scale(0.95);
  transition: transform 0.35s var(--ps-ease);
}

.ps-modal.is-open .ps-modal__panel {
  transform: scale(1);
}

.ps-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ps-modal__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.ps-modal__close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--ps-muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.ps-modal__close:hover {
  background: rgba(227, 30, 36, 0.2);
  color: #fff;
}

.ps-modal__form label {
  display: block;
  margin-bottom: 1rem;
}

.ps-modal__form label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ps-muted);
  margin-bottom: 0.4rem;
}

.ps-modal__form input,
.ps-modal__form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--ps-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ps-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ps-modal__form input:focus,
.ps-modal__form textarea:focus {
  outline: none;
  border-color: var(--ps-red);
  box-shadow: 0 0 0 3px var(--ps-red-glow);
}

.ps-modal__foot {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Toasts */
.ps-toasts {
  position: fixed;
  bottom: 1.5rem;
  inset-inline: 1.5rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  transition: opacity 0.4s;
}

.ps-toast {
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: rgba(20, 28, 46, 0.95);
  border: 1px solid var(--ps-border-strong);
  box-shadow: var(--ps-shadow-soft);
  backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: 0.9rem;
}

.ps-toast--ok {
  border-color: rgba(37, 211, 102, 0.45);
}

.ps-toast--error {
  border-color: rgba(227, 30, 36, 0.55);
}

.ps-settings-hub {
  display: grid;
  gap: 0.75rem;
  padding: 0 0 0.25rem;
}

.ps-settings-hub__tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--ps-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.2s, background 0.2s;
}

.ps-settings-hub__tile:hover {
  border-color: var(--ps-red);
  background: rgba(227, 30, 36, 0.08);
}

.ps-settings-hub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(227, 30, 36, 0.15);
  color: var(--ps-red);
  flex-shrink: 0;
}

.ps-products-admin__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 220px;
  overflow: auto;
}

.ps-products-admin__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--ps-border);
  background: rgba(255, 255, 255, 0.03);
}

.ps-products-admin__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ps-products-admin__meta {
  min-width: 0;
}

.ps-products-admin__meta strong {
  display: block;
  font-size: 0.9rem;
}

.ps-products-admin__meta .muted {
  font-size: 0.75rem;
  opacity: 0.7;
}

.ps-products-admin__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.ps-products-admin__delete-form {
  margin: 0;
}

.ps-btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.ps-btn--danger {
  color: #ff8a8a;
}

.ps-products-admin__empty {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.ps-products-admin__form {
  border-top: 1px solid var(--ps-border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.ps-products-admin__form-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.ps-products-admin__preview {
  margin-bottom: 0.75rem;
}

.ps-products-admin__preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

/* LTR */
html[dir="ltr"] .ps-hero__content,
html[dir="ltr"] .ps-section__head--start,
html[dir="ltr"] .ps-about__text {
  text-align: left;
}

html[dir="ltr"] .ps-section__head {
  text-align: center;
}

html[dir="ltr"] .ps-btn--primary svg {
  transform: scaleX(-1);
}

html[dir="ltr"] .ps-footer__inner {
  text-align: left;
}

html[dir="ltr"] .ps-footer__admin {
  justify-self: end;
}

/* Responsive */
@media (max-width: 1024px) {
  .ps-product-card,
  .ps-product-card--featured {
    grid-column: span 6;
    grid-row: span 1;
  }

  .ps-product-card--featured .ps-product-card__img {
    aspect-ratio: 4 / 5;
  }

  .ps-about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ps-about__visual {
    order: -1;
  }
}

@media (max-width: 900px) {
  .ps-nav {
    display: none;
  }

  .ps-lang {
    margin-inline-start: auto;
  }

  .ps-contact__grid {
    grid-template-columns: 1fr;
  }

  .ps-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ps-footer__admin {
    justify-self: center;
  }

  .ps-trust__divider--hide-mobile,
  .ps-trust__item--hide-mobile {
    display: none;
  }

  .ps-stats {
    grid-template-columns: 1fr;
  }

  .ps-hero__controls {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .ps-product-card,
  .ps-product-card--featured {
    grid-column: span 12;
  }

  .ps-section {
    padding: 4rem 0;
  }

  .ps-hero__title {
    font-size: 2.25rem;
  }
}

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

  .ps-reveal {
    opacity: 1;
    transform: none;
  }
}
