@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Premium Minimalist Instagram Theme (Light Mode) */
  --bg-dark: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f4f5;
  --bg-modal: #ffffff;
  --border-color: #e4e4e7;
  --border-focus: #00d68b;
  --primary: #00d68b;
  --primary-light: #00ea99;
  --primary-gradient: linear-gradient(135deg, #00d68b 0%, #00b374 100%);
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-blue: #00d68b;
  --ig-blue-hover: #00b374;
  --neon-glow: none;
  --success: #00d68b;
  --danger: #ed4956;
  --warning: #f59e0b;
  --info: #10b981;
  --purple: #8b5cf6;
  --text-primary: #18181b;
  --text-secondary: #71717a;
  --text-muted: #a1a1aa;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 4px 14px rgba(0, 214, 139, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

[data-theme="dark"] {
  /* Premium Minimalist Instagram Theme (Dark Mode) */
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --bg-modal: #18181b;
  --border-color: #27272a;
  --border-focus: #00d68b;
  --primary: #00d68b;
  --primary-light: #00ea99;
  --neon-glow: none;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 14px rgba(0, 214, 139, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-image: var(--neon-glow);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 20, 16, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 214, 139, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 214, 139, 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Instagram Web Left Sidebar */
.ig-sidebar {
  width: 245px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  z-index: 1000;
  transition: all 0.2s ease;
}

.ig-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 0 12px 24px 12px;
}

.ig-sidebar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.ig-sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
}

.ig-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.ig-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
  text-decoration: none;
}

.ig-nav-item i {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.ig-nav-item:hover {
  background: var(--bg-card-hover);
}

.ig-nav-item.active {
  font-weight: 800;
  background: var(--bg-card-hover);
}

.ig-sidebar-client-box {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ig-sidebar-client-box label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-client-select-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.ig-client-select-input option {
  background: var(--bg-modal);
  color: var(--text-primary);
}

.ig-sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-user-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}

.page-view {
  margin-left: 245px;
  width: calc(100% - 245px);
  padding: 36px 40px;
  min-height: 100vh;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #030706;
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(0, 214, 139, 0.3);
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.user-role {
  font-size: 0.65rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ig-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 149, 246, 0.3);
}
.btn-primary:hover {
  background: var(--ig-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 149, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.btn-success {
  background: #00d68b;
  color: #ffffff;
  font-weight: 700;
}
.btn-success:hover {
  background: #00c27e;
  box-shadow: 0 4px 14px rgba(0, 214, 139, 0.4);
}

.btn-warning {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  border: none;
}
.btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: #ed4956;
  color: #ffffff;
  font-weight: 700;
  border: none;
}
.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(237, 73, 86, 0.4);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Glass Card Container */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}
.glass-card:hover {
  border-color: rgba(0, 214, 139, 0.2);
}

/* LOGIN VIEW STYLES */
.login-view-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-modal);
  border: 1px solid rgba(0, 214, 139, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 214, 139, 0.15);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.login-logo {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 214, 139, 0.5));
}

.quick-demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.quick-demo-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

/* FILE UPLOAD DROPZONE STYLES */
.file-dropzone {
  border: 2px dashed rgba(0, 214, 139, 0.3);
  background: rgba(3, 7, 6, 0.6);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--primary-light);
  background: rgba(0, 214, 139, 0.06);
}

.dropzone-icon {
  font-size: 2rem;
  color: var(--primary-light);
}

.dropzone-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.media-preview-item img, .media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.65rem;
}

/* COMMENT ATTACHMENT BADGE */
.comment-attachment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 214, 139, 0.1);
  border: 1px solid rgba(0, 214, 139, 0.3);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-top: 6px;
  text-decoration: none;
}
.comment-attachment-badge:hover {
  background: rgba(0, 214, 139, 0.2);
}

.comment-attachment-preview {
  max-width: 140px;
  max-height: 100px;
  border-radius: 6px;
  object-fit: cover;
  margin-top: 6px;
  border: 1px solid var(--border-color);
}

/* CALENDAR VIEW STYLES - FIXED UNIFORM CELL SIZING */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-month-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.calendar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day-head {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px;
}

/* Fixed Equal Height & Width Cells for All Days */
.calendar-cell {
  height: 135px;
  min-height: 135px;
  max-height: 135px;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow-y: auto;
  transition: all 0.2s ease;
}

.calendar-cell:hover {
  border-color: rgba(0, 214, 139, 0.4);
  background: rgba(6, 20, 16, 0.85);
}

.calendar-cell.other-month {
  opacity: 0.25;
  pointer-events: none;
}

.calendar-cell.today {
  border-color: var(--primary-light);
  background: rgba(0, 214, 139, 0.06);
  box-shadow: inset 0 0 12px rgba(0, 214, 139, 0.1);
}

