/* ============================================
   AD MOCKUPS — STYLES
   Dark premium creative tool aesthetic
   ============================================ */

:root {
  --bg-deep: #050505;
  --bg-base: #0a0a0a;
  --bg-card: #111113;
  --bg-elevated: #18181b;
  --bg-hover: #1f1f23;
  --border: #27272a;
  --border-light: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ff9e00;
  --accent-hover: #ffb340;
  --accent-dim: rgba(255, 158, 0, 0.12);
  --accent-glow: rgba(255, 158, 0, 0.25);
  --danger: #ef4444;
  --success: #22c55e;
  --fb-blue: #1877f2;
  --ig-pink: #e1306c;
  --ig-purple: #833ab4;
  --ig-orange: #f77737;
  --li-blue: #0a66c2;
  --tw-blue: #1da1f2;
  --yt-red: #ff0000;
  --tt-pink: #fe2c55;
  --snap-yellow: #fffc00;
  --google-blue: #4285f4;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --sidebar-w: 240px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ===== VIEWS ===== */
.view {
  display: none;
  height: 100vh;
}
.view.active { display: flex; }

/* ===== LOGIN ===== */
#login-view {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(255,158,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 70% 80%, rgba(255,158,0,0.05) 0%, transparent 60%);
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
}

.login-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(255,158,0,0.04);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 28px;
  color: var(--accent);
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.93rem;
}

.login-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 16px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  transition: border var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea { resize: vertical; }

select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.form-col {
  flex: 1;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary .material-icons-round { font-size: 18px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-secondary .material-icons-round { font-size: 18px; }

.btn-full { width: 100%; justify-content: center; padding: 12px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover { background: rgba(239,68,68,0.1); }

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.sidebar-top { padding: 24px 16px 16px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
}

.sidebar-logo .logo-icon { font-size: 22px; }
.sidebar-logo .logo-text { font-size: 20px; font-weight: 800; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition);
}

.nav-item:hover { color: var(--text-primary); background: var(--bg-hover); }

.nav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-item .material-icons-round { font-size: 20px; }

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; font-family: 'Outfit', sans-serif; }
.user-email { font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== MAIN CONTENT ===== */
#main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
}

.page {
  display: none;
  padding: 32px 40px;
  animation: fadeIn 0.25s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 0.93rem;
}

/* ===== DASHBOARD ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--platform-color);
  opacity: 0;
  transition: opacity var(--transition);
}

.platform-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform-card:hover::before { opacity: 1; }

.platform-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.platform-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.platform-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CLIENTS ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.client-card:hover {
  border-color: var(--border-light);
}

.client-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-card-header h3 { font-size: 1rem; }
.client-card-header p { font-size: 0.8rem; color: var(--text-muted); }

.client-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.client-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.client-meta .material-icons-round { font-size: 16px; color: var(--text-muted); }

.client-actions {
  display: flex;
  gap: 8px;
}

.client-actions button {
  flex: 1;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-sm { max-width: 400px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h2 { font-size: 1.3rem; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ===== AVATAR UPLOAD ===== */
.avatar-upload {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition);
}

.avatar-upload:hover { border-color: var(--accent); }

.avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-upload img.has-image { display: block; }

.avatar-placeholder {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
}

.avatar-placeholder .material-icons-round { font-size: 28px; }

.avatar-upload img.has-image + .avatar-placeholder { display: none; }

/* ===== EDITOR ===== */
.editor-layout {
  display: flex;
  gap: 32px;
  height: calc(100vh - 140px);
}

.editor-panel {
  width: 340px;
  flex-shrink: 0;
  overflow-y: auto;
  padding-right: 8px;
}

.panel-section {
  margin-bottom: 20px;
}

.panel-section h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

