.main-footer {
  background: #111820;
  color: #fff;
  margin-top: 60px;
  transition: background 0.3s ease;
}

.footer-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 22px;
}

.footer-brand {
  max-width: 470px;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 17px;
}

.footer-logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #37b36c;
  color: #fff;
  font-size: 1.1rem;
}

.footer-logo-text {
  color: #f4f1f1;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 2;
  font-size: 0.93rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column h3,
.footer-trust h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

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

.footer-column a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #37b36c;
}

.footer-column a i {
  font-size: 0.62rem;
  opacity: 0.45;
}

.footer-trust {
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.trust-icon {
  width: 41px;
  height: 41px;
  min-width: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(55, 179, 108, 0.1);
  color: #37b36c;
}

.trust-item strong {
  display: block;
  color: #f0ecec;
  margin-bottom: 3px;
  font-size: 0.84rem;
}

.trust-item span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.badge-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
}

.zarinpal-badge,
.enamad-badge {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zarinpal-badge:hover,
.enamad-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(55, 179, 108, 0.15);
}

.zarinpal-badge img,
.enamad-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 22px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  line-height: 1.8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #37b36c;
}

.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.2);
}

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

.custom-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-dialog-overlay.show {
  opacity: 1;
  visibility: visible;
}

.custom-dialog-box {
  background: #ffffff;
  width: 90%;
  max-width: 360px;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  font-family: inherit;
}

.custom-dialog-overlay.show .custom-dialog-box {
  transform: translateY(0) scale(1);
}

.custom-dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.custom-dialog-icon.confirm {
  background: #fee2e2;
  color: #ef4444;
}

.custom-dialog-icon.alert {
  background: #e0e7ff;
  color: #4f46e5;
}

.custom-dialog-box h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 800;
  transition: color 0.3s ease;
}

.custom-dialog-box p {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.custom-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.custom-btn.cancel {
  background: #f1f5f9;
  color: #475569;
}

.custom-btn.cancel:hover {
  background: #e2e8f0;
}

.custom-btn.danger {
  background: #ef4444;
  color: #fff;
}

.custom-btn.danger:hover {
  background: #dc2626;
}

.custom-btn.primary {
  background: #4f46e5;
  color: #fff;
}

.custom-btn.primary:hover {
  background: #4338ca;
}

.driverjs-theme-ghaboolito .driver-popover-title {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111820;
  margin-bottom: 8px;
}

.driverjs-theme-ghaboolito .driver-popover-description {
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #54705f;
}

.driverjs-theme-ghaboolito .driver-popover-footer button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
}

.driverjs-theme-ghaboolito .driver-popover-next-btn {
  background-color: #37b36c !important;
  color: white !important;
  text-shadow: none !important;
}

.driverjs-theme-ghaboolito .driver-popover-close-btn {
  color: #7d878c !important;
}

html.dark-theme .main-footer {
  background: #070a14;
  border-top: 1px solid #131b2f;
}

html.dark-theme .footer-content,
html.dark-theme .footer-trust,
html.dark-theme .footer-badges {
  border-color: rgba(255, 255, 255, 0.04);
}

html.dark-theme .trust-item {
  background: #0a0f1d;
  border-color: rgba(255, 255, 255, 0.03);
}

html.dark-theme .badge-title {
  color: #94a3b8;
}

html.dark-theme .custom-dialog-overlay {
  background: rgba(0, 0, 0, 0.75);
}

html.dark-theme .custom-dialog-box {
  background: #131b2f;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

html.dark-theme .custom-dialog-box h3 {
  color: #f1f5f9;
}

html.dark-theme .custom-dialog-box p {
  color: #94a3b8;
}

html.dark-theme .custom-btn.cancel {
  background: #1a233a;
  color: #cbd5e1;
}

html.dark-theme .custom-btn.cancel:hover {
  background: #273554;
  color: #fff;
}

html.dark-theme .driver-popover {
  background-color: #131b2f !important;
  border: 1px solid #273554 !important;
}

html.dark-theme .driverjs-theme-ghaboolito .driver-popover-title {
  color: #f1f5f9 !important;
}

html.dark-theme .driverjs-theme-ghaboolito .driver-popover-description {
  color: #94a3b8 !important;
}

html.dark-theme .driverjs-theme-ghaboolito .driver-popover-close-btn {
  color: #64748b !important;
}

html.dark-theme .driverjs-theme-ghaboolito .driver-popover-close-btn:hover {
  color: #cbd5e1 !important;
}

html.dark-theme .driver-popover-arrow-side-left .driver-popover-arrow,
html.dark-theme .driver-popover-arrow-side-right .driver-popover-arrow,
html.dark-theme .driver-popover-arrow-side-top .driver-popover-arrow,
html.dark-theme .driver-popover-arrow-side-bottom .driver-popover-arrow {
  border-color: #131b2f !important;
}