

.footer-v2 {
  position: relative;
  padding: 0 24px 30px;
  margin-top: 80px;
  color: var(--text);
  font-family: inherit;
  background:
    linear-gradient(180deg, transparent 0%, rgba(var(--brand-primary-rgb), 0.03) 100%);
  overflow: hidden;
  isolation: isolate;
}
body.light .footer-v2 {
  background:
    linear-gradient(180deg, transparent 0%, rgba(var(--brand-primary-rgb), 0.04) 100%);
}

.footer-grad-line {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brand-primary) 25%,
    var(--brand-accent) 50%,
    var(--brand-secondary) 75%,
    transparent 100%);
  margin-bottom: 60px;
  border-radius: 2px;
}

.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.footer-orb.fo1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.18), transparent 70%);
  top: 10%; inset-inline-start: -100px;
}
.footer-orb.fo2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(var(--brand-accent-rgb), 0.15), transparent 70%);
  bottom: 5%; inset-inline-end: -80px;
}

.footer-cta {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 32px 40px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.15), rgba(var(--brand-accent-rgb), 0.12)),
    radial-gradient(ellipse at top right, rgba(var(--brand-secondary-rgb), 0.15), transparent 60%);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: footer-cta-glow 6s ease-in-out infinite;
}
@keyframes footer-cta-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%      { transform: translate(40px, 30px) scale(1.2); opacity: 0.8; }
}
.footer-cta-text { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.footer-cta-text h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}
.footer-cta-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-cta-btn {
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white !important;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(var(--brand-primary-rgb), 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.footer-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(var(--brand-primary-rgb), 0.6);
}
.footer-cta-btn i { font-size: 1.1rem; }

.footer-main {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
  gap: 40px;
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.footer-col-brand { padding-inline-end: 20px; }
.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo span {
  color: var(--brand-primary);
  text-shadow: 0 0 16px rgba(var(--brand-primary-rgb), 0.35);
}
.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 20px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--brand-primary-rgb), 0.1);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
  color: var(--brand-primary);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.footer-trust-item i { font-size: 0.85rem; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.footer-links a::before {
  content: '→';
  opacity: 0;
  margin-inline-end: 0;
  width: 0;
  transition: opacity 0.2s, margin-inline-end 0.2s, width 0.2s;
  color: var(--brand-primary);
}
html[dir="rtl"] .footer-links a::before { content: '←'; }
.footer-links a:hover {
  color: var(--brand-primary);
  transform: translateX(2px);
}
html[dir="rtl"] .footer-links a:hover { transform: translateX(-2px); }
.footer-links a:hover::before {
  opacity: 1;
  margin-inline-end: 4px;
  width: 12px;
}

.footer-col-newsletter { padding-inline-start: 16px; }
.footer-newsletter-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-newsletter input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gborder);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
body.light .footer-newsletter input { background: rgba(0,0,0,0.04); }
.footer-newsletter input::placeholder { color: var(--muted); }
.footer-newsletter input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
}
.footer-newsletter button {
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: grid;
  place-items: center;
}
.footer-newsletter button:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.4);
}
.footer-newsletter button:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-newsletter-msg {
  font-size: 0.82rem;
  padding: 0 4px;
  min-height: 18px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-newsletter-msg.ok    { color: #10b981; }
.footer-newsletter-msg.err   { color: #ef4444; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gborder);
  transition: all 0.2s;
}
body.light .footer-contact-item { background: rgba(0,0,0,0.03); }
.footer-contact-item:hover {
  color: var(--brand-primary);
  border-color: rgba(var(--brand-primary-rgb), 0.3);
  background: rgba(var(--brand-primary-rgb), 0.08);
}
.footer-contact-item i {
  width: 22px;
  font-size: 1rem;
  text-align: center;
}

.footer-divider {
  max-width: 1200px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gborder) 20%,
    var(--gborder) 80%,
    transparent 100%);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}
.footer-copy strong { color: var(--text); }

.footer-payment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--muted);
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--gborder);
}
.footer-pay-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-inline-end: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-payment i {
  transition: color 0.2s, transform 0.2s;
}
.footer-payment i:hover {
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gborder);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.25s;
}
body.light .footer-socials a { background: rgba(0,0,0,0.04); }
.footer-socials a:hover {
  background-image: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.4);
}

.footer-dev-credit {
  max-width: 1200px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px dashed var(--gborder);
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.footer-dev-credit:hover { opacity: 1; }
.footer-dev-credit a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.footer-dev-credit a:hover {
  background: rgba(var(--brand-primary-rgb), 0.12);
  color: var(--brand-primary);
  transform: translateY(-1px);
}
.footer-dev-credit a i {
  font-size: 0.85rem;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 980px) {

  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col-brand,
  .footer-col-newsletter { grid-column: 1 / -1; padding: 0; }
  .footer-cta { padding: 28px 24px; }
  .footer-cta-text h3 { font-size: 1.3rem; }
}

@media (max-width: 600px) {
  .footer-v2 { padding: 0 16px 24px; margin-top: 50px; }
  .footer-grad-line { margin-bottom: 40px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 18px; margin-bottom: 28px; }
  .footer-col-brand,
  .footer-col-newsletter { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 0.85rem; margin-bottom: 14px; }
  .footer-links a { font-size: 0.85rem; }
  .footer-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 40px;
  }
  .footer-cta-text h3 { font-size: 1.15rem; }
  .footer-cta-btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-bottom-left { flex-direction: column; gap: 14px; align-items: center; }
  .footer-payment { border: none; padding: 0; }
  .footer-socials { justify-content: center; }
}

@media (max-width: 360px) {
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
}