.toggle-btn[data-active="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-btn .material-icons-round { font-size: 16px; }

/* Option Toggles (Google Ad Options) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.option-toggle input[type="checkbox"] {
  display: none;
}

.option-switch {
  width: 40px;
  height: 22px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}

.option-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.option-toggle input:checked + .option-switch {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.option-toggle input:checked + .option-switch::after {
  left: 20px;
  background: var(--accent);
}

/* Image Upload */
.image-upload {
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition);
}

.image-upload:hover { border-color: var(--accent); }

.image-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-upload img.has-image { display: block; }

.image-placeholder {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}

.image-placeholder .material-icons-round { font-size: 36px; }

.image-upload img.has-image + .image-placeholder { display: none; }

/* ===== PREVIEW ===== */
.editor-preview {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

/* Preview frame — no device bezel, just transparent container */
.preview-phone {
  width: 520px;
  min-height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
  transition: width 0.3s ease;
}

.preview-phone.mobile {
  width: 375px;
}

/* Story/Reel mode */
.preview-phone.story-mode {
  width: auto;
}

.phone-notch {
  display: none;
}

.preview-content {
  padding: 0;
  background: transparent;
}

.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== FACEBOOK MOCKUP ===== */
.fb-mockup {
  background: #f0f2f5;
  padding: 16px;
  font-family: -apple-system, system-ui, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  border-radius: 4px;
}

/* Desktop card */
.fb-post {
  background: #fff;
  border: 1px solid #dddfe2;
  border-radius: 3px;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
}

/* Mobile card */
.fb-post.is-mobile {
  width: 375px;
  max-width: 375px;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Header */
.fb-post-header {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px 0 12px;
  margin-bottom: 12px;
}

.fb-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #ddd;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  margin-right: 8px;
}

.fb-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-post-meta { flex: 1; }

.fb-post-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 19.32px;
  color: #050505;
}

.fb-post.is-mobile .fb-post-name {
  font-size: 15px;
  line-height: 1.3333;
}

.fb-post-info {
  font-size: 13px;
  font-weight: 400;
  color: #65676b;
  display: flex;
  align-items: center;
  line-height: 1.2308;
}

.fb-post-info svg {
  width: 12px;
  height: 12px;
  fill: #65676b;
  margin-left: 5px;
}

.fb-post-more {
  align-self: flex-start;
  padding: 8px;
  color: #65676b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.fb-post-more svg {
  width: 20px;
  height: 20px;
  fill: #65676b;
}

/* Primary text */
.fb-post-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  color: #050505;
  padding: 4px 16px 16px;
  margin: -5px 0 0;
  word-break: break-word;
}

/* Image area */
.fb-post-image {
  width: 100%;
  min-height: 200px;
  background: #e4e6eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.fb-post-image:has(img) {
  min-height: 0;
}

.fb-post-image img {
  width: 100%;
  display: block;
}

.fb-post-image .placeholder-img {
  color: #bcc0c4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.fb-post-image .placeholder-img .material-icons-round { font-size: 48px; }

/* CTA bar below image */
.fb-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f0f2f5;
  border-bottom: 1px solid #dddfe2;
}

.fb-cta-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.fb-cta-url {
  font-size: 13px;
  color: #65676b;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-cta-headline {
  font-size: 17px;
  font-weight: 600;
  color: #050505;
  line-height: 1.1765;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-cta-desc {
  font-size: 15px;
  font-weight: 400;
  color: #65676b;
  line-height: 1.3333;
  margin-top: -4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  background: #e4e6eb;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #050505;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Reactions row */
.fb-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: 13px;
  color: #616770;
}

.fb-reactions-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-reaction-icons {
  display: flex;
}

.fb-reaction-icons span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: -4px;
  border: 2px solid #fff;
  position: relative;
}

/* Like / Comment / Share action bar */
.fb-actions-bar {
  display: flex;
  border-top: 1px solid #dddfe2;
  margin: 0 12px;
  padding: 4px 0;
}

.fb-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #65676b;
  cursor: default;
  border-radius: 5px;
}

.fb-action-btn svg {
  width: 18px;
  height: 18px;
  fill: #65676b;
}

