@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #f8fafc;
  --panel-bg: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(99, 102, 241, 0.2);
  --accent-color: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --facebook-color: #1877f2;
  --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --tiktok-gradient: linear-gradient(135deg, #0f172a 0%, #000000 100%);
  --budget-color: #059669;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.06) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 3rem;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header Styles */
header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding: 2rem 0;
}

.header-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #0f172a, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
}

header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Stats Counter Hub */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.filters-sidebar {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.filters-sidebar::-webkit-scrollbar {
  display: none;
}

.filter-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.clear-btn:hover {
  opacity: 0.8;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Custom Controls */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.01) inset;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

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

.select-custom {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.select-custom:focus {
  border-color: var(--accent-color);
}

.select-custom option {
  background: #ffffff;
  color: var(--text-primary);
}

/* Range Slider Styling */
.range-container {
  padding: 0.5rem 0;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  outline: none;
  margin: 0.75rem 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Platform Filter Chips */
.chips-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.chip-btn:hover {
  border-color: var(--border-hover);
}

.chip-btn.active.fb {
  background: rgba(24, 119, 242, 0.08);
  border-color: var(--facebook-color);
  color: var(--facebook-color);
}

.chip-btn.active.ig {
  background: rgba(225, 48, 108, 0.08);
  border-color: #e1306c;
  color: #dc2743;
}

.chip-btn.active.tt {
  background: rgba(15, 23, 42, 0.05);
  border-color: #0f172a;
  color: #0f172a;
}

/* Cards Content Grid */
.cards-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Influencer Card styling */
.influencer-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.02);
}

.influencer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 
              0 8px 10px -6px rgba(99, 102, 241, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-info {
  flex: 1;
  min-width: 0;
}

.influencer-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profession-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-badge {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--budget-color);
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.budget-badge.negotiable {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

/* Category Pill */
.category-pill {
  display: inline-block;
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Stats / Platform details inside card */
.card-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.platform-info a {
  color: inherit;
  text-decoration: none;
}

.platform-info a:hover {
  text-decoration: underline;
}

.platform-info svg {
  width: 14px;
  height: 14px;
}

.platform-metrics {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.metric-val {
  color: var(--text-primary);
  font-weight: 600;
}

.metric-lbl {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.na-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
}

/* Card details (education / brands) */
.card-details-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-val {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Brands tags */
.brands-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.brand-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
}

/* Custom platform colors */
.color-fb { color: var(--facebook-color); }
.color-ig { color: #e1306c; }
.color-tt { color: #0f172a; }

/* Modal Overlay & Card Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

/* Modal Body elements */
.modal-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-header .avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.modal-creator-title {
  flex: 1;
}

.modal-creator-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-badge-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.modal-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-stat-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
}

.modal-stat-box .val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.15rem;
}

.modal-stat-box .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* Modal Platform Layout */
.modal-platform-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-platform-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.modal-platform-tag svg {
  width: 18px;
  height: 18px;
}

.modal-platform-link-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.modal-platform-link-btn:hover {
  background: rgba(99, 102, 241, 0.15);
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-metric-card .num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-metric-card .lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-details-table {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.modal-details-table .label {
  font-weight: 500;
  color: var(--text-muted);
}

.modal-details-table .val {
  color: var(--text-secondary);
}

/* Mobile Sidebar Drawer Toggles */
.close-sidebar-btn {
  display: none;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  transition: opacity 0.2s;
}

.mobile-toggle-btn:hover {
  opacity: 0.9;
}

/* Make Cards Clickable */
.influencer-card {
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .mobile-toggle-btn {
    display: flex;
  }
  
  .close-sidebar-btn {
    display: flex;
  }
  
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    max-height: 100vh;
    z-index: 999;
    border-radius: 0 1.25rem 1.25rem 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  
  .filters-sidebar.active {
    left: 0;
  }
  
  /* Modal responsive drawer on mobile */
  .modal-content {
    border-radius: 1.5rem 1.5rem 0 0;
    width: 100%;
    max-height: 90vh;
    position: fixed;
    bottom: 0;
    transform: translateY(100%);
  }
  
  .modal-overlay {
    align-items: flex-end;
  }
  
  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.75rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  header p {
    font-size: 0.95rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-val {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-grid-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .modal-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-details-table {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .modal-content {
    padding: 1.5rem 1rem;
    max-height: 85vh;
  }
  
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
  
  .modal-header .avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    font-size: 1.25rem;
  }
}

/* Split Modal Layout CSS additions */
.modal-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.modal-preview-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  position: relative;
  min-height: 350px;
}

.modal-content.has-preview .modal-preview-panel {
  display: flex;
}

/* On Desktop screens */
@media (min-width: 769px) {
  .modal-content.has-preview {
    max-width: 1100px;
    width: 95%;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modal-content.has-preview .modal-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
  
  .modal-preview-panel {
    border-left: 1px solid var(--border-color);
    padding-left: 2.5rem;
    min-height: 500px;
  }
}

/* Preview Header */
.preview-title-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.preview-title-bar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.preview-title-bar h3 svg {
  color: var(--facebook-color);
  width: 20px;
  height: 20px;
}

.preview-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Iframe Wrapper & Loading State */
.preview-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.preview-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.preview-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.preview-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preview-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: preview-spin 0.8s linear infinite;
}

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.preview-loading span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Info Box / Note */
.preview-info-box {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.preview-info-box strong {
  color: var(--accent-color);
}

.preview-direct-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--facebook-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.preview-direct-link-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.preview-direct-link-btn:active {
  transform: translateY(0);
}


