.locked-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.5s var(--ease-out);
}
.locked-modal.open { opacity: 1; pointer-events: auto; }
.locked-modal-overlay {
  position: absolute; inset: 0; background: rgba(5,6,8,0.92); backdrop-filter: blur(20px);
}
.locked-modal-content {
  position: relative; width: 92%; max-width: 440px;
  background: linear-gradient(145deg, #11141b, #0a0c10);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 4px; padding: 56px 48px; text-align: center;
  transform: translateY(30px) scale(0.95); transition: all 0.6s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}
.locked-modal.open .locked-modal-content { transform: translateY(0) scale(1); }
.locked-modal-icon {
  font-size: 56px; margin-bottom: 24px; display: block;
}
.locked-modal-title {
  font-family: 'Cormorant Garamond', serif; font-size: 36px; color: var(--text);
  margin-bottom: 16px; font-weight: 300; letter-spacing: -0.5px;
}
.locked-modal-text {
  font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--text2);
  line-height: 1.7; margin-bottom: 36px; font-weight: 300;
}
.locked-modal-content .btn-ghost {
  justify-content: center; border: 1px solid rgba(255,255,255,0.08);
  padding: 14px; color: var(--text2); font-size: 12px; border-radius: 1px;
  background: rgba(0,0,0,0.3);
}
.locked-modal-content .btn-ghost:hover {
  border-color: var(--gold); color: var(--gold); background: var(--bg);
}

/* FAQ Modal Styles */
.faq-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.5s var(--ease-out);
}
.faq-modal.open { opacity: 1; pointer-events: auto; }
.faq-modal-overlay {
  position: absolute; inset: 0; background: rgba(5,6,8,0.92); backdrop-filter: blur(20px);
}
.faq-modal-content {
  position: relative; width: 92%; max-width: 680px;
  max-height: 85vh;
  background: linear-gradient(145deg, #11141b, #0a0c10);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 4px; padding: 48px 40px;
  transform: translateY(30px) scale(0.95); transition: all 0.6s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow-y: auto;
}
.faq-modal.open .faq-modal-content { transform: translateY(0) scale(1); }
.faq-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.faq-modal-close:hover {
  background: rgba(217,90,90,0.15);
  border-color: rgba(217,90,90,0.3);
  color: #d95a5a;
}
.faq-modal-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.faq-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.faq-modal-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
}

/* FAQ Category Tabs */
.faq-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-category-tab {
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: var(--text2);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-align: center;
}
.faq-category-tab:hover {
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.3);
  color: var(--gold);
}
.faq-category-tab.active {
  background: linear-gradient(135deg, rgba(201,169,110,0.2), rgba(201,169,110,0.1));
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* FAQ Category Content */
.faq-category-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.faq-category-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}
.faq-item:hover {
  border-color: rgba(201,169,110,0.2);
  background: rgba(201,169,110,0.03);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}
.faq-question:hover {
  color: var(--gold);
}
.faq-toggle-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px 20px;
}
.faq-answer p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}
.faq-answer strong {
  color: var(--gold);
  font-weight: 600;
}
.faq-modal-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.faq-footer-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
  font-weight: 300;
}
.faq-footer-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.faq-footer-link:hover {
  color: var(--gold2);
  transform: translateX(4px);
}

.tmpl-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 12px;
  color: var(--text2);
  vertical-align: middle;
}
.tmpl-live-dot {
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
#free-tmpl-count { color: var(--gold); font-weight: 500; }

/* Legal Modal Styles */
.legal-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.5s var(--ease-out);
}
.legal-modal.open { opacity: 1; pointer-events: auto; }
.legal-modal-overlay {
  position: absolute; inset: 0; background: rgba(5,6,8,0.92); backdrop-filter: blur(20px);
}
.legal-modal-content {
  position: relative; width: 92%; max-width: 680px;
  max-height: 85vh;
  background: linear-gradient(145deg, #11141b, #0a0c10);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 4px; padding: 48px 40px;
  transform: translateY(30px) scale(0.95); transition: all 0.6s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow-y: auto;
}
.legal-modal.open .legal-modal-content { transform: translateY(0) scale(1); }
.legal-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.legal-modal-close:hover {
  background: rgba(217,90,90,0.15);
  border-color: rgba(217,90,90,0.3);
  color: #d95a5a;
}
.legal-modal-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.legal-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.legal-modal-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.legal-content p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}
.legal-content strong {
  color: var(--gold);
  font-weight: 600;
}
.legal-modal-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-footer-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
  font-weight: 300;
}
.legal-footer-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.legal-footer-link:hover {
  color: var(--gold2);
  transform: translateX(4px);
}