/* Carousel format */
.fb-carousel-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 8px 4px;
  scroll-snap-type: x mandatory;
}

.fb-carousel-container::-webkit-scrollbar { display: none; }

.fb-carousel-slide {
  flex-shrink: 0;
  width: 302px;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden;
  scroll-snap-align: start;
}

.fb-post.is-mobile .fb-carousel-slide {
  width: 232px;
}

.fb-carousel-slide-image {
  height: 300px;
  background: #e4e6eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-carousel-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-carousel-slide-info {
  padding: 8px;
}

.fb-carousel-slide-headline {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: #050505;
}

.fb-carousel-slide-desc {
  font-size: 13px;
  line-height: 16px;
  color: #65676b;
  margin: 5px 0;
}

.fb-carousel-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  background: #e4e6eb;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #050505;
  cursor: default;
  margin-top: 4px;
}

/* Facebook Messenger */
.fb-messenger {
  background: #fff;
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, system-ui, Arial, sans-serif;
}

.fb-messenger-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px;
}

.fb-messenger-avatar {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  overflow: hidden;
  margin: 8px auto;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 24px;
}

.fb-messenger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-messenger-name {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.fb-messenger-ad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dadcde;
  border-radius: 4px;
  width: 22px;
  height: 17px;
  font-size: 10px;
  font-weight: 600;
  color: #65676b;
  margin-left: 6px;
  vertical-align: middle;
}

.fb-messenger-card {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.1);
  border-width: 1px 0;
  padding: 12px 20px;
  gap: 12px;
}

.fb-messenger-card-text { flex: 1; min-width: 0; }

.fb-messenger-headline {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 18px;
}

.fb-messenger-viewmore {
  font-size: 14px;
  color: #19a3ff;
  margin-top: 4px;
}

.fb-messenger-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 0 0 0.5pt rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
  background: #e4e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-messenger-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Facebook Lead Form */
.fb-lead-form-section {
  background: #ebedf0;
  border: 1px solid #ebedf0;
  padding: 0;
}

.fb-lead-form-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 4px 0 rgba(0,0,0,0.1);
  margin: 0 12px 12px;
  padding: 0 16px 20px;
  overflow: hidden;
}

.fb-lead-form-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.fb-lead-form-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -30px;
  background: #ddd;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.fb-lead-form-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-lead-form-headline {
  font-size: 18px;
  font-weight: 700;
  color: #1c1e21;
  text-align: center;
  padding: 8px 16px 0;
}

.fb-lead-form-company {
  font-size: 14px;
  font-weight: 400;
  color: #65676b;
  text-align: center;
  margin-bottom: 16px;
}

.fb-lead-form-title {
  font-size: 16px;
  line-height: 18px;
  color: #1c1e21;
  margin-bottom: 12px;
}

.fb-lead-form-field {
  margin-bottom: 12px;
}

.fb-lead-form-label {
  font-size: 12px;
  color: #8d949e;
  margin-bottom: 4px;
}

.fb-lead-form-input {
  border: none;
  border-bottom: 1px solid #dadcde;
  font-size: 16px;
  line-height: 32px;
  color: #8d949e;
  width: 100%;
  padding: 0;
}

.fb-lead-form-submit {
  width: 100%;
  height: 40px;
  background: #3578e5;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  margin-top: 8px;
}

.fb-lead-form-privacy {
  font-size: 12px;
  color: #c6c9cc;
  text-align: center;
  margin-top: 12px;
  padding: 0 12px 12px;
}

/* Facebook Reel */
.fb-reel-mockup {
  position: relative;
  width: 320px;
  height: 565px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 auto;
  font-family: -apple-system, system-ui, Arial, sans-serif;
}

.fb-reel-mockup .story-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-reel-mockup .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-reel-mockup .story-image .placeholder-img {
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.fb-reel-mockup .story-image .placeholder-img .material-icons-round { font-size: 48px; }

.fb-reel-mockup .story-header {
  background: none;
}

.fb-reel-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), transparent 20%, transparent 80%, rgba(0,0,0,0.3));
  pointer-events: none;
  z-index: 1;
}