.cell-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cell-date-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.cell-add-btn {
  background: rgba(0, 214, 139, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 214, 139, 0.3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-cell:hover .cell-add-btn {
  opacity: 1;
}

.cell-add-btn:hover {
  background: var(--primary-gradient);
  color: #030706;
  transform: scale(1.1);
}

.calendar-post-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
  transition: all 0.2s ease;
}

.calendar-post-card:hover {
  background: rgba(0, 214, 139, 0.12);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.calendar-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.calendar-post-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-post-title {
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

/* Page Views Layout */
.page-view {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-view.active {
  display: block;
}

/* Top Banner / Summary Header */
.client-profile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.client-meta-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  padding: 2px;
  background: var(--bg-dark);
}

.client-details h2 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.client-handle {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.approval-stats-pills {
  display: flex;
  gap: 12px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 90px;
}

.stat-pill-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-pill-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Status Colors */
.badge-pending { color: var(--warning); background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { color: var(--success); background: rgba(0, 214, 139, 0.15); border: 1px solid rgba(0, 214, 139, 0.3); }
.badge-revision { color: var(--info); background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-rejected { color: var(--danger); background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Instagram Feed Grid View */
.instagram-feed-container {
  max-width: 935px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Simulated Instagram Profile Header */
.ig-profile-card {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
}

.ig-profile-avatar {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.ig-profile-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.ig-profile-username-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ig-username {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.ig-stats-row {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ig-stats-row span {
  color: var(--text-secondary);
}
.ig-stats-row strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 4px;
}

.ig-bio {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filter Subnav */
.feed-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.filter-pills {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: none;
  border-top: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover {
  color: var(--text-primary);
}
.filter-btn.active {
  background: transparent;
  color: var(--text-primary);
  border-top: 2px solid var(--text-primary);
  font-weight: 700;
}

/* 3x3 Instagram Post Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ig-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #020403;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ig-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border-color: var(--primary-light);
}

.ig-grid-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-grid-item:hover .ig-grid-media {
  transform: scale(1.04);
}

.ig-post-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(3, 7, 6, 0.85);
  backdrop-filter: blur(4px);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 6, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-grid-item:hover .ig-grid-overlay {
  opacity: 1;
}

.ig-overlay-status {
  align-self: flex-start;
}

.ig-overlay-caption {
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Modal - Instagram Post Preview */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ig-modal-box {
  background: var(--bg-modal);
  border: 1px solid rgba(0, 214, 139, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 214, 139, 0.15);
  width: 100%;
  max-width: 1050px;
  height: 85vh;
  max-height: 720px;
  display: flex;
  overflow: hidden;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: #ed4956;
  border-color: #ed4956;
  color: #ffffff;
  transform: scale(1.1);
}

/* Left side: Simulated Phone / Media Viewer */
.ig-modal-media-stage {
  flex: 1.3;
  background: #020403;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.media-viewer-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-viewer-container img,
.media-viewer-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Carousel Slider Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 7, 6, 0.75);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.carousel-nav-btn:hover {
  background: var(--primary);
  color: #030706;
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(3, 7, 6, 0.7);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--primary-light);
  width: 16px;
  border-radius: 4px;
}

.carousel-counter-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(3, 7, 6, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  z-index: 10;
}

/* Reels Simulated Player Controls */
.reels-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.reels-audio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.reels-sound-icon {
  background: rgba(3, 7, 6, 0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Right Side: Post Details & Approval Flow */
.ig-modal-details-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-color);
}

.ig-modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-light);
}

.ig-user-info-text {
  display: flex;
  flex-direction: column;
}

.ig-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ig-post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ig-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-modal);
}

.ig-caption-box {
  background: transparent;
  border: none;
  padding: 16px 20px;
}

.ig-caption-title {
  display: none;
}

.ig-caption-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.ig-hashtags {
  color: var(--primary-light);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Feedback & Comments Log */
.comments-log-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comments-log-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Modal Bottom Action Bar (Approve / Reject / Revise) */
.ig-modal-action-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-modal);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-buttons-row .btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.comment-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-textarea {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  resize: none;
  height: 44px;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--primary-light);
}

/* Analytics Dashboard */
.analytics-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-icon {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.metric-delta {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--danger); }

.sparkline-svg {
  width: 100%;
  height: 35px;
  margin-top: 4px;
}

/* Analytics Charts & Table Row */
.charts-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.chart-card-large {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.custom-table th {
  text-align: left;
  padding: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tr:hover {
  background: rgba(0, 214, 139, 0.05);
}

/* Admin Drawer & Modal Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-control {
  background: rgba(3, 7, 6, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(0, 214, 139, 0.2);
}

select.form-control option {
  background: var(--bg-modal);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .charts-split-grid {
    grid-template-columns: 1fr;
  }
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ig-modal-box {
    flex-direction: column;
    height: 90vh;
    max-height: none;
  }
  .ig-modal-media-stage {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .ig-profile-card {
    flex-direction: column;
    text-align: center;
  }
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approval-buttons-row {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    font-size: 0.7rem;
  }
}

/* ADMIN SUB-NAVIGATION TABS */
.admin-subnav-bar {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-bottom: 20px;
}

.admin-subnav-btn {
  flex: 1;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.admin-subnav-btn:hover {
  background: rgba(0, 214, 139, 0.1);
  color: var(--primary-light);
  border-color: rgba(0, 214, 139, 0.3);
}

.admin-subnav-btn.active {
  background: var(--primary-gradient);
  color: #030706;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 214, 139, 0.35);
}

.admin-subtab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-subtab-content.active {
  display: block;
}

/* GUEST SHARE HEADER & EXPIRATION BADGE */
.guest-share-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guest-expiration-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====================================================== */
/* DEMANDS & WORKFLOW KANBAN (TRELLO / E-KYTE STYLE)       */
/* ====================================================== */
.demands-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

.demands-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.demands-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.demands-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-glow);
}

.demands-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.demands-kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  align-items: flex-start;
}

.kanban-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
  box-shadow: var(--shadow-glow);
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.kanban-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kanban-col-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.kanban-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}

.demand-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.demand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 214, 139, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.demand-client-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(0, 214, 139, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 214, 139, 0.25);
  max-width: fit-content;
}

.demand-priority-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.priority-urgent {
  background: rgba(237, 73, 86, 0.2);
  color: #ed4956;
  border: 1px solid #ed4956;
}

.priority-high {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.priority-medium {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
}

.priority-low {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.demand-time-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.demand-time-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demand-time-btn:hover {
  background: rgba(0, 214, 139, 0.15);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.demand-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

/* ========================================================
   INTELLIGENT DEADLINE BADGES & FORMAT TAGS
   ======================================================== */
.badge-deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-deadline-overdue {
  background: rgba(237, 73, 86, 0.18);
  color: #ed4956;
  border: 1px solid rgba(237, 73, 86, 0.4);
}

.badge-deadline-today {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-deadline-soon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-deadline-normal {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Format Tags */
.format-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.format-tag-carousel { background: rgba(0, 214, 139, 0.12); color: var(--primary-light); }
.format-tag-reels { background: rgba(0, 149, 246, 0.15); color: #0095f6; }
.format-tag-static { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.format-tag-story { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.format-tag-ads { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.format-tag-routine { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

/* Quick Timer Play Button */
.btn-quick-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 214, 139, 0.12);
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.btn-quick-play:hover {
  background: var(--primary-light);
  color: #000;
  transform: scale(1.08);
}

/* ========================================================
   EKYTE STYLE LIST VIEW (TABELA ESTRUTURADA)
   ======================================================== */
.demands-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demand-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.demand-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.demand-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.demand-list-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.demand-list-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.demand-list-table tr:hover td {
  background: rgba(0, 214, 139, 0.04);
}

/* Direct Send to Approval Button in list */
.btn-direct-approve {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 214, 139, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-direct-approve:hover {
  background: var(--primary-light);
  color: #000;
}

/* ========================================================
   LIVE CHRONOMETER & RUNNING TIMER STYLES
   ======================================================== */
.live-running-timer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
}

.live-timer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: blinkRed 1s infinite;
}

@keyframes blinkRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.live-timer-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.btn-timer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-timer-toggle.idle {
  background: rgba(0, 214, 139, 0.18);
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
}
.btn-timer-toggle.idle:hover {
  background: var(--primary-light);
  color: #000;
}

.btn-timer-toggle.running {
  background: #ef4444;
  color: #fff;
  animation: blinkRed 1.5s infinite;
}
.btn-timer-toggle.running:hover {
  background: #dc2626;
}

/* ========================================================
   UNIFIED 2-COLUMN MODERN DEMAND DRAWER / MODAL
   ======================================================== */
.demand-modal-container {
  max-width: 1100px;
  width: 95vw;
  max-height: 90vh;
  background: #16171d;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.demand-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.demand-modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

@media (max-width: 900px) {
  .demand-modal-body-grid {
    grid-template-columns: 1fr;
  }
}

.demand-modal-main-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border-color);
}

.demand-modal-side-col {
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Big Interactive Media Gallery */
.demand-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.demand-gallery-card {
  position: relative;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.demand-gallery-card:hover {
  transform: scale(1.03);
  border-color: var(--primary-light);
}

.demand-gallery-card img,
.demand-gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demand-gallery-play-icon {
  position: absolute;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 6px;
  pointer-events: none;
}

.demand-gallery-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
  z-index: 3;
}
.demand-gallery-remove-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Comments Feed */
.demand-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.demand-comment-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

/* Calendar Status Pills & Actions */
.calendar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar-status-badge.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.calendar-status-badge.status-approved {
  background: rgba(0, 214, 139, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 214, 139, 0.3);
}

.calendar-status-badge.status-scheduled {
  background: rgba(6, 182, 212, 0.15);
  color: var(--info);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ======================================================
   EKYTE-STYLE WORKFLOW & DEMAND DRAWER STYLES
   ====================================================== */

/* Ekyte Modal Container */
.ekyte-modal-box {
  width: 95vw;
  max-width: 940px;
  max-height: 92vh;
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* Ekyte Clean Tab Header */
.ekyte-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.ekyte-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ekyte-tab-btn:hover {
  color: var(--text-primary);
}

.ekyte-tab-btn.active {
  color: #00d68b;
  border-bottom-color: #00d68b;
}

/* Ekyte Tab Panes */
.ekyte-tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.ekyte-tab-pane.active {
  display: flex;
}

/* Priority Visual Radio Slider (Ekyte Style) */
.ekyte-priority-selector {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
}

.ekyte-priority-opt {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ekyte-priority-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ekyte-priority-opt.selected-low {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: #94a3b8;
}

.ekyte-priority-opt.selected-medium {
  background: rgba(0, 214, 139, 0.15);
  color: #00d68b;
  border-color: #00d68b;
}

.ekyte-priority-opt.selected-high {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: #f59e0b;
}

.ekyte-priority-opt.selected-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: #ef4444;
}

/* Rich Toolbar (Ekyte Style Editor Header) */
.ekyte-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}

.ekyte-toolbar-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ekyte-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Workflow Steps Pipeline (Exact Ekyte Structure) */
.ekyte-workflow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ekyte-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ekyte-step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.ekyte-step-card.active-step {
  background: rgba(0, 214, 139, 0.06);
  border: 1.5px solid #00d68b;
  box-shadow: 0 0 16px rgba(0, 214, 139, 0.15);
}

.ekyte-step-card.completed-step {
  opacity: 0.75;
  border-color: rgba(0, 214, 139, 0.3);
}

.ekyte-step-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ekyte-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.ekyte-step-card.active-step .ekyte-step-num {
  background: #00d68b;
  color: #030706;
}

.ekyte-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.ekyte-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ekyte-step-assignee-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ekyte-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #111;
}

.ekyte-step-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Ekyte Bottom Step Navigation Bar */
.ekyte-bottom-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.ekyte-bottom-current-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ekyte-step-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ekyte-step-nav-btn:hover {
  background: #00d68b;
  color: #030706;
}

.ekyte-step-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.ekyte-adv-btn {
  background: #00d68b;
  color: #030706;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ekyte-adv-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 214, 139, 0.4);
  transform: translateY(-1px);
}

/* ======================================================
   PODE POSTAR DESIGN SYSTEM & ALL-IN-ONE PLATFORM
   ====================================================== */

:root {
  --pp-bg: #f8fafc;
  --pp-card-bg: #ffffff;
  --pp-border: #e2e8f0;
  --pp-primary: #e30613;
  --pp-primary-hover: #c4040f;
  --pp-primary-light: #fef2f2;
  --pp-text: #0f172a;
  --pp-text-muted: #64748b;
  --pp-text-subtle: #94a3b8;
  
  /* Status Colors */
  --pp-status-draft: #94a3b8;
  --pp-status-draft-bg: rgba(148, 163, 184, 0.14);
  --pp-status-approval: #f59e0b;
  --pp-status-approval-bg: rgba(245, 158, 11, 0.14);
  --pp-status-adjustment: #ea580c;
  --pp-status-adjustment-bg: rgba(234, 88, 12, 0.14);
  --pp-status-approved: #10b981;
  --pp-status-approved-bg: rgba(16, 185, 129, 0.14);
  --pp-status-published: #8b5cf6;
  --pp-status-published-bg: rgba(139, 92, 246, 0.14);
}

.pode-app-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--pp-bg);
  color: var(--pp-text);
  font-family: var(--font-sans);
}

/* Pode Postar Left Sidebar */
.pode-sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px 16px;
}

.pode-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 8px 24px 8px;
}

.pode-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--pp-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.pode-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pp-text);
  letter-spacing: -0.02em;
}

.pode-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pode-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--pp-text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.pode-nav-btn:hover {
  background: #f1f5f9;
  color: var(--pp-text);
}

.pode-nav-btn.active {
  background: var(--pp-primary);
  color: #ffffff;
  font-weight: 700;
}

.pode-nav-btn.active i {
  color: #ffffff !important;
}

.pode-badge-soon {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--pp-text-subtle);
}

.pode-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pode-storage-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--pp-text-muted);
}

.pode-storage-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.pode-storage-fill {
  height: 100%;
  background: var(--pp-primary);
  border-radius: 4px;
  width: 15%;
}

/* Pode Postar Main Content Body */
.pode-main-layout {
  flex: 1;
  margin-left: 240px;
  padding: 32px 40px;
  min-height: 100vh;
}

/* View Sections */
.pode-view-section {
  display: none;
  animation: fadeIn 0.2s ease;
}

.pode-view-section.active {
  display: block;
}

/* Page Header */
.pode-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.pode-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pp-text);
  letter-spacing: -0.02em;
}

.pode-page-subtitle {
  font-size: 0.88rem;
  color: var(--pp-text-muted);
  margin-top: 4px;
}

/* Dashboard Summary Cards */
.pode-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.pode-card {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.pode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pode-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pp-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stacked Multi-Color Progress Bar */
.pode-stacked-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 14px;
}

.pode-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.pode-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--pp-text-muted);
}

