/* =====================================================
   PetFinder Landing — style.css
   ===================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #12101F;
  --bg-card:     #1C1930;
  --bg-card2:    #231F38;
  --border:      rgba(255,255,255,.08);
  --orange:      #F97316;
  --orange-dark: #EA6B0A;
  --orange-glow: rgba(249,115,22,.25);
  --text:        #E4E0F4;
  --text-muted:  #8B85A8;
  --text-dim:    #5C5778;
  --white:       #FFFFFF;
  --purple-soft: #2D2750;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --shadow-orange: 0 8px 32px rgba(249,115,22,.35);
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
  --container:   1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(249,115,22,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: .9rem; }

.btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,16,31,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.logo-tagline {
  font-size: .72rem;
  color: var(--text-muted);
  max-width: 200px;
  display: none;
}
@media (min-width: 900px) { .logo-tagline { display: block; } }

.nav {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .nav { display: flex; } }

.nav-link {
  font-size: .9rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .burger { display: none; } }

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  border-top: 1px solid transparent;
}
.mobile-nav.open {
  max-height: 400px;
  padding: 16px 20px;
  border-top-color: var(--border);
}

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: rgba(255,255,255,.06); color: var(--white); }

.mobile-cta { margin-top: 12px; text-align: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}

.urgency-banner {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .9rem;
  color: #FDBA74;
  line-height: 1.5;
  max-width: 480px;
  animation: fadeSlideDown .6s ease both;
}

.urgency-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  animation: fadeSlideUp .7s .1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, #F97316 0%, #FB923C 50%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  animation: fadeSlideUp .7s .2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeSlideUp .7s .3s ease both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeSlideUp .7s .4s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: .82rem;
  color: var(--text-muted);
}

.badge-icon { font-size: 1rem; }

/* Glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
  bottom: -50px; left: 30%;
  animation: pulse-glow 8s 2s ease-in-out infinite;
}

/* ---------- STATS ---------- */
.stats-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: rgba(249,115,22,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
}

.stat-label {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- SECTION SHARED ---------- */
.how-section,
.examples-section,
.testimonials-section,
.faq-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-badge {
  display: inline-block;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.25);
  color: #FB923C;
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* ---------- HOW IT WORKS (STEPS) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.step-card:hover {
  border-color: rgba(249,115,22,.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.step-card:hover::before { opacity: 1; }

.step-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.step-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(249,115,22,.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-icon { font-size: 1.6rem; }

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- EXAMPLES ---------- */
.examples-section { background: var(--bg-card); }

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .examples-grid { grid-template-columns: repeat(3, 1fr); } }

.example-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.example-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.example-card-active { border-color: rgba(249,115,22,.35); }

.example-img-wrap { position: relative; }

.example-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.example-card:hover .example-photo {
  transform: scale(1.05);
}
.example-img-wrap {
  overflow: hidden;
}

.example-status {
  position: absolute;
  top: 12px; right: 12px;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.example-status.found {
  background: rgba(16,185,129,.2);
  color: #34D399;
  border: 1px solid rgba(16,185,129,.3);
}
.example-status.searching {
  background: rgba(249,115,22,.2);
  color: #FB923C;
  border: 1px solid rgba(249,115,22,.3);
}

.example-body { padding: 18px; }
.example-name { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.example-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }
.example-text { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }

.example-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.testimonial-card-featured {
  border-color: rgba(249,115,22,.3);
  background: linear-gradient(135deg, rgba(249,115,22,.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 4px 32px rgba(249,115,22,.1);
}

.stars { color: #FBBF24; font-size: 1rem; letter-spacing: 2px; }

.testimonial-text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong { font-size: .9rem; color: var(--white); }
.testimonial-author p { font-size: .78rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-card); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(249,115,22,.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { color: var(--orange); }

.faq-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(-180deg);
  color: var(--orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.faq-answer.open { max-height: 200px; }

.faq-answer p {
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- CTA SECTION ---------- */
.cta-section { padding: 90px 0; }

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

.cta-icon { font-size: 3rem; margin-bottom: 16px; }

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-btn { display: inline-flex; }

.cta-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-dim);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline { font-size: .85rem; color: var(--text-muted); }

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(249,115,22,.15);
  border-color: rgba(249,115,22,.3);
  color: var(--orange);
}

.footer-links-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: .8rem;
  color: var(--text-dim);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.08); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 6px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: var(--transition);
  opacity: 0.5;
  filter: grayscale(40%);
}

.lang-btn:hover {
  opacity: 0.85;
  filter: grayscale(0%);
  background: rgba(255,255,255,.1);
}

.lang-btn.active {
  opacity: 1;
  filter: grayscale(0%);
  background: rgba(249,115,22,.2);
  box-shadow: 0 0 0 2px rgba(249,115,22,.4);
}

/* ============================================================
   RTL SUPPORT (Hebrew)
   ============================================================ */
[dir="rtl"] .header-inner      { flex-direction: row-reverse; }
[dir="rtl"] .logo-block        { flex-direction: row-reverse; }
[dir="rtl"] .nav               { flex-direction: row-reverse; }
[dir="rtl"] .hero-inner        { align-items: flex-end; text-align: right; }
[dir="rtl"] .urgency-banner    { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .hero-actions      { flex-direction: row-reverse; }
[dir="rtl"] .hero-badges       { flex-direction: row-reverse; }
[dir="rtl"] .badge             { flex-direction: row-reverse; }
[dir="rtl"] .step-card         { text-align: right; }
[dir="rtl"] .step-icon-wrap    { margin-right: 0; margin-left: auto; }
[dir="rtl"] .example-footer    { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .faq-question      { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .footer-inner      { direction: rtl; }
[dir="rtl"] .footer-links      { text-align: right; }
[dir="rtl"] .footer-logo       { flex-direction: row-reverse; }
[dir="rtl"] .footer-brand      { align-items: flex-end; }
[dir="rtl"] .footer-socials    { flex-direction: row-reverse; }
[dir="rtl"] .mobile-nav        { text-align: right; }
[dir="rtl"] .mobile-nav-link   { text-align: right; }
[dir="rtl"] .section-header    { text-align: center; }



/* ============================================================
   INSTRUCTION MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(249, 115, 22, 0.18);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
}

.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.instruction-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.step-item:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateX(4px);
  background: rgba(35, 31, 56, 0.95);
}

[dir="rtl"] .step-item:hover {
  transform: translateX(-4px);
}

.step-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.step-content {
  flex-grow: 1;
}

.step-text {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.modal-footer {
  text-align: center;
}

.modal-action-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.02rem;
}