.fb-reel-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  padding-top: 60px;
  z-index: 2;
}

.fb-reel-left {
  flex: 1;
  min-width: 0;
}

.fb-reel-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.fb-reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid #ccc;
  overflow: hidden;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.fb-reel-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fb-reel-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.fb-reel-sponsored {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.fb-reel-desc {
  font-size: 0.75rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.fb-reel-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  margin-top: 0.5rem;
}

.fb-reel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-left: 12px;
  padding-bottom: 8px;
}

.fb-reel-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  background: rgba(228, 230, 235, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.fb-reel-action-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ===== INSTAGRAM MOCKUP ===== */
.ig-mockup {
  background: #fff;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  border-radius: 4px;
}

.ig-post {
  width: 472px;
  max-width: 100%;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin: 0 auto;
}

.ig-post.is-mobile {
  width: 320px;
  border-radius: 0;
}

/* Header */
.ig-post-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 0.5px solid rgb(239,239,239);
  position: relative;
}

.ig-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  flex-shrink: 0;
  overflow: hidden;
  margin-right: 10px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

.ig-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-post-username-wrap {
  flex: 1;
  min-width: 0;
}

.ig-post-username {
  font-weight: 600;
  font-size: 14px;
  color: rgb(38,38,38);
  line-height: 1.2;
}

.ig-sponsored {
  font-size: 12px;
  color: #282828;
  font-weight: 400;
  line-height: 1rem;
  margin-top: -2px;
}

.ig-post-more {
  position: absolute;
  right: 12px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  color: rgb(38,38,38);
  cursor: default;
}

.ig-post-more svg {
  width: 24px;
  height: 24px;
  fill: rgb(38,38,38);
}

/* Image area */
.ig-post-image {
  width: 100%;
  max-height: 614px;
  background: #efefef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.ig-post-image img { width: 100%; height: 100%; object-fit: cover; }

.ig-post-image .placeholder-img {
  color: #c7c7c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.ig-post-image .placeholder-img .material-icons-round { font-size: 48px; }

/* CTA strip */
.ig-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #e9eaeb;
  position: relative;
}

.ig-cta-strip .ig-cta-text {
  font-size: 14px;
  font-weight: 700;
  color: rgb(38,38,38);
}

.ig-cta-strip .ig-cta-arrow {
  width: 12px;
  height: 12px;
  fill: rgb(38,38,38);
}

/* Action icons */
.ig-actions-bar {
  display: flex;
  align-items: center;
  padding: 4px 4px 0;
}

.ig-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: default;
  color: rgb(38,38,38);
}

.ig-action-btn svg {
  width: 24px;
  height: 24px;
}

.ig-actions-right {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

/* Likes */
.ig-likes {
  padding: 0 16px 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgb(38,38,38);
}

/* Caption */
.ig-caption {
  padding: 0 16px 16px;
  font-size: 14px;
  color: rgb(38,38,38);
  line-height: 1.4;
}

.ig-caption strong { font-weight: 600; }

.ig-comments {
  padding: 0 16px 8px;
  font-size: 14px;
  color: #666;
}

/* Carousel */
.ig-carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
}

.ig-carousel-container::-webkit-scrollbar { display: none; }

.ig-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  background: #efefef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.ig-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 0;
}

.ig-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c7c7;
}

.ig-carousel-dot.active {
  background: #0095f6;
}

/* Instagram Reel */
.ig-reel-mockup {
  position: relative;
  width: 320px;
  height: 565px;
  background: #000;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ig-reel-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), transparent 20%, transparent 80%, rgba(0,0,0,0.3));
  pointer-events: none;
  z-index: 1;
}