.pode-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pode-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Pode Postar Clients Grid */
.pode-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.pode-client-card {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.pode-client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.pode-client-cover {
  height: 100px;
  width: 100%;
  position: relative;
}

.pode-client-card-body {
  padding: 16px 20px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pode-client-avatar-wrap {
  position: absolute;
  top: -36px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pode-client-avatar {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}

.pode-client-info-top {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pode-client-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pp-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pode-client-tag-active {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fef2f2;
  color: var(--pp-primary);
}

.pode-client-handle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--pp-text-muted);
}

.pode-niche-tag {
  background: #f1f5f9;
  color: var(--pp-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Client Card Counters 2x2 Grid */
.pode-client-counters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.pode-counter-badge {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pode-counter-badge.draft {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

.pode-counter-badge.adjustment {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}

.pode-counter-badge.approval {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.pode-counter-badge.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* Client Workspace Header & Brand Core Tabs */
.pode-workspace-header {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pode-workspace-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--pp-border);
  padding-bottom: 12px;
  overflow-x: auto;
}

.pode-tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  color: var(--pp-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pode-tab-btn:hover {
  background: #f8fafc;
  color: var(--pp-text);
}

.pode-tab-btn.active {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
  color: #ffffff;
}

/* Pode Postar Calendar & Drag-and-Drop */
.pode-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.pode-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--pp-border);
  gap: 1px;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  overflow: hidden;
}

.pode-calendar-day-header {
  background: #f8fafc;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--pp-text-muted);
  text-transform: uppercase;
}

.pode-calendar-day-cell {
  background: #ffffff;
  min-height: 150px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease;
}

.pode-calendar-day-cell.other-month {
  background: #fafafa;
  opacity: 0.5;
}

.pode-calendar-day-cell.drag-over {
  background: #eff6ff !important;
  outline: 2px dashed var(--pp-primary);
}

.pode-calendar-day-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pp-text-muted);
  margin-bottom: 4px;
}

.pode-calendar-day-cell.today .pode-calendar-day-number {
  color: var(--pp-primary);
  font-weight: 800;
}

/* Monthly Calendar Trello Cards */
.pode-cal-trello-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  cursor: grab;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.pode-cal-trello-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.pode-cal-trello-card.status-draft { border-top: 3px solid #94a3b8; }
.pode-cal-trello-card.status-in_approval,
.pode-cal-trello-card.status-pending { border-top: 3px solid #eab308; }
.pode-cal-trello-card.status-adjustment,
.pode-cal-trello-card.status-revision { border-top: 3px solid #f97316; }
.pode-cal-trello-card.status-approved,
.pode-cal-trello-card.status-scheduled { border-top: 3px solid #22c55e; }
.pode-cal-trello-card.status-posted { border-top: 3px solid #3b82f6; }

.pode-cal-trello-media {
  width: 100%;
  height: 68px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pode-cal-trello-media img,
.pode-cal-trello-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pode-cal-trello-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pode-cal-trello-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pode-cal-trello-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* Weekly Board Trello Cards */
.pode-week-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pode-week-post-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.pode-week-card-cover {
  width: 100%;
  height: 135px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pode-week-card-cover img,
.pode-week-card-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pode-card-float-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pode-card-float-badge.video {
  background: rgba(227, 6, 19, 0.85);
}

.pode-week-card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* Post Production & 4-Stage Approval Drawer Modal */
.pode-approval-container {
  display: flex;
  height: 90vh;
  max-width: 1350px;
  width: 95vw;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.pode-approval-left-col {
  width: 440px;
  background: #fafafa;
  border-right: 1px solid var(--pp-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.pode-approval-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* 4-Stage Horizontal Tabs */
.pode-stage-tabs-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--pp-border);
  background: #fafafa;
}

.pode-stage-tab-btn {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pode-stage-tab-btn.active {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.pode-stage-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pp-text);
}

.pode-stage-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Chat Sidebar ("Conversa") inside Post Drawer */
.pode-conversa-panel {
  width: 320px;
  border-left: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.pode-conversa-feed {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pode-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.pode-chat-bubble {
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  color: var(--pp-text);
}

.pode-chat-msg.client .pode-chat-bubble {
  background: #fef2f2;
  color: #3730a3;
}



/* ======================================================
   PODE POSTAR EXACT PIXEL-PERFECT DESIGN SYSTEM
   Matching Frames 00100.png, 00500.png, 01200.png, 02000.png, 02200.png, 02800.png, 03400.png
   ====================================================== */

:root {
  --pp-primary: #e30613;
  --pp-primary-hover: #c4040f;
  --pp-primary-light: #fef2f2;
  --pp-bg: #f8fafc;
  --pp-card-bg: #ffffff;
  --pp-border: #e2e8f0;
  --pp-border-light: #edf2f7;
  --pp-text: #1e293b;
  --pp-text-muted: #64748b;
  --pp-text-subtle: #94a3b8;

  --pp-badge-draft-bg: #f1f5f9;
  --pp-badge-draft-text: #64748b;
  --pp-badge-approval-bg: #fef9c3;
  --pp-badge-approval-text: #ca8a04;
  --pp-badge-adjustment-bg: #ffedd5;
  --pp-badge-adjustment-text: #ea580c;
  --pp-badge-approved-bg: #dcfce7;
  --pp-badge-approved-text: #16a34a;
}

body.pode-body {
  background-color: var(--pp-bg);
  color: var(--pp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.pode-sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px 18px;
  box-sizing: border-box;
}

.pode-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 0 4px 28px 4px;
}

.pode-brand-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pode-chat-icon-badge {
  background: var(--pp-primary);
  width: 26px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}

.pode-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pode-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.pode-nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pode-nav-btn.active {
  background: var(--pp-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.pode-nav-btn.active i {
  color: #ffffff !important;
}

.pode-badge-soon {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #94a3b8;
}

.pode-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--pp-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pode-exit-btn {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

/* Layout */
.pode-main-layout {
  flex: 1;
  margin-left: 250px;
  padding: 36px 44px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Client Cards Grid */
.pode-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.pode-client-card {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.pode-client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.pode-client-cover-gradient-1 { background: linear-gradient(135deg, #fcd34d 0%, #fb923c 100%); }
.pode-client-cover-gradient-2 { background: linear-gradient(135deg, #f472b6 0%, #c084fc 100%); }
.pode-client-cover-gradient-3 { background: linear-gradient(135deg, #fef08a 0%, #a3e635 100%); }
.pode-client-cover-gradient-4 { background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 100%); }
.pode-client-cover-gradient-5 { background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%); }

.pode-client-cover {
  height: 90px;
  width: 100%;
}

.pode-client-card-body {
  padding: 16px 20px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pode-client-avatar-wrap {
  position: absolute;
  top: -38px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pode-client-avatar {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.pode-client-info-top {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pode-client-name-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pode-red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.pode-tag-active-purple {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--pp-primary);
  color: #ffffff;
}

/* 4 Counters in Client Card */
.pode-card-counters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.pode-pill-count {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pode-pill-count.draft { background: var(--pp-badge-draft-bg); color: var(--pp-badge-draft-text); }
.pode-pill-count.adjustment { background: var(--pp-badge-adjustment-bg); color: var(--pp-badge-adjustment-text); }
.pode-pill-count.approval { background: var(--pp-badge-approval-bg); color: var(--pp-badge-approval-text); }
.pode-pill-count.approved { background: var(--pp-badge-approved-bg); color: var(--pp-badge-approved-text); }

/* Weekly Board (Semanal View) */
.pode-week-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: flex-start;
}

.pode-week-col {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 400px;
}

.pode-week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-border-light);
}

.pode-week-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.pode-week-dates {
  font-size: 0.75rem;
  color: var(--pp-text-muted);
  font-weight: 600;
}

.pode-week-post-card {
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.pode-week-post-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

/* Instagram Authentic Profile Preview & 3x3 Grid */
.ig-profile-container {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 20px;
  padding: 36px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ig-profile-header {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.ig-story-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
}

.ig-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ig-post-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.ig-post-square img,
.ig-post-square video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.ig-post-square:hover img {
  transform: scale(1.03);
}

.ig-post-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.ig-post-square:hover .ig-post-hover-overlay {
  opacity: 1;
}

/* AI Agent Panel per Client */
.pode-ai-agent-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}

/* ======================================================
   RESET GERAL DE FORMULÁRIOS & INPUTS CLAROS (PODE POSTAR)
   ====================================================== */

input.form-control,
textarea.form-control,
select.form-control {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  padding: 10px 14px !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  border-color: #e30613 !important;
  box-shadow: 0 0 0 3px rgba(115, 91, 242, 0.15) !important;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
  color: #94a3b8 !important;
}

/* Modal Backdrop & Container */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop.active {
  display: flex !important;
}

.pode-approval-container {
  width: 1200px;
  max-width: 95vw;
  height: 88vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top Modal Bar */
.pode-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  height: 60px;
  box-sizing: border-box;
}

/* 2 Columns inside Modal */
.pode-modal-body-split {
  display: flex;
  flex: 1;
  height: calc(100% - 60px);
  overflow: hidden;
}

.pode-approval-left-col {
  width: 380px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.pode-approval-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

/* Instagram Live Mockup inside Modal */
.ig-mockup-card {
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ig-mockup-media-box {
  width: 100%;
  height: 320px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4 Stage Header Tabs */
.pode-stage-tabs-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pode-stage-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pode-stage-tab-btn.active {
  border-color: #e30613;
  box-shadow: 0 0 0 2px rgba(115, 91, 242, 0.2);
}

.pode-stage-tab-btn .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.pode-stage-tab-btn .pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Chat Sidebar (Conversa) */
.pode-conversa-panel {
  width: 300px;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.pode-conversa-feed {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pode-chat-bubble {
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #0f172a;
}

.pode-chat-msg.client .pode-chat-bubble {
  background: #fef2f2;
  color: #5b21b6;
}

/* ======================================================
   CORREÇÕES DE MODAL, CARROSSEL NAVEGÁVEL & PORTAL CLIENTE
   ====================================================== */

.pode-approval-container {
  width: 1240px;
  max-width: 96vw;
  height: 92vh;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pode-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
}

.pode-modal-body-split {
  display: flex;
  flex: 1;
  height: calc(100% - 56px);
  overflow: hidden;
}

/* Left column: Mockup */
.pode-approval-left-col {
  width: 360px;
  min-width: 360px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.ig-mockup-card {
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ig-mockup-media-box {
  width: 100%;
  height: 320px;
  background: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
  transition: all 0.15s ease;
}

.ig-carousel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.ig-carousel-btn.prev { left: 8px; }
.ig-carousel-btn.next { right: 8px; }

.ig-carousel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 10;
}

/* Chat (Conversa) */
.pode-conversa-panel {
  width: 310px;
  min-width: 310px;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  height: 100%;
  box-sizing: border-box;
}

.pode-conversa-feed {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pode-conversa-input-bar {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Guest / Client Restricted Portal Mode */
body.guest-mode .pode-sidebar {
  display: none !important;
}

body.guest-mode .pode-main-layout {
  margin-left: 0 !important;
  padding: 24px 32px !important;
}

body.guest-mode .admin-only {
  display: none !important;
}

/* ======================================================
   REFINAMENTOS VISUAIS EXATOS (PRINTS 1 E 2)
   ====================================================== */

/* 1. Botões de Seta do Mês */
.pode-month-nav-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.1rem !important;
  transition: all 0.15s ease !important;
}

.pode-month-nav-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #e30613 !important;
}

/* 2. Mockup da Arte sem Cortes (Proporção 4:5 e 1:1) */
.ig-mockup-card {
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ig-mockup-media-box {
  width: 100%;
  height: 380px; /* Altura ideal 4:5 */
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Não corta a arte nunca */
}

/* Feed 3x3 sem corte de arte */
.ig-post-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.ig-post-square img,
.ig-post-square video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

/* 3. Topo do Modal Despoluído */
.pode-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  height: 60px;
  box-sizing: border-box;
}

.pode-status-select-dropdown {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  color: #0f172a;
  cursor: pointer;
}

/* 4. Abas das 4 Etapas Limpas (Sem texto "Rascunho") */
.pode-stage-tabs-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pode-stage-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: #475569;
  transition: all 0.15s ease;
}

.pode-stage-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pode-stage-tab-btn.active {
  background: #ffffff;
  border-color: #e30613;
  color: #e30613;
  box-shadow: 0 2px 8px rgba(115, 91, 242, 0.15);
}

/* 5. Demand Type Selector Cards */
.demand-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.demand-type-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demand-type-card:hover {
  border-color: #e30613;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(115, 91, 242, 0.1);
}

.demand-type-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fef2f2;
  color: #e30613;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 6. Drive de Materiais Gráficos do Cliente */
.pode-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.pode-drive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.pode-drive-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.pode-drive-thumb {
  width: 100%;
  height: 140px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #edf2f7;
}

.pode-drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ======================================================
   FEED INSTAGRAM SEM CORTE & VISÃO DO CLIENTE EM DESTAQUE
   ====================================================== */

.ig-post-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ig-post-square img,
.ig-post-square video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  background: transparent !important;
  transition: transform 0.25s ease;
}

/* Guest mode prominent Instagram preview */
body.guest-mode .pode-approval-left-col {
  width: 400px !important;
  min-width: 400px !important;
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}

body.guest-mode .ig-mockup-card {
  width: 350px !important;
}

body.guest-mode .ig-mockup-media-box {
  height: 420px !important;
}

body.guest-mode .ai-helper-banner,
body.guest-mode .ai-only,
body.guest-mode .admin-only {
  display: none !important;
}

/* ======================================================
   FULLSCREEN LOGIN GATE (QUANDO NÃO LOGADO)
   ====================================================== */

body.not-logged {
  background: #f8fafc !important;
  overflow: hidden !important;
}

body.not-logged .pode-sidebar {
  display: none !important;
}

body.not-logged .pode-app-container {
  display: block !important;
  width: 100vw !important;
  min-height: 100vh !important;
}

body.not-logged .pode-main-layout {
  margin-left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

body.not-logged .pode-view-section {
  display: none !important;
}

body.not-logged #view-login {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 80vh !important;
}

/* ======================================================
   TELA EXCLUSIVA DE APROVAÇÃO DO CLIENTE (GUEST MODE)
   ====================================================== */

body.guest-mode .pode-stage-tabs-header,
body.guest-mode #postEditorForm,
body.guest-mode .admin-only {
  display: none !important;
}

body.guest-mode .pode-approval-container {
  max-width: 960px !important;
  width: 95vw !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25) !important;
}

body.guest-mode .pode-modal-body-split {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 30px !important;
  padding: 24px 30px !important;
  background: #f8fafc !important;
}

body.guest-mode .pode-approval-left-col {
  width: 440px !important;
  min-width: 440px !important;
  display: flex !important;
  justify-content: center !important;
}

body.guest-mode .ig-mockup-card {
  width: 100% !important;
  max-width: 420px !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
}

body.guest-mode .ig-mockup-media-box {
  height: 480px !important; /* Proporção 4:5 gigante e nítida */
}

/* Client Action Card on the right side */
.client-guest-decision-card {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

body.guest-mode .client-guest-decision-card {
  display: flex !important;
}

.btn-client-approve {
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3) !important;
}

.btn-client-approve:hover {
  background: #15803d !important;
  transform: translateY(-2px) !important;
}

.btn-client-adjust {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 2px solid #ea580c !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.btn-client-adjust:hover {
  background: #ffedd5 !important;
}

/* Download Photo by Photo Gallery Cards */
.sp-download-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-download-item:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.sp-download-item img,
.sp-download-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-download-item .download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.sp-download-item:hover .download-overlay {
  opacity: 1;
  background: rgba(37, 99, 235, 0.75);
}

.sp-download-item .download-num-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.btn-copy-caption-kit:hover {
  background: #1e293b !important;
  transform: translateY(-1px);
}


/* ======================================================
   PERFECT 2-COLUMN POST APPROVAL MODAL (ADMIN & CLIENT)
   ====================================================== */

.pode-approval-container {
  width: 1180px !important;
  max-width: 95vw !important;
  height: 90vh !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.pode-modal-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 24px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  height: 60px !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
}

.pode-modal-body-split {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 !important;
  height: calc(100% - 60px) !important;
  overflow: hidden !important;
}

/* Left Column: Instagram Mockup */
.pode-approval-left-col {
  width: 440px !important;
  min-width: 440px !important;
  max-width: 440px !important;
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.ig-mockup-card {
  width: 380px !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.ig-mockup-media-box {
  width: 100% !important;
  height: 460px !important; /* 4:5 vertical proportion */
  background: #0f172a !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* NO CUTS / NO CROPPING */
  background: #0f172a !important;
}

/* Right Column in Admin Mode */
.pode-approval-right-col {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* Decision Card is HIDDEN in Admin Mode by default */
.client-guest-decision-card {
  display: none !important;
}

/* ======================================================
   GUEST / CLIENT MODE SPECIALIZATION
   ====================================================== */
body.guest-mode .pode-approval-container {
  max-width: 900px !important;
  height: 88vh !important;
}

body.guest-mode .pode-approval-right-col {
  display: none !important;
}

body.guest-mode .client-guest-decision-card {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  padding: 28px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  border-left: 1px solid #e2e8f0 !important;
}

body.guest-mode .admin-only {
  display: none !important;
}

/* ======================================================
   CLEAN MODAL 2-COLUMN SPLIT
   ====================================================== */
.pode-approval-container {
  width: 1100px !important;
  max-width: 95vw !important;
  height: 88vh !important;
  max-height: 88vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
}

.pode-modal-body-split {
  display: grid !important;
  grid-template-columns: 440px 1fr !important;
  flex: 1 !important;
  height: calc(100% - 60px) !important;
  overflow: hidden !important;
}

.pode-approval-left-col {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.pode-approval-right-col {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.ig-mockup-card {
  width: 380px !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.ig-mockup-media-box {
  width: 100% !important;
  height: 460px !important;
  background: #0f172a !important;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #0f172a !important;
}

/* GUEST MODE LOCKDOWN */
body.guest-mode .admin-only,
body.guest-mode .pode-sidebar {
  display: none !important;
}

body.guest-mode .pode-main-layout {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 20px !important;
}

/* ======================================================
   GUEST SINGLE POST VIEW OVERRIDE
   ====================================================== */
body.guest-mode #view-login {
  display: none !important;
}

body.guest-mode #view-single-post-approval.active {
  display: block !important;
}

body.guest-mode .pode-sidebar {
  display: none !important;
}

body.guest-mode .pode-main-layout {
  margin-left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Vennery Brand Theme Extensions */
.vennery-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.vennery-logo-tagline-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.pode-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 0 4px 28px 4px;
}

.btn-primary {
  background: var(--pp-primary) !important;
  border-color: var(--pp-primary) !important;
}

.btn-primary:hover {
  background: var(--pp-primary-hover) !important;
  border-color: var(--pp-primary-hover) !important;
}

.pode-nav-btn.active {
  background: var(--pp-primary) !important;
  color: #ffffff !important;
}

.pode-chat-icon-badge {
  background: var(--pp-primary) !important;
}

/* ======================================================
   MODO APRESENTAÇÃO (CINEMATIC PRESENTATION MODE)
   ====================================================== */
.presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #09090b;
  color: #f8fafc;
  display: none;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.presentation-overlay.active {
  display: flex !important;
}

.pres-header {
  height: 64px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 100;
}

.pres-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pres-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pres-post-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pres-nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.pres-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.pres-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pres-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 20px 30px 90px 30px;
  box-sizing: border-box;
  gap: 32px;
}

.pres-media-stage {
  flex: 1;
  height: 100%;
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pres-media-wrapper {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #000;
}

.pres-carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.pres-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.pres-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.pres-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pres-carousel-slide img,
.pres-carousel-slide video {
  max-height: calc(100vh - 200px);
  max-width: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Post Approval Mockup Carousel Track */
.ig-mockup-carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
}

.ig-mockup-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.ig-mockup-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.ig-mockup-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-mockup-carousel-slide img,
.ig-mockup-carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}


.pres-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 10;
}

.pres-slide-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.pres-slide-btn.prev {
  left: 20px;
}

.pres-slide-btn.next {
  right: 20px;
}

.pres-slide-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pres-sidebar {
  width: 440px;
  max-width: 440px;
  height: 100%;
  max-height: calc(100vh - 180px);
  background: rgba(24, 24, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.presentation-overlay.mode-media-only .pres-sidebar {
  display: none !important;
}

.presentation-overlay.mode-media-only .pres-media-stage {
  max-height: calc(100vh - 160px);
}

.presentation-overlay.mode-media-only .pres-media-wrapper img,
.presentation-overlay.mode-media-only .pres-media-wrapper video {
  max-height: calc(100vh - 180px);
}

.pres-bottom-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
  max-width: 90vw;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pres-dock-item {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  background: #1e1e24;
}

.pres-dock-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pres-dock-item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.pres-dock-item.active {
  opacity: 1;
  border-color: #e30613;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
}

.pres-dots-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.pres-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pres-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #e30613;
}

/* ======================================================
   POST MODAL REDESIGN — UI/UX OVERHAUL
   Modern, clean, Notion/Linear-inspired
   ====================================================== */

.pode-approval-container {
  width: 1280px !important;
  max-width: 97vw !important;
  height: 92vh !important;
  max-height: 92vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 32px 64px -12px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* TOP BAR */
.pode-modal-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  height: 58px !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  gap: 12px !important;
}

.modal-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.modal-topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 12px;
  white-space: nowrap;
}

.modal-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.modal-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.modal-post-title-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.modal-post-client-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pode-status-pill-select {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
  outline: none;
  max-width: 200px;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.modal-action-btn i { font-size: 0.95rem; }
.modal-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.modal-action-btn--danger { color: #dc2626; }
.modal-action-btn--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.modal-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 9px;
  background: #e30613;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(227,6,19,0.25);
}
.modal-save-btn:hover {
  background: #c00511;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227,6,19,0.35);
}

.modal-close-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.modal-close-icon-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* BODY SPLIT */
.pode-modal-body-split {
  display: flex !important;
  flex: 1 !important;
  height: calc(100% - 58px) !important;
  overflow: hidden !important;
}

/* LEFT COLUMN: dark bg to showcase the mockup */
.pode-approval-left-col {
  width: 350px !important;
  min-width: 350px !important;
  background: #0f172a !important;
  border-right: none !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.ig-mockup-card {
  width: 310px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) !important;
}

.ig-mockup-media-box {
  width: 100% !important;
  height: 310px !important;
  background: #000 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ig-mockup-media-box img,
.ig-mockup-media-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* TABS — horizontal pill style */
.pode-stage-tabs-header {
  display: flex !important;
  flex-direction: row !important;
  gap: 2px !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  align-items: center !important;
  overflow-x: auto !important;
}

.pode-stage-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  flex-direction: row !important;
}
.pode-stage-tab-btn i { font-size: 0.88rem !important; }
.pode-stage-tab-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.pode-stage-tab-btn.active {
  background: #fff0f0 !important;
  border-color: #fca5a5 !important;
  color: #e30613 !important;
  box-shadow: none !important;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e30613;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
}

/* FORM styles */
#postEditorForm .form-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 5px !important;
}

#postEditorForm .form-control {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
#postEditorForm .form-control:focus {
  border-color: #e30613 !important;
  box-shadow: 0 0 0 3px rgba(227,6,19,0.08) !important;
  outline: none !important;
}

#postInputTheme {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* ======================================================
   MOBILE: PRESENTATION MODE (Aprovação pelo Cliente)
   Layout: media on top, sidebar content stacked below
   ====================================================== */

@media (max-width: 860px) {

  /* Overlay covers full screen */
  .presentation-overlay {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Header becomes compact */
  .pres-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    padding: 10px 14px !important;
    min-height: 52px !important;
    flex-wrap: nowrap !important;
  }

  .pres-header-info {
    gap: 8px !important;
  }

  /* Body becomes a vertical stack */
  .pres-body {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 0 100px 0 !important;
    gap: 0 !important;
    overflow-y: visible !important;
    height: auto !important;
  }

  /* Media stage: full width, natural height */
  .pres-media-stage {
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    flex: none !important;
    padding: 0 !important;
  }

  .pres-media-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: 75vw !important;
  }

  .pres-carousel-viewport {
    border-radius: 0 !important;
  }

  .pres-carousel-slide img,
  .pres-carousel-slide video {
    max-height: 75vw !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  /* Slide prev/next buttons — smaller on mobile */
  .pres-slide-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .pres-slide-btn.prev { left: 8px !important; }
  .pres-slide-btn.next { right: 8px !important; }

  /* Sidebar: full width below media, no glass card */
  .pres-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 18px 16px !important;
    overflow-y: visible !important;
    box-shadow: none !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  /* Bottom dock */
  .pres-bottom-dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* Slide badge top-right stays visible */
  .pres-slide-badge {
    top: 10px !important;
    right: 10px !important;
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
  }

  /* Nav post prev/next hide on single-post */
  #presPrevPostBtn,
  #presNextPostBtn {
    display: none !important;
  }

  /* Approved kit: download grid wider columns */
  #presDownloadGalleryGrid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)) !important;
    gap: 8px !important;
  }
}

/* ======================================================
   GUEST MODE: Read-only protection
   Prevent client from editing any form field
   when accessing via public approval link (/p/ID, /c/ID)
   ====================================================== */

/* Block the post editor modal entirely in guest mode */
body.guest-mode #postApprovalModalBackdrop {
  pointer-events: none !important;
  display: none !important;
}

/* In case somehow the form becomes visible, make all inputs read-only */
body.guest-mode #postEditorForm input,
body.guest-mode #postEditorForm textarea,
body.guest-mode #postEditorForm select {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  opacity: 0.6 !important;
  cursor: default !important;
}

/* Hide all admin tabs in guest mode presentation */
body.guest-mode .pode-stage-tabs-header {
  display: none !important;
}

body.guest-mode .pode-approval-right-col {
  pointer-events: none !important;
}

/* But keep the presentation overlay interactive */
body.guest-mode .presentation-overlay {
  pointer-events: all !important;
}

/* Guest: hide the "Editar Publicação" button */
body.guest-mode .admin-only {
  display: none !important;
}

/* ======================================================
   PRESENTATION MODE — APPLE-INSPIRED REDESIGN
   Design principle: Minimal, breathable, high-contrast.
   One thing at a time. Big targets. No clutter.
   ====================================================== */

/* ── TOP BAR ── */
.pres-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  min-height: 60px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.pres-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pres-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
}

.pres-topbar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pres-topbar-brand-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pres-topbar-brand-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.pres-topbar-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pres-topbar-counter span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

.pres-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pres-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.pres-icon-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.pres-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(227,6,19,0.2);
  background: rgba(227,6,19,0.1);
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.pres-close-btn:hover {
  background: rgba(227,6,19,0.25);
}

/* ── BODY ── */
.pres-body {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  padding: 0;
  gap: 0;
}

/* ── MEDIA STAGE ── */
.pres-media-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
}

.pres-media-wrapper {
  position: relative;
  max-height: calc(100vh - 140px);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

/* Media display fills wrapper naturally without cropping */
#presMediaDisplay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pres-carousel-slide img,
.pres-carousel-slide video {
  max-height: calc(100vh - 200px);
  max-width: calc(100vw - 560px); /* account for sidebar */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
}

/* ── SIDEBAR ── */
.pres-sidebar {
  width: 400px;
  min-width: 400px;
  height: 100%;
  max-height: 100%;
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #0f172a;
}

/* Sidebar header — type + date */
.pres-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pres-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pres-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pres-tag--type {
  background: #e30613;
  color: #fff;
}

.pres-tag--status {
  background: #f1f5f9;
  color: #475569;
}

.pres-date-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Title */
.pres-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.pres-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: -10px 0 0 0;
}

/* ── SECTIONS ── */
.pres-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pres-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pres-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pres-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pres-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pres-caption-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
  word-break: break-word;
}

.pres-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 6px;
}

/* ── COMMENTS SECTION ── */
.pres-comments-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  flex: 1;
}

.pres-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 130px;
  overflow-y: auto;
  padding-right: 2px;
}

.pres-comment-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.pres-comment-fields {
  display: flex;
  gap: 8px;
}

.pres-input {
  flex-shrink: 0;
  width: 100px;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}
.pres-input:focus { border-color: #e30613; }
.pres-input--grow { flex: 1; width: auto; }

.pres-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pres-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pres-attach-btn:hover { background: #f1f5f9; color: #0f172a; }

.pres-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #e30613;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(227,6,19,0.2);
}
.pres-send-btn:hover { background: #c0050f; }

/* ── DECISION BUTTONS ── */
.pres-decisions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pres-btn-approve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.pres-btn-approve:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}

.pres-btn-adjust {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pres-btn-adjust:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #dc2626;
}

.pres-btn-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pres-btn-admin:hover {
  background: #f8fafc;
  color: #475569;
}

/* ── APPROVED KIT ── */
.pres-approved-kit {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pres-approved-kit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pres-approved-kit-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #16a34a;
}
.pres-approved-kit-title i { font-size: 1.1rem; }

.pres-download-all-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pres-download-all-btn:hover { background: #bbf7d0; }

.pres-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}

/* ── MOBILE: <= 860px — stack layout, no cropping ── */
@media (max-width: 860px) {

  .pres-topbar {
    padding: 0 14px;
    height: 54px;
    min-height: 54px;
  }

  /* Hide counter on mobile (would overflow) */
  .pres-topbar-counter {
    position: static;
    transform: none;
    display: none;
  }

  .pres-icon-btn,
  .pres-close-btn {
    width: 40px;
    height: 40px;
  }

  /* Vertical stack */
  .pres-body {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 54px);
    padding-bottom: 80px; /* space for dock */
  }

  /* Media: full width, natural aspect ratio, NEVER CROPPED */
  .pres-media-stage {
    flex: none;
    width: 100%;
    padding: 0;
    background: #000;
    display: block;
  }

  .pres-media-wrapper {
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    background: #000;
  }

  #presMediaDisplay {
    width: 100%;
    height: auto;
  }

  .pres-carousel-viewport {
    border-radius: 0;
    width: 100%;
  }

  /* Images fill width but keep natural height — no cropping */
  .pres-carousel-slide {
    height: auto;
    min-height: 200px;
  }

  .pres-carousel-slide img,
  .pres-carousel-slide video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vw;
    object-fit: contain;
    pointer-events: none;
  }

  /* Arrows: smaller, visible */
  .pres-slide-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .pres-slide-btn.prev { left: 8px; }
  .pres-slide-btn.next { right: 8px; }

  /* Sidebar: white card, full width, no border-radius */
  .pres-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 20px 16px 24px 16px;
    overflow-y: visible;
  }

  /* Decision buttons: full width, big tap targets */
  .pres-btn-approve {
    padding: 16px;
    font-size: 1.05rem;
    border-radius: 16px;
  }

  .pres-btn-adjust {
    padding: 13px;
    font-size: 0.9rem;
  }

  /* Comment fields: stacked */
  .pres-comment-fields {
    flex-direction: column;
  }

  .pres-input {
    width: 100%;
    font-size: 0.9rem;
    padding: 11px 14px;
  }
  .pres-input--grow { width: 100%; }

  /* Bottom dock: fixed to bottom */
  .pres-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    max-width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 6px 12px;
    justify-content: center;
  }
}

/* ======================================================
   MEDIA IMAGE: Desktop vs Mobile sizing
   Desktop: constrained by viewport height
   Mobile: full width, natural height — NEVER CROPPED
   ====================================================== */

/* Desktop image — fits within viewport height */
.pres-media-img {
  display: block;
  max-height: calc(100vh - 160px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  border-radius: 12px;
}

/* Desktop viewport — fixed height for centering */
.pres-carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.pres-carousel-viewport.is-dragging { cursor: grabbing; }

.pres-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.pres-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* ── MOBILE: no fixed height — image breathes naturally ── */
@media (max-width: 860px) {

  /* The media display wrapper adapts to image height */
  #presMediaDisplay {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Viewport: no fixed height — wraps around content */
  .pres-carousel-viewport,
  .pres-carousel-viewport--mobile {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    touch-action: pan-y !important;
  }

  /* Track: row of slides, height auto */
  .pres-carousel-track {
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  /* Each slide: full width, height = image height */
  .pres-carousel-slide,
  .pres-carousel-slide--mobile {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* The image itself: full width, natural height, NO CROP */
  .pres-media-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
  }

  /* Media stage: just a block, no flex centering that would add height */
  .pres-media-stage {
    display: block !important;
    padding: 0 !important;
    background: #000 !important;
  }

  /* Wrapper: no max-height constraint */
  .pres-media-wrapper {
    max-height: none !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    background: #000 !important;
  }
}

/* ======================================================
   EMAIL SIGNATURE GENERATOR MODAL (HTML)
   Apple-inspired UI, Live Preview, Gmail/Outlook Standard
   ====================================================== */

#emailSignatureModalBackdrop {
  z-index: 99999 !important;
}

#emailSignatureModalBackdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
}

.sig-modal-container {
  width: 98vw;
  max-width: 1540px;
  height: 96vh;
  max-height: 96vh;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sig-modal-topbar {
  height: 62px;
  min-height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  box-sizing: border-box;
}

.sig-apple-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}
.sig-apple-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  transform: scale(1.08);
}

.sig-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.1);
  color: #e30613;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sig-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100% - 62px);
}

/* ── LEFT PANE: CONFIGURATION & INPUTS ── */
.sig-left-pane {
  width: 520px;
  min-width: 500px;
  max-width: 540px;
  height: 100%;
  overflow-y: auto;
  padding: 22px 24px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.sig-left-pane * {
  box-sizing: border-box !important;
}

.sig-section-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin-bottom: 6px;
}

.sig-left-pane input.form-control,
.sig-left-pane select.form-control,
.sig-left-pane textarea.form-control,
.sig-left-pane .sig-social-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  line-height: 1.4 !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}

.sig-left-pane div[style*="grid"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sig-left-pane div[style*="grid"] > div {
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.sig-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sig-section-title i { font-size: 1rem; color: #e30613; }

.sig-input-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

/* Template Grid Selector */
.sig-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sig-template-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.18s ease;
}
.sig-template-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.sig-template-card.active {
  border-color: #e30613;
  background: #fff5f5;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.12);
}

.sig-template-preview-thumb {
  width: 100%;
  height: 52px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.sig-template-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
  line-height: 1.2;
}

.sig-template-desc {
  font-size: 0.65rem;
  color: #64748b;
  display: block;
  margin-top: 3px;
  line-height: 1.25;
}

/* Micro Thumbnails */
.sig-thumb-v4 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}
.th-photo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #94a3b8;
  flex-shrink: 0;
}
.th-photo.circle { border-radius: 50%; }
.th-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.th-line {
  height: 3px;
  background: #cbd5e1;
  border-radius: 2px;
  width: 100%;
}
.th-line.bold { background: #0f172a; height: 4px; }
.th-line.sub { width: 70%; background: #64748b; }
.th-line.xs { width: 50%; }
.th-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.th-contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 32px;
}

.sig-thumb-grow {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.th-grow-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.th-grow-divider {
  width: 100%;
  height: 1.5px;
  background: #e30613;
}

.sig-thumb-minimal {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Color Presets */
.sig-color-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sig-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  transition: transform 0.15s ease;
}
.sig-color-dot:hover {
  transform: scale(1.15);
}

/* Image Upload Cards */
.sig-image-upload-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.sig-thumb-preview {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  flex-shrink: 0;
}

/* Range Sliders for Photo & Logo */
.sig-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin: 6px 0 2px 0;
}
.sig-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e30613;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.35);
  transition: transform 0.12s ease;
}
.sig-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.sig-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e30613;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.35);
}

/* Social Mini Inputs */
.sig-social-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  gap: 6px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.sig-social-mini-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.7;
}
.sig-social-input {
  border: none !important;
  background: transparent !important;
  padding: 6px 0 !important;
  font-size: 0.78rem !important;
  box-shadow: none !important;
  height: 32px !important;
}

/* Toggle Switch */
.sig-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.sig-toggle-switch input { opacity: 0; width: 0; height: 0; }
.sig-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  border-radius: 20px;
  transition: 0.2s;
}
.sig-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}
.sig-toggle-switch input:checked + .sig-toggle-slider {
  background-color: #e30613;
}
.sig-toggle-switch input:checked + .sig-toggle-slider:before {
  transform: translateX(16px);
}

/* ── RIGHT PANE: PREVIEW & EXPORT ── */
.sig-right-pane {
  flex: 1;
  min-width: 540px;
  height: 100%;
  overflow-y: auto;
  padding: 30px 40px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  box-sizing: border-box;
}

.sig-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 880px;
}

.sig-primary-outlook-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  background: #0284c7;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.sig-primary-outlook-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.sig-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  background: #16a34a;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}
.sig-copy-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.sig-action-sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sig-action-sm-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Email Client Simulator Mockup */
.sig-email-mockup {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  max-width: 880px;
  width: 100%;
}

.sig-email-mockup-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sig-email-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sig-email-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.sig-email-window-dots span:nth-child(1) { background: #fca5a5; }
.sig-email-window-dots span:nth-child(2) { background: #fde047; }
.sig-email-window-dots span:nth-child(3) { background: #86efac; }

.sig-email-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sig-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
}
.sig-meta-label {
  color: #94a3b8;
  font-weight: 700;
  width: 50px;
}
.sig-meta-value {
  color: #334155;
  font-weight: 500;
}

.sig-email-body-content {
  padding: 24px;
  background: #ffffff;
  min-height: 240px;
}

.sig-render-wrapper {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Instructions Card */
.sig-instructions-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
}

/* Mobile Responsive */
@media (max-width: 960px) {
  .sig-modal-container {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .sig-modal-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .sig-left-pane {
    width: 100%;
    min-width: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .sig-right-pane {
    width: 100%;
    height: auto;
  }
}


/* ======================================================
   PÁGINA DEDICADA: GESTÃO DE ASSINATURAS (APPLE DESIGN)
   ====================================================== */
#view-signatures {
  padding-bottom: 60px;
}

.sig-apple-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid var(--pp-border, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.sig-apple-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sig-apple-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sig-apple-card-icon.blue { background: rgba(0, 113, 227, 0.1); color: #0071e3; }
.sig-apple-card-icon.green { background: rgba(52, 199, 89, 0.1); color: #16a34a; }
.sig-apple-card-icon.orange { background: rgba(249, 115, 22, 0.1); color: #ea580c; }

.sig-apple-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.sig-apple-card-sub {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.sig-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sig-modern-input {
  width: 100% !important;
  height: 42px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  font-size: 0.88rem !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  display: block !important;
}

.sig-modern-input:focus {
  outline: none !important;
  border-color: #0071e3 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15) !important;
}

.sig-pill-badge {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.sig-preset-chip {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sig-preset-chip:hover {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
}

/* ============================================================
   INSTAGRAM STORIES & STORY SEQUENCE STYLES
   ============================================================ */
.pres-media-wrapper.is-story {
  max-width: 380px !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 28px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
  background: #000 !important;
  position: relative !important;
}

.pres-media-wrapper.is-story .pres-carousel-viewport {
  border-radius: 28px !important;
}

.pres-media-wrapper.is-story .pres-media-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

.pres-story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 25;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0) 40%);
  border-radius: 28px;
  overflow: hidden;
}

.pres-story-bars {
  display: flex;
  gap: 4px;
  padding: 14px 14px 8px 14px;
  width: 100%;
  box-sizing: border-box;
}

.pres-story-bar-segment {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.pres-story-bar-segment.active,
.pres-story-bar-segment.completed {
  background: #ffffff;
}

.pres-story-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.85rem;
}

.pres-story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.pres-story-handle {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.pres-story-time {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 500;
}

.pres-story-tag {
  margin-left: auto;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}

.pres-story-tap-left {
  position: absolute;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 35%;
  pointer-events: auto;
  cursor: pointer;
}

.pres-story-tap-right {
  position: absolute;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 65%;
  pointer-events: auto;
  cursor: pointer;
}

/* Single Post Approval Story Mockup */
.ig-mockup-media-box.is-story {
  height: 600px !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 20px !important;
  background: #000 !important;
}

.ig-mockup-media-box.is-story img,
.ig-mockup-media-box.is-story video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sp-story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0) 40%);
  border-radius: 20px;
  overflow: hidden;
}

.sp-story-bars {
  display: flex;
  gap: 4px;
  padding: 12px 14px 6px 14px;
  width: 100%;
  box-sizing: border-box;
}

.sp-story-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.sp-story-bar-segment.active,
.sp-story-bar-segment.completed {
  background: #ffffff;
}

.sp-story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  font-size: 0.8rem;
}

.sp-story-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.sp-story-handle {
  font-weight: 700;
  color: #ffffff;
}

.sp-story-time {
  margin-left: auto;
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

.sp-story-tap-left {
  position: absolute;
  top: 50px;
  left: 0;
  bottom: 0;
  width: 35%;
  pointer-events: auto;
  cursor: pointer;
}

.sp-story-tap-right {
  position: absolute;
  top: 50px;
  right: 0;
  bottom: 0;
  width: 65%;
  pointer-events: auto;
  cursor: pointer;
}

/* ============================================================
   REORDENAÇÃO DE MÍDIAS (CARROSSEL E STORIES)
   ============================================================ */
.demand-gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.demand-gallery-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.96);
  border: 2px dashed #e30613;
}

.demand-gallery-card.drag-over {
  border: 2px solid #3b82f6 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.demand-gallery-reorder-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 6px 4px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  z-index: 5;
}

.demand-gallery-move-btn {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.demand-gallery-move-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.demand-gallery-move-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.demand-gallery-pos-label {
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  letter-spacing: 0.3px;
}

/* ============================================================
   APARÊNCIA AUTÊNTICA DE STORIES DO INSTAGRAM NA APROVAÇÃO
   ============================================================ */
.ig-mockup-card.is-story-mode {
  max-width: 390px !important;
  margin: 0 auto !important;
  border-radius: 36px !important;
  background: #000000 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 5px #0f172a, 0 0 0 7px #334155 !important;
  overflow: hidden !important;
  border: none !important;
}

.ig-mockup-card.is-story-mode .sp-feed-elements {
  display: none !important;
}

.ig-mockup-card.is-story-mode .ig-mockup-media-box {
  height: 640px !important;
  aspect-ratio: 9 / 16 !important;
  border-radius: 32px !important;
  background: #000000 !important;
}

.ig-mockup-card.is-story-mode .ig-mockup-media-box img,
.ig-mockup-card.is-story-mode .ig-mockup-media-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 32px !important;
}

/* Avatar Ring Gradiente do Instagram */
.sp-story-avatar-ring {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-story-time-ago {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 2px;
}

.sp-story-more-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease;
  padding: 4px;
}

.sp-story-more-btn:hover {
  opacity: 1;
}

/* Barra Inferior Autêntica de Stories do Instagram */
.sp-story-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 65%, rgba(0,0,0,0) 100%);
  pointer-events: auto;
  z-index: 25;
}

.sp-story-reply-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  color: #ffffff;
  font-size: 0.84rem;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sp-story-reply-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sp-story-action-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.18s ease, color 0.18s ease;
}

.sp-story-action-btn:hover {
  transform: scale(1.15);
}

.sp-story-action-btn.liked {
  color: #ff3040;
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1.15); }
}

/* Zonas táteis de toque/clique nas laterais do Story (Totalmente limpas, sem bolinhas) */
.sp-story-tap-left, .pres-story-tap-left {
  position: absolute;
  top: 50px;
  left: 0;
  bottom: 65px;
  width: 40%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 22;
}

.sp-story-tap-right, .pres-story-tap-right {
  position: absolute;
  top: 50px;
  right: 0;
  bottom: 65px;
  width: 60%;
  pointer-events: auto;
  cursor: pointer;
  z-index: 22;
}

/* Garante visual 100% limpo em Stories: sem bolinhas de setas, sem dots de carrossel, sem badges */
.pres-media-wrapper.is-story .pres-slide-btn,
.pres-media-wrapper.is-story .pres-dots-indicator,
.pres-media-wrapper.is-story .pres-dot,
.pres-media-wrapper.is-story .pres-slide-badge,
.ig-mockup-card.is-story-mode .ig-carousel-btn,
.ig-mockup-card.is-story-mode .ig-carousel-badge,
.sp-story-overlay .sp-story-tap-left::after,
.sp-story-overlay .sp-story-tap-right::after,
.pres-story-overlay .pres-story-tap-left::after,
.pres-story-overlay .pres-story-tap-right::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
}



/* Botão de Cópia Rápida de Link na Galeria de Posts */
.ig-post-quick-share-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.ig-post-square:hover .ig-post-quick-share-btn {
  opacity: 1;
  transform: scale(1);
}

.ig-post-quick-share-btn:hover {
  background: var(--pp-primary, #e30613) !important;
  border-color: transparent !important;
  transform: scale(1.12) !important;
}
