/* css/free-resources.css - Premium Free Resources Design System for LeadPilot */

/* ── 1. ROOT VARIABLES ── */
:root {
  --res-bg: #FFFFFF;
  --res-bg-subtle: #FAF9FC;
  --res-bg-alt: #F1F5F9;
  --res-text-main: #0F172A;
  --res-text-body: #475569;
  --res-text-muted: #64748B;
  --res-border: #E2E8F0;
  --res-border-light: #F1F5F9;
  --res-purple: #7C3AED;
  --res-purple-light: #F3E8FF;
  --res-pink: #EC4899;
  --res-orange: #F59E0B;
  --res-brand-gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
  --res-brand-gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(245, 158, 11, 0.08) 100%);
  --res-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --res-card-hover-shadow: 0 20px 45px -12px rgba(124, 58, 237, 0.18), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  --res-radius-lg: 24px;
  --res-radius-md: 16px;
  --res-radius-sm: 8px;
}

/* ── 2. HERO SECTION ── */
.res-hero-section {
  padding: 80px 0 60px 0;
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--res-border-light);
  position: relative;
  overflow: hidden;
}

.res-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .res-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.res-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--res-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.res-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--res-text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: var(--font-family-heading, 'Inter Tight', sans-serif);
}

@media (max-width: 768px) {
  .res-hero-title { font-size: 34px; }
}

.res-hero-sub {
  font-size: 19px;
  color: var(--res-text-body);
  line-height: 1.6;
  margin-bottom: 30px;
}

.res-hero-visual {
  position: relative;
  border-radius: var(--res-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.15);
  border: 1px solid var(--res-border);
  aspect-ratio: 16 / 9;
}

.res-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 3. SEARCH & FILTER SECTION ── */
.res-search-section {
  padding: 40px 0 20px 0;
  background: #FFFFFF;
}

.res-search-container {
  max-width: 680px;
  margin: 0 auto 30px auto;
  position: relative;
}

.res-search-input-wrap {
  position: relative;
  width: 100%;
}

.res-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--res-text-muted);
  pointer-events: none;
}

.res-search-input {
  width: 100%;
  padding: 18px 20px 18px 54px;
  border-radius: 9999px;
  border: 1px solid var(--res-border);
  background: var(--res-bg-subtle);
  font-size: 16px;
  font-weight: 500;
  color: var(--res-text-main);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.res-search-input:focus {
  background: #FFFFFF;
  border-color: var(--res-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 6px 20px rgba(124, 58, 237, 0.08);
}

.res-filter-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.res-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--res-bg-subtle);
  border: 1px solid var(--res-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--res-text-body);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.res-chip-btn:hover {
  background: #FFFFFF;
  color: var(--res-text-main);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.res-chip-btn.active {
  background: #FFFFFF;
  color: var(--res-purple);
  border-color: var(--res-purple);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
  font-weight: 700;
}

/* ── 4. FEATURED RESOURCE CARD ── */
.res-featured-section {
  padding: 40px 0 60px 0;
  background: #FFFFFF;
}

.res-featured-card {
  display: grid;
  grid-template-columns: 56% 44%;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--res-radius-lg);
  overflow: hidden;
  box-shadow: var(--res-card-shadow);
  transition: all 0.35s ease;
  align-items: stretch;
}

.res-featured-card:hover {
  box-shadow: var(--res-card-hover-shadow);
  border-color: var(--res-purple);
}

@media (max-width: 1024px) {
  .res-featured-card {
    grid-template-columns: 1fr;
  }
}

.res-featured-img-box {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: transparent;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media (max-width: 1024px) {
  .res-featured-img-box {
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 16px;
  }
}

.res-featured-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(124, 58, 237, 0.16));
}

.res-featured-content {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.res-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--res-purple);
  background: var(--res-purple-light);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  width: fit-content;
}

.res-featured-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--res-text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.res-featured-desc {
  font-size: 15px;
  color: var(--res-text-body);
  line-height: 1.6;
  margin-bottom: 24px;
}