.ig-reel-mockup .story-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-reel-mockup .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-reel-mockup .story-image .placeholder-img {
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.ig-reel-mockup .story-image .placeholder-img .material-icons-round { font-size: 48px; }

.ig-reel-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.ig-reel-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  margin: 0 1rem 1rem;
  z-index: 2;
}

.ig-reel-main {
  flex: 1;
  margin-right: 1.5rem;
  min-width: 0;
}

.ig-reel-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.25rem;
}

.ig-reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid #ccc;
  overflow: hidden;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.ig-reel-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ig-reel-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.ig-reel-sponsored {
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.ig-reel-desc {
  font-size: 0.75rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.ig-reel-cta-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  margin-top: 0.5rem;
  position: relative;
  text-align: left;
}

.ig-reel-cta-btn .ig-reel-cta-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -6px;
  width: 12px;
  height: 12px;
  fill: #000;
}

.ig-reel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex-basis: 32px;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.ig-reel-action-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: #fff;
  font-size: 24px;
}

.ig-reel-action-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ===== STORY MOCKUP ===== */
.story-mockup {
  position: relative;
  width: 320px;
  height: 565px;
  background: #000;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  margin: 0 auto;
  font-family: -apple-system, system-ui, Arial, sans-serif;
}

.story-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), transparent 20%, transparent 80%, rgba(0,0,0,0.3));
  pointer-events: none;
  z-index: 1;
}

.story-mockup .story-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-mockup .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-mockup .story-image .placeholder-img {
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.story-mockup .story-image .placeholder-img .material-icons-round { font-size: 48px; }

.story-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 14px 24px;
  z-index: 2;
}

.story-progress {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.story-progress-bar {
  flex: 1;
  height: 2px;
  background: hsla(0, 0%, 100%, 0.5);
  border-radius: 1px;
  overflow: hidden;
}

.story-progress-bar.active {
  background: hsla(0, 0%, 100%, 0.5);
}

.story-progress-bar.active::after {
  content: '';
  display: block;
  height: 100%;
  background: #fff;
  animation: story-loading 5s linear infinite;
}

@keyframes story-loading {
  from { width: 0%; }
  to { width: 100%; }
}

.story-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid #ccc;
  overflow: hidden;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.story-avatar img { width: 100%; height: 100%; object-fit: cover; }

.story-username {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.story-sponsored {
  color: #fff;
  font-size: 11px;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.story-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 14px 20px;
  z-index: 2;
  text-align: center;
}

.story-swipe-up {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-swipe-up::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-top: 2px solid #000;
  transform: rotate(-45deg);
  margin-top: 4px;
}

.story-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 3rem;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.1);
}