/* Contact Support Modal Styles */
.cs-modal-content > div:nth-of-type(3) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.cs-modal-content > div:nth-of-type(6) {
  width: 100%;
}
.cs-modal-content > div:nth-of-type(7) {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.cs-modal-content > div:nth-of-type(7) button {
  flex: 1;
  max-width: none;
}

@media (max-width: 768px) {
  .cs-modal-content {
    padding: 16px !important;
  }
  .cs-modal-content > div:nth-of-type(3) {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .cs-modal-content > div:nth-of-type(4),
  .cs-modal-content > div:nth-of-type(5) {
    margin-bottom: 10px;
  }
  .cs-modal-content > div:nth-of-type(6) {
    margin-bottom: 10px;
  }
  .cs-modal-content > div:nth-of-type(7) {
    flex-direction: column !important;
    gap: 8px;
  }
  .cs-modal-content > div:nth-of-type(7) button {
    width: 100% !important;
  }
}

/* Mobile Responsive Styles for All Modals */
@media (max-width: 768px) {
  .locked-modal-content {
    width: 94%;
    max-width: 400px;
    padding: 40px 32px;
  }
  .locked-modal-icon { font-size: 48px; margin-bottom: 20px; }
  .locked-modal-title { font-size: 28px; margin-bottom: 12px; }
  .locked-modal-text { font-size: 14px; margin-bottom: 28px; }
  
  .faq-modal-content {
    width: 94%;
    max-width: 600px;
    padding: 36px 28px;
  }
  .faq-modal-header { margin-bottom: 24px; padding-bottom: 20px; }
  .faq-modal-icon { font-size: 40px; margin-bottom: 12px; }
  .faq-modal-title { font-size: 26px; margin-bottom: 6px; }
  .faq-modal-sub { font-size: 13px; }
  .faq-categories {
    gap: 6px;
    margin-bottom: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-category-tab { padding: 6px 12px; font-size: 11px; }
  .faq-question { padding: 14px 16px; font-size: 14px; }
  .faq-answer p { font-size: 13px; }
  
  .legal-modal-content {
    width: 94%;
    max-width: 600px;
    padding: 36px 28px;
  }
  .legal-modal-header { margin-bottom: 24px; padding-bottom: 20px; }
  .legal-modal-icon { font-size: 40px; margin-bottom: 12px; }
  .legal-modal-title { font-size: 26px; margin-bottom: 6px; }
  .legal-modal-sub { font-size: 13px; }
  .legal-content h3 { font-size: 15px; }
  .legal-content p { font-size: 13px; }
}

@media (max-width: 480px) {
  .locked-modal-content {
    width: 92%;
    max-width: 360px;
    padding: 32px 24px;
  }
  .locked-modal-icon { font-size: 40px; margin-bottom: 16px; }
  .locked-modal-title { font-size: 24px; margin-bottom: 10px; }
  .locked-modal-text { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }
  .locked-modal-content .btn-ghost { padding: 12px; font-size: 11px; }
  
  .faq-modal-content {
    width: 92%;
    max-width: 340px;
    padding: 28px 20px;
  }
  .faq-modal-close { top: 16px; right: 16px; width: 32px; height: 32px; font-size: 16px; }
  .faq-modal-header { margin-bottom: 20px; padding-bottom: 16px; }
  .faq-modal-icon { font-size: 36px; margin-bottom: 10px; }
  .faq-modal-title { font-size: 22px; margin-bottom: 4px; }
  .faq-modal-sub { font-size: 12px; }
  .faq-categories {
    gap: 4px;
    margin-bottom: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-category-tab { padding: 5px 10px; font-size: 10px; }
  .faq-question { padding: 12px 14px; font-size: 13px; }
  .faq-answer p { font-size: 12px; line-height: 1.6; }
  .faq-footer-text { font-size: 13px; }
  .faq-footer-link { font-size: 13px; }
  
  .legal-modal-content {
    width: 92%;
    max-width: 340px;
    padding: 28px 20px;
  }
  .legal-modal-close { top: 16px; right: 16px; width: 32px; height: 32px; font-size: 16px; }
  .legal-modal-header { margin-bottom: 20px; padding-bottom: 16px; }
  .legal-modal-icon { font-size: 36px; margin-bottom: 10px; }
  .legal-modal-title { font-size: 22px; margin-bottom: 4px; }
  .legal-modal-sub { font-size: 12px; }
  .legal-content { gap: 16px; }
  .legal-content h3 { font-size: 14px; }
  .legal-content p { font-size: 12px; line-height: 1.6; }
  .legal-footer-text { font-size: 13px; }
  .legal-footer-link { font-size: 13px; }
}