.res-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.res-stat-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--res-text-main);
  background: #FFFFFF;
  border: 1px solid var(--res-border);
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.res-featured-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.res-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px -4px rgba(236, 72, 153, 0.4);
  cursor: pointer;
  border: none;
}

.res-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(236, 72, 153, 0.55);
}

.res-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--res-border);
  color: var(--res-text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.res-btn-preview:hover {
  border-color: var(--res-purple);
  color: var(--res-purple);
  background: #FFFFFF;
}

/* ── 5. 18-RESOURCE LIBRARY GRID ── */
.res-library-section {
  padding: 40px 0 80px 0;
  background: #FFFFFF;
}

.res-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--res-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

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

@media (max-width: 992px) {
  .res-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .res-grid-3 {
    grid-template-columns: 1fr;
  }
}

.res-card {
  background: #FFFFFF;
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-lg);
  overflow: hidden;
  box-shadow: var(--res-card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.res-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--res-card-hover-shadow);
  border-color: rgba(124, 58, 237, 0.35);
}

.res-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F8FAFC;
  overflow: hidden;
}

.res-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.res-card:hover .res-card-thumb img {
  transform: scale(1.04);
}

.res-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.res-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.res-file-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #FEF3C7;
  color: #D97706;
}

.res-file-badge.pdf { background: #FEE2E2; color: #DC2626; }
.res-file-badge.docx { background: #DBEAFE; color: #2563EB; }
.res-file-badge.excel { background: #DCFCE7; color: #16A34A; }
.res-file-badge.notion { background: #F3E8FF; color: #7C3AED; }

.res-card-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--res-text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.res-card-desc {
  font-size: 14px;
  color: var(--res-text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.res-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--res-border-light);
}

.res-time-text {
  font-size: 13px;
  color: var(--res-text-muted);
  font-weight: 500;
}

/* ── 6. RESOURCE SHOWCASE & PREVIEW SECTION ── */
.res-showcase-section {
  padding: 60px 0;
  background: var(--res-bg-subtle);
  border-top: 1px solid var(--res-border);
  border-bottom: 1px solid var(--res-border);
}

.res-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--res-border);
  border-radius: 32px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .res-showcase-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }
}

.res-showcase-text h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--res-text-main);
  line-height: 1.25;
  margin-bottom: 18px;
}

.res-showcase-text p {
  font-size: 16px;
  color: var(--res-text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.res-showcase-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--res-text-main);
}

.res-bullet-icon {
  color: var(--res-purple);
  font-weight: 900;
}

/* ── 7. WHY DOWNLOAD FROM LEADPILOT ── */
.res-why-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.res-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .res-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .res-why-grid {
    grid-template-columns: 1fr;
  }
}

.res-why-card {
  background: var(--res-bg-subtle);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.res-why-card:hover {
  background: #FFFFFF;
  box-shadow: 0 12px 30px -5px rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
}

.res-why-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--res-purple-light);
  color: var(--res-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 24px;
}

.res-why-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--res-text-main);
  margin-bottom: 10px;
}

.res-why-desc {
  font-size: 14px;
  color: var(--res-text-body);
  line-height: 1.6;
}

/* ── 8. RESOURCE COLLECTIONS ── */
.res-collections-section {
  padding: 40px 0 80px 0;
  background: #FFFFFF;
}

.res-collection-card {
  background: linear-gradient(135deg, #090518 0%, #170C36 50%, #291252 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 44px 50px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 40px -10px rgba(11, 7, 30, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .res-collection-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
}

.res-col-title {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.res-col-desc {
  font-size: 15px;
  color: #94A3B8;
  max-width: 540px;
}

.res-btn-collection {
  padding: 14px 30px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px -4px rgba(236, 72, 153, 0.4);
}

.res-btn-collection:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(236, 72, 153, 0.55);
}

/* ── 9. NEWSLETTER CTA CONTAINER ── */
.res-newsletter-card {
  max-width: 1000px;
  margin: 60px auto;
  background: linear-gradient(135deg, #FAF5FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 15px 35px -10px rgba(124, 58, 237, 0.1);
}

.res-newsletter-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--res-text-main);
  margin-bottom: 12px;
}