.story-body-text {
  font-family: Tahoma, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
  text-align: center;
  padding: 0 30px;
  margin-bottom: 16px;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.story-headline {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

/* ===== GOOGLE SEARCH MOCKUP ===== */
.google-mockup {
  background: #fff;
  padding: 20px 16px;
  font-family: Arial, sans-serif;
  border-radius: 4px;
}

.google-ad {
  max-width: 600px;
}

.google-ad-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #202124;
  background: none;
  margin-bottom: 4px;
}

.google-ad-label span {
  font-weight: 700;
  font-size: 11px;
  color: #202124;
  border: 1px solid #202124;
  border-radius: 3px;
  padding: 1px 4px;
  margin-right: 6px;
}

.google-ad-url {
  font-size: 14px;
  color: #202124;
  margin-bottom: 4px;
  line-height: 1.3;
}

.google-ad-url .domain { color: #202124; }
.google-ad-url .path { color: #5f6368; }

.google-ad-title {
  font-size: 20px;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: default;
}

.google-ad-title:hover { text-decoration: underline; }

.google-ad-desc {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.5;
}

.google-sitelinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.google-sitelink {
  font-size: 14px;
  color: #1a0dab;
  cursor: default;
}

.google-sitelink:hover { text-decoration: underline; }

/* ===== LINKEDIN MOCKUP ===== */
.li-mockup { background: #f3f2ef; padding: 16px; border-radius: 4px; }

.li-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid #e0dfdc;
}

.li-post-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.li-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.li-post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.li-post-meta { flex: 1; }
.li-post-name { font-weight: 600; font-size: 14px; color: rgba(0,0,0,0.9); }
.li-post-tagline { font-size: 12px; color: rgba(0,0,0,0.6); }
.li-post-info { font-size: 12px; color: rgba(0,0,0,0.6); display: flex; align-items: center; gap: 4px; }

.li-post-body {
  padding: 0 16px 12px;
  font-size: 14px;
  color: rgba(0,0,0,0.9);
  line-height: 1.4;
}

.li-post-image {
  width: 100%;
  aspect-ratio: 1.91/1;
  background: #e8e6df;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.li-post-image img { width: 100%; height: 100%; object-fit: cover; }
.li-post-image .placeholder-img { color: #bbb; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.li-post-image .placeholder-img .material-icons-round { font-size: 48px; }

.li-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.li-cta-headline { font-size: 14px; font-weight: 600; color: rgba(0,0,0,0.9); }
.li-cta-url { font-size: 12px; color: rgba(0,0,0,0.6); }

.li-cta-btn {
  padding: 6px 16px;
  border: 1px solid var(--li-blue);
  border-radius: 20px;
  background: transparent;
  color: var(--li-blue);
  font-weight: 600;
  font-size: 14px;
  cursor: default;
}

.li-actions-bar {
  display: flex;
  border-top: 1px solid #e0dfdc;
  padding: 4px 8px;
}

.li-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  background: none;
  border: none;
  color: rgba(0,0,0,0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  border-radius: 4px;
}

/* ===== TWITTER/X MOCKUP ===== */
.tw-mockup { background: #000; padding: 16px; border-radius: 4px; }

.tw-post {
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-bottom: 1px solid #2f3336;
  padding: 12px 16px;
}

.tw-post-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tw-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.tw-post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.tw-post-content { flex: 1; }

.tw-post-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.tw-post-name { font-weight: 700; font-size: 15px; color: #e7e9ea; }
.tw-post-handle { font-size: 15px; color: #71767b; }
.tw-post-dot { color: #71767b; }
.tw-post-ad { font-size: 13px; color: #71767b; }

.tw-post-body {
  font-size: 15px;
  color: #e7e9ea;
  line-height: 1.4;
  margin-bottom: 12px;
}

.tw-post-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f3336;
}

.tw-post-image img { width: 100%; height: 100%; object-fit: cover; }
.tw-post-image .placeholder-img { color: #555; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.tw-post-image .placeholder-img .material-icons-round { font-size: 48px; }

.tw-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #2f3336;
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin-top: -1px;
}

.tw-cta-headline { font-size: 14px; color: #e7e9ea; }
.tw-cta-url { font-size: 13px; color: #71767b; }

.tw-cta-btn {
  padding: 6px 16px;
  background: #fff;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #0f1419;
  cursor: default;
}

.tw-actions-bar {
  display: flex;
  padding: 8px 0;
  justify-content: space-around;
}

.tw-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #71767b;
  font-size: 13px;
  cursor: default;
}

/* ===== SAVED ADS ===== */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.saved-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.saved-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.saved-card-preview {
  height: 180px;
  background: var(--bg-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saved-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-card-preview .preview-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.saved-card-preview .preview-text .material-icons-round { font-size: 36px; }

.saved-card-info {
  padding: 16px;
}

.saved-card-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.saved-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.saved-card-platform {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.saved-card-notes {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.saved-card-actions {
  display: flex;
  gap: 8px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state.active { display: flex; }

.empty-state .material-icons-round { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #sidebar { display: none; }
  .page { padding: 20px 16px; }
  .editor-layout { flex-direction: column; height: auto; }
  .editor-panel { width: 100%; }
  .preview-phone { width: 100% !important; border-radius: 16px !important; }
  .preview-phone .phone-notch { display: none; }
  .platform-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
