:root {
  --bg: #0f0f13;
  --bg2: #16161d;
  --bg3: #1e1e28;
  --border: #2a2a38;
  --accent: #7c5cfc;
  --accent2: #5b3fd4;
  --accent-glow: rgba(124,92,252,0.15);
  --text: #e8e8f0;
  --text2: #9898b0;
  --text3: #5a5a78;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.brand-icon { font-size: 18px; }

.tabs {
  display: flex;
  gap: 2px;
  flex: 1;
}

.tab {
  background: none;
  border: none;
  color: var(--text2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--bg3); }
.tab.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-shutdown {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-shutdown:hover { border-color: var(--red); color: var(--red); }

/* CONTENT */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* CARDS */
.card {
  background: var(--bg2);
  border: 1px solid #2e2e40;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: #c8c8e0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text2); padding: 4px; border-radius: 4px; }
.btn-icon:hover { color: var(--text); background: var(--bg3); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* INPUTS */
input[type="text"], input[type="password"], input[type="date"],
input[type="time"], input[type="number"], textarea, select {
  background: var(--bg3);
  border: 1px solid #3a3a50;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}
textarea { resize: vertical; min-height: 80px; }
select option { background: var(--bg3); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: #b8b8d0;
  margin-bottom: 6px;
  font-weight: 500;
}

/* DROPZONE */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text2);
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
}
.dropzone-icon { font-size: 32px; margin-bottom: 12px; }
.dropzone p { font-size: 14px; margin-bottom: 4px; }
.dropzone small { font-size: 12px; color: var(--text3); }

/* TABLE */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 12px;
  color: #b0b0cc;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #2e2e40;
  white-space: nowrap;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid #222230;
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg3); }
.drag-handle { cursor: grab; color: var(--text3); user-select: none; }
.drag-handle:active { cursor: grabbing; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-scheduled { background: rgba(124,92,252,0.2); color: var(--accent); }
.badge-published { background: rgba(34,197,94,0.2); color: var(--green); }
.badge-failed { background: rgba(239,68,68,0.2); color: var(--red); }
.badge-pending { background: rgba(245,158,11,0.2); color: var(--yellow); }

/* PLATFORM DOTS */
.platform-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 2px;
}
.dot-instagram { background: #e1306c; }
.dot-tiktok { background: #010101; border: 1px solid #444; }
.dot-twitter { background: #1da1f2; }
.dot-facebook { background: #1877f2; }
.dot-linkedin { background: #0077b5; }
.dot-youtube { background: #ff0000; }
.dot-threads { background: #000; border: 1px solid #444; }
.dot-bluesky { background: #0085ff; }
.dot-pinterest { background: #e60023; }
.dot-reddit { background: #ff4500; }
.dot-discord { background: #5865f2; }

/* PLATFORM CHECKBOXES */
.platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.platform-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.15s;
  user-select: none;
}
.platform-check.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
}
.platform-check input { display: none; }

/* TIME SLOTS */
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.time-slot-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
}
.time-slot-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 12px;
  padding: 0;
  line-height: 1;
}
.time-slot-tag button:hover { color: var(--red); }

/* CALENDAR GRID */
.cal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-day {
  min-height: 80px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cal-day:hover { border-color: var(--accent); }
.cal-day.other-month { opacity: 0.3; }
.cal-day.today { border-color: var(--accent); }
.cal-day-num {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
  font-weight: 600;
}
.cal-posts { display: flex; flex-wrap: wrap; gap: 3px; }
.cal-post-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  cursor: pointer;
}

/* FILTERS BAR */
.filters-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters-bar select, .filters-bar input { width: auto; }

/* ANALYTICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.metric-value { font-size: 28px; font-weight: 700; color: var(--text); }
.metric-label { font-size: 12px; color: var(--text2); margin-top: 4px; }
.metric-delta { font-size: 12px; margin-top: 6px; }
.metric-delta.up { color: var(--green); }
.metric-delta.down { color: var(--red); }

/* COMMENTS */
.comment-thread { margin-bottom: 16px; }
.comment-post-header {
  padding: 10px 14px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.comment-list { padding: 8px 0; }
.comment-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-author { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.comment-actions { display: flex; gap: 6px; }

/* PROGRESS BAR */
.progress-wrap { margin: 12px 0; }
.progress-label { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.progress-bar { background: var(--bg3); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }

/* TOAST */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  animation: slide-in 0.2s ease;
  max-width: 320px;
}
.toast-success { background: rgba(34,197,94,0.15); border: 1px solid var(--green); color: var(--green); }
.toast-error { background: rgba(239,68,68,0.15); border: 1px solid var(--red); color: var(--red); }
.toast-info { background: rgba(124,92,252,0.15); border: 1px solid var(--accent); color: var(--accent); }
@keyframes slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.modal-close { background: none; border: none; cursor: pointer; color: var(--text2); font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* SUB-TABS */
.subtabs { display: flex; gap: 2px; margin-bottom: 16px; }
.subtab {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.subtab.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* MISC */
.text-muted { color: #a0a0bc; }
.text-sm { font-size: 12px; }
.empty-state { text-align: center; padding: 48px; color: var(--text3); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
.addon-notice {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--yellow);
  font-size: 13px;
}
.row { display: flex; gap: 12px; align-items: flex-start; }
.row .field { flex: 1; }
.caption-textarea { min-height: 60px; font-size: 12px; }
.first-comment-row { display: none; }
.first-comment-row.open { display: table-row; }

/* PREVIEW IMG */
.media-preview {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.media-preview-placeholder {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 20px;
  color: var(--text3);
}

/* LOG DRAWER */
.log-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.log-btn:hover { border-color: var(--accent); color: var(--accent); }
.log-btn.has-errors { border-color: var(--red); color: var(--red); }
.log-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.log-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.log-drawer {
  position: fixed;
  bottom: 66px;
  right: 20px;
  width: 380px;
  max-height: 320px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  z-index: 899;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
}
.log-drawer.open { display: flex; }
.log-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.log-drawer-title {
  font-size: 11px;
  font-weight: 700;
  color: #b0b0cc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.log-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.3s;
}
.log-activity-dot.active { opacity: 1; animation: log-pulse 1s infinite; }
@keyframes log-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.log-drawer-actions { display: flex; gap: 6px; }
.log-clear-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.log-clear-btn:hover { color: var(--text2); background: var(--bg3); }
.log-entries {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 11px;
  line-height: 1.6;
}
.log-entry {
  display: flex;
  gap: 8px;
  padding: 1px 12px;
  align-items: flex-start;
}
.log-entry:hover { background: var(--bg3); }
.log-time { color: var(--text3); flex-shrink: 0; font-size: 10px; padding-top: 1px; }
.log-icon { flex-shrink: 0; width: 12px; text-align: center; }
.log-msg { color: #b0b0cc; word-break: break-all; }
.log-entry.log-ok .log-icon { color: var(--green); }
.log-entry.log-ok .log-msg { color: #c8c8e0; }
.log-entry.log-error .log-icon { color: var(--red); }
.log-entry.log-error .log-msg { color: var(--red); }
.log-entry.log-retry .log-icon { color: var(--yellow); }
.log-entry.log-retry .log-msg { color: var(--yellow); }
.log-entry.log-wait .log-icon { color: var(--accent); }
.log-entry.log-wait .log-msg { color: var(--accent); }
.log-entry.log-info .log-icon { color: var(--text3); }
.log-empty { color: var(--text3); font-size: 11px; padding: 16px 12px; font-style: italic; }

/* ITEM FALHO NA TABELA */
.schedule-row.item-failed td {
  background: rgba(239,68,68,0.05);
}
.schedule-row.item-failed td:first-child {
  border-left: 3px solid var(--red);
}
.item-failed-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}
.item-failed-reason {
  font-size: 10px;
  color: rgba(239,68,68,0.8);
  margin-top: 2px;
  word-break: break-word;
}

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

/* WIZARD STEPS */
.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.wizard-step:last-child { flex: none; }
.wizard-step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  color: var(--text3);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  white-space: nowrap;
  transition: color 0.2s;
}
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
  border-radius: 2px;
  transition: background 0.3s;
}
.wizard-step.active .wizard-step-circle {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.wizard-step.active .wizard-step-label { color: var(--accent); }
.wizard-step.done .wizard-step-circle {
  background: rgba(34,197,94,0.15);
  border-color: var(--green);
  color: var(--green);
}
.wizard-step.done .wizard-step-label { color: var(--green); }
.wizard-step.done + .wizard-step-line { background: var(--green); }
.wizard-step.active + .wizard-step-line { background: var(--accent); }

/* WEEKDAY TOGGLES */
.weekday-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.weekday-btn {
  background: var(--bg3);
  border: 1px solid #3a3a52;
  color: #c0c0d8;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.weekday-btn:hover { border-color: var(--accent); color: var(--accent); }
.weekday-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* TIME RANGE BAR */
.time-range-bar-wrap {
  margin-top: 10px;
  background: var(--bg3);
  border: 1px solid #3a3a52;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.time-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8888a8;
  margin-bottom: 6px;
}
.time-range-bar {
  height: 8px;
  background: var(--bg2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.time-range-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: left 0.2s, right 0.2s;
}
.time-range-hint {
  font-size: 10px;
  color: var(--accent);
  margin-top: 6px;
}

/* SCHEDULE PREVIEW LIST */
.schedule-preview-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.schedule-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
}
.schedule-preview-date { color: var(--accent); font-weight: 600; min-width: 80px; }
.schedule-preview-time { color: #b0b0cc; min-width: 50px; }
.schedule-preview-name { color: #8888a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* PRIMEIRO COMENTÁRIO POR PLATAFORMA */
.fc-panel {
  background: var(--bg3);
  border: 1px solid #3a3a52;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #b0b0cc;
  padding-bottom: 6px;
  border-bottom: 1px solid #2e2e40;
}
.fc-platform-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fc-platform-name {
  font-size: 11px;
  color: #b0b0cc;
  min-width: 72px;
  flex-shrink: 0;
}
.fc-input {
  flex: 1;
  padding: 5px 8px !important;
  font-size: 12px !important;
  min-height: unset !important;
}
.fc-empty {
  font-size: 11px;
  color: #5a5a78;
  font-style: italic;
}
.btn-icon.fc-active {
  color: var(--accent);
}

/* BOTÃO POSTAR AGORA */
.btn-post-now {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-post-now:hover { background: var(--accent-glow); }

/* CROP THUMBNAIL */
.crop-thumb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.crop-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.crop-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid var(--accent);
}
.crop-thumb-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
}

/* CROP EDITOR INLINE */
.crop-editor-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--accent) !important;
}
.crop-editor {
  padding: 16px;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.crop-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--accent);
  cursor: grab;
  user-select: none;
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img {
  display: block;
  pointer-events: none;
}
.crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
}
.crop-actions {
  display: flex;
  gap: 8px;
}
.crop-hint {
  font-size: 11px;
  color: var(--text3);
}