.res-newsletter-sub {
  font-size: 16px;
  color: var(--res-text-body);
  margin-bottom: 28px;
}

.res-newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .res-newsletter-form {
    flex-direction: column;
  }
}

.res-news-input {
  flex-grow: 1;
  padding: 14px 22px;
  border-radius: 9999px;
  border: 1px solid var(--res-border);
  font-size: 15px;
  outline: none;
}

.res-news-input:focus {
  border-color: var(--res-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ── 10. FAQ ACCORDION ── */
.res-faq-section {
  padding: 60px 0 80px 0;
  background: #FFFFFF;
}

.res-faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.res-faq-item {
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--res-bg-subtle);
  transition: all 0.2s ease;
}

.res-faq-question {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--res-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.res-faq-answer {
  padding: 0 28px 22px 28px;
  font-size: 15px;
  color: var(--res-text-body);
  line-height: 1.65;
  display: none;
}

.res-faq-item.active .res-faq-answer {
  display: block;
}

.res-faq-icon {
  font-size: 20px;
  color: var(--res-purple);
  transition: transform 0.25s ease;
}

.res-faq-item.active .res-faq-icon {
  transform: rotate(45deg);
}

/* ── 11. PREMIUM GATED DOWNLOAD MODAL ── */
.res-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.res-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.res-modal-box {
  width: 100%;
  max-width: 600px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--res-border);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.res-modal-backdrop.active .res-modal-box {
  transform: scale(1) translateY(0);
}

.res-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--res-bg-subtle);
  border: 1px solid var(--res-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--res-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.res-modal-close-btn:hover {
  background: #FFFFFF;
  color: var(--res-text-main);
  border-color: var(--res-purple);
}

.res-modal-header {
  margin-bottom: 24px;
}

.res-modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--res-text-main);
  margin-bottom: 12px;
}

.res-modal-summary-box {
  background: linear-gradient(135deg, #FAF5FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--res-radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.res-summary-res-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--res-text-main);
  margin-bottom: 6px;
}

.res-summary-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--res-purple);
  font-weight: 600;
}

.res-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 540px) {
  .res-form-grid {
    grid-template-columns: 1fr;
  }
}

.res-form-full {
  grid-column: 1 / -1;
}

.res-input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--res-text-main);
  margin-bottom: 6px;
}

.res-input-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--res-border);
  background: var(--res-bg-subtle);
  font-size: 14px;
  color: var(--res-text-main);
  outline: none;
  transition: all 0.2s ease;
}

.res-input-field:focus {
  background: #FFFFFF;
  border-color: var(--res-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.res-input-field.error {
  border-color: #EF4444;
  background: #FEF2F2;
}

.res-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px 0;
  font-size: 13px;
  color: var(--res-text-body);
  line-height: 1.4;
}

.res-checkbox-wrap input {
  margin-top: 2px;
  accent-color: var(--res-purple);
}

.res-btn-submit-modal {
  width: 100%;
  padding: 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px -4px rgba(236, 72, 153, 0.4);
  margin-bottom: 12px;
}

.res-btn-submit-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(236, 72, 153, 0.55);
}

.res-modal-caption {
  font-size: 12px;
  color: var(--res-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Success State View inside Modal */
.res-success-view {
  text-align: center;
  padding: 20px 10px;
  display: none;
}

.res-success-view.active {
  display: block;
}

.res-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #10B981;
  color: #10B981;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.res-success-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--res-text-main);
  margin-bottom: 12px;
}

.res-success-msg {
  font-size: 16px;
  color: var(--res-text-body);
  line-height: 1.6;
  margin-bottom: 28px;
}

.res-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Simulated Email Modal Preview */
.res-email-preview-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.res-email-preview-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.res-email-card {
  width: 100%;
  max-width: 540px;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--res-border);
}

.res-email-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 20px 24px;
}

.res-email-body {
  padding: 32px 24px;
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
}

