/* ─── Module Panel ─── */
.module-panel {
  display: none;
  gap: 20px;
  animation: fadeIn 0.3s ease;
  min-height: calc(100vh - 108px);
}

.module-panel.active {
  display: flex;
}

.module-panel .panel-card {
  flex: 1;
  min-width: 0;
}

/* ─── Email Send Status ─── */
.email-send-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: pre-line;
}

.email-send-status.success {
  color: #15803D;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
}

.email-send-status.error {
  color: #DC2626;
  background: #FEE2E2;
  border: 1px solid #FECACA;
}

.email-send-status.loading {
  color: var(--text-muted);
  background: var(--bg-light);
}

/* ─── Presence Checklist ─── */
.presence-checklist {
  display: flex;
  flex-direction: column;
}

.presence-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.presence-item:last-child {
  border-bottom: none;
}

.presence-icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  font-weight: 600;
}

.presence-platform {
  flex: 1;
  color: var(--text-body);
  font-size: 13px;
}

.presence-status {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.presence-status a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.presence-summary {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  font-weight: 500;
}

/* ─── Platform Toggle ─── */
.platform-toggle {
  display: flex;
  gap: 8px;
}

.platform-btn {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

.platform-btn.active {
  background: var(--bg-dark);
  color: var(--bg-white);
  border-color: var(--bg-dark);
  font-weight: 500;
}

/* ─── Hashtag Chips ─── */
.hashtag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 32px;
}

.hashtag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-body);
}

.chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.chip-remove:hover {
  color: var(--error);
}

.hashtag-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hashtag-add input {
  height: 36px !important;
  width: 130px !important;
  flex-shrink: 0;
}

/* ─── File Preview Card ─── */
.file-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.file-icon {
  font-size: 26px;
  flex-shrink: 0;
}

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

.file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Caption Preview ─── */
.caption-preview {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ─── Post Status ─── */
.post-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 8px;
}

.post-status:empty { display: none; }

.post-status.success {
  color: #15803D;
  background: #DCFCE7;
}

.post-status.error {
  color: #DC2626;
  background: #FEE2E2;
}

.post-status.loading {
  color: var(--text-muted);
  background: var(--bg-light);
}

/* ─── Publish Buttons ─── */
.publish-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Settings ─── */
.settings-section {
  margin-bottom: 8px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-key {
  color: var(--text-muted);
}

.settings-value {
  color: var(--text-primary);
  font-weight: 500;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  color: var(--text-muted);
}

.status-pill.connected {
  background: #DCFCE7;
  color: #15803D;
}

.status-pill.error {
  background: #FEE2E2;
  color: #DC2626;
}
