/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-app: #0c0d0e;
  --bg-card: #16181a;
  --bg-card-hover: #1f2226;
  --bg-input: #121316;
  --border: #25282d;
  --border-focus: #ff4500;
  --text-main: #f0f2f5;
  --text-muted: #8c939d;
  --text-dim: #5c626b;

  --accent-reddit: #ff4500;
  --accent-twitter: #1d9bf0;
  --accent-instagram: #e1306c;
  --accent-facebook: #1877f2;
  --accent-linkedin: #0a66c2;
  --accent-green: #10b981;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── App Layout ─────────────────────────────────────────────────────────── */
.app-root {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* ── Login View ─────────────────────────────────────────────────────────── */
#view-login {
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4500 0%, #e1306c 60%, #8134af 100%);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus {
  border-color: var(--accent-reddit);
  box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .input-field {
  padding-right: 44px;
}

.btn-icon {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4500 0%, #e03d00 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: #3f444c;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Header Bar ─────────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px 0;
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4500, #e1306c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.header-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #555;
}

.status-indicator.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.btn-header-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.btn-header-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* ── Platform Login Strip ───────────────────────────────────────────────── */
.platform-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.platform-strip::-webkit-scrollbar {
  display: none;
}

.platform-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
}

.platform-badge-item.is-logged-in {
  color: var(--text-main);
  border-color: rgba(16, 185, 129, 0.3);
}

.platform-badge-item.is-logged-in .platform-dot {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

/* ── Nav Tabs ───────────────────────────────────────────────────────────── */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px 0;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-button.active {
  background: var(--bg-input);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ── Add Modes (Pills) ──────────────────────────────────────────────────── */
.add-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-pill {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.mode-pill.active {
  background: rgba(255, 69, 0, 0.15);
  border-color: var(--accent-reddit);
  color: var(--accent-reddit);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button .input-field {
  flex: 1;
}

/* ── Reddit Builder ─────────────────────────────────────────────────────── */
.card-header-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-reddit {
  background: rgba(255, 69, 0, 0.15);
  color: var(--accent-reddit);
  border: 1px solid rgba(255, 69, 0, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reddit-type-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.reddit-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.reddit-tab.active {
  background: var(--bg-card-hover);
  color: #fff;
}

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

.pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 16px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill.active {
  background: rgba(255, 69, 0, 0.15);
  border-color: var(--accent-reddit);
  color: var(--accent-reddit);
  font-weight: 600;
}

.prefix-input {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-prefix {
  padding: 0 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
}

.prefix-input .input-field {
  border: none;
  background: transparent;
  padding-left: 0;
}

.form-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #2a2d33;
  transition: 0.2s;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Custom Website Studio ──────────────────────────────────────────────── */
.custom-studio-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 6px;
}

.studio-page-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-page-info strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-page-info span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}

.candidates-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.candidates-label {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.candidates-pills {
  display: flex;
  gap: 6px;
}

.candidate-pill {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.candidate-pill:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Canvas Viewport */
.canvas-viewport {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #000;
  touch-action: pan-x pan-y;
}

.canvas-wrapper {
  position: relative;
  display: inline-block;
  cursor: crosshair;
}

.studio-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
}

.touch-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  background: rgba(16, 185, 129, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-marker 1.2s infinite ease-out;
}

@keyframes pulse-marker {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.canvas-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #fff;
  z-index: 10;
}

/* Selection Drawer */
.selection-drawer {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.2s ease-out;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-selector {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-preview-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  padding: 6px;
  margin-bottom: 14px;
}

.preview-item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

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

.preview-item-title {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-item-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-2 {
  margin-bottom: 8px;
}

/* ── Feeds List Tab ─────────────────────────────────────────────────────── */
.feeds-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.feeds-count-label {
  font-size: 16px;
  font-weight: 700;
}

/* ── Feed Tabs & Search Bar ─────────────────────────────────────────────── */
.feed-tabs-bar {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.feed-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.feed-search-wrap:focus-within .feed-search-icon {
  color: var(--accent-reddit);
}

.feed-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.feed-search-input:focus {
  border-color: var(--accent-reddit);
  box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
  background: #17181c;
}

.feed-search-input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

/* Category Filter Tabs (Instagram, LinkedIn, Custom, Reddit, etc.) */
.feed-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-category-tabs::-webkit-scrollbar {
  display: none;
}

.feed-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.feed-category-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-main);
}

.feed-category-tab.is-active {
  background: rgba(255, 69, 0, 0.14);
  border-color: var(--accent-reddit);
  color: #ff8555;
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.2);
}

.feed-category-tab .feed-tab-count {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 6px;
  line-height: 18px;
}

.feed-category-tab.is-active .feed-tab-count {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.feeds-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feed-item-card.is-editing {
  border-color: rgba(255, 69, 0, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.feed-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.feed-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.feed-platform-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.feed-platform-icon.reddit { color: var(--accent-reddit); }
.feed-platform-icon.twitter { color: var(--accent-twitter); }
.feed-platform-icon.instagram { color: var(--accent-instagram); }
.feed-platform-icon.facebook { color: var(--accent-facebook); }
.feed-platform-icon.linkedin { color: var(--accent-linkedin); }
.feed-platform-icon.custom { color: var(--accent-green); }
.feed-platform-icon.calendar { color: #10b981; }
.feed-platform-icon.txt { color: #f59e0b; }

.feed-name-block {
  overflow: hidden;
}

.feed-alias {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-handle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feed URL snippet */
.feed-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  overflow: hidden;
}

.feed-url-icon {
  font-size: 11px;
  opacity: 0.7;
  flex-shrink: 0;
}

.feed-url-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  letter-spacing: -0.2px;
}

.feed-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.badge-filter {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.feed-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.feed-item-actions .btn {
  flex: 1;
}

/* Inline Feed Rename Container */
.feed-edit-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 6px;
  animation: slide-up 0.15s ease-out;
}

.feed-edit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-edit-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.feed-edit-hint {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
  margin-top: 2px;
}

.feed-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.feed-edit-actions .btn {
  flex: 1;
}

/* ── Toast & Spinners ────────────────────────────────────────────────────── */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.status-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-large {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.rotating {
  animation: spin 0.8s linear infinite;
}
