/* ==========================================================================
   Automation Editor / Settings Screen (Screen 1 Modern Redesign)
   Apple Liquid Dark Glass lighting, high-contrast neon accents
   ========================================================================== */

.auto-editor-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* ── 1. Top Bar Header Group (Title, Edit Icon, Subtitle) ── */
.auto-header-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auto-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-title-edit-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.auto-title-edit-btn:hover {
  color: var(--p-white);
  background: rgba(255, 255, 255, 0.08);
}

.auto-title-edit-btn:active {
  transform: scale(0.92);
}

.auto-header-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
  line-height: 1.3;
}

/* ── 2. Glass Card Container ── */
.auto-glass-card {
  background: linear-gradient(145deg, rgba(16, 14, 30, 0.8) 0%, rgba(10, 8, 20, 0.88) 100%);
  border-radius: 20px;
  padding: 18px 20px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* ── Card Header (Icon Badge + Title / Subtitle + Controls) ── */
.auto-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-card-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--p-white);
}

.auto-badge-purple {
  background: linear-gradient(135deg, var(--p-purple-500) 0%, var(--p-purple-deeper) 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.auto-badge-blue {
  background: linear-gradient(135deg, var(--p-blue-500) 0%, var(--p-blue-strong) 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.auto-badge-green {
  background: linear-gradient(135deg, var(--p-green-400) 0%, var(--p-green-600) 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-weight: 700;
  font-size: 17px;
}

.auto-badge-plane {
  background: linear-gradient(135deg, var(--p-purple-300) 0%, var(--p-purple-600) 100%);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.auto-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auto-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--p-white);
  margin: 0;
}

.auto-card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ── 3. Card 1: 3-Columns Channels Grid (Direct, Comments, Story) ── */
.auto-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 540px) {
  .auto-channels-grid {
    grid-template-columns: 1fr;
  }
}

.auto-channel-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auto-channel-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
}

.auto-channel-card.active {
  background: rgba(236, 72, 153, 0.06);
  border: 1.5px solid var(--p-pink-500);
  box-shadow:
    0 0 20px rgba(236, 72, 153, 0.25),
    inset 0 0 14px rgba(168, 85, 247, 0.15);
}

.auto-tile-radio-circle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auto-channel-card.active .auto-tile-radio-circle {
  border-color: var(--p-blue-500);
  background: var(--p-blue-500);
  box-shadow: inset 0 0 0 3px #0f0c20;
}

.auto-tile-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--p-purple-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.auto-channel-card.active .auto-tile-icon-box {
  background: linear-gradient(135deg, var(--p-pink-500) 0%, var(--p-purple-500) 100%);
  color: var(--p-white);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.auto-tile-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-white);
  line-height: 1.3;
}

.auto-tile-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
}

/* ── 4. Card 2: Posts Layout (Left Card + Right Neon Mockup) ── */
.auto-posts-split {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.auto-posts-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-post-choice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auto-post-choice-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.auto-post-choice-card.active {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.auto-specific-post-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 32px;
  overflow: hidden;
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    margin 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s ease;
}

.auto-specific-post-wrap.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.auto-post-choice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-white);
}

.auto-post-art-wrap {
  width: 140px;
  height: 104px;
  position: relative;
  background: linear-gradient(145deg, rgba(14, 10, 32, 0.9) 0%, rgba(22, 16, 44, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  flex-shrink: 0;
  box-sizing: border-box;
}

.auto-art-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-art-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-purple-500) 0%, var(--p-blue-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 700;
}

.auto-art-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-art-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.auto-art-bar.w-1 {
  width: 50px;
}
.auto-art-bar.w-2 {
  width: 34px;
}

.auto-art-body-line {
  height: 4px;
  width: 75px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.auto-art-bubble {
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 48px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--p-blue-500) 0%, var(--p-blue-strong) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.65);
  color: var(--p-white);
}

/* ── 5. Card 3: Bot Reaction (Green Glowing Card + Plain Radio) ── */
.auto-react-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-react-green-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.auto-react-green-card.active {
  border: 1.5px solid var(--p-green-500);
  background: rgba(16, 185, 129, 0.04);
  box-shadow:
    0 0 20px rgba(16, 185, 129, 0.18),
    inset 0 0 12px rgba(16, 185, 129, 0.06);
}

.auto-radio-row-clean {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-radio-title-clean {
  font-size: 14px;
  font-weight: 600;
  color: var(--p-white);
}

.auto-green-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--p-green-500);
  background: var(--p-green-500);
  box-shadow: inset 0 0 0 3px #0b1713;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.auto-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.auto-radio-circle.active {
  border-color: var(--p-blue-500);
  background: var(--p-blue-500);
  box-shadow: inset 0 0 0 3px #0b1326;
}

.auto-green-radio-circle.inactive,
.auto-radio-circle:not(.active) {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  box-shadow: none;
}

.auto-keyword-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  margin-left: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auto-keyword-transparent-input {
  background: transparent;
  border: none;
  color: var(--p-white);
  font-size: 13.5px;
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.auto-pencil-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.auto-pencil-btn:hover {
  color: var(--p-green-500);
}

.auto-react-plain-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.auto-react-plain-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.auto-react-plain-row.active {
  border: 1.5px solid var(--p-blue-500);
  background: rgba(59, 130, 246, 0.06);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.18),
    inset 0 0 12px rgba(59, 130, 246, 0.06);
}

/* ── Apple Liquid Toggle Switch ── */
.auto-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  cursor: pointer;
  user-select: none;
}

.auto-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.auto-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auto-switch-slider::before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--p-white);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.auto-switch input:checked + .auto-switch-slider {
  background: linear-gradient(135deg, var(--p-purple-300) 0%, var(--p-pink-500) 100%);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
}

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

/* ── Tooltip Popover & Help Trigger ── */
.auto-help-wrap,
.auto-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.auto-help-wrap:focus,
.auto-help-wrap:focus-visible,
.auto-help-wrap:active,
.auto-tooltip-wrap:focus,
.auto-tooltip-wrap:focus-visible,
.auto-tooltip-wrap:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.auto-help-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  color: var(--p-white-a40);
  transition: color 0.15s ease;
}

.auto-help-wrap:hover .auto-help-icon,
.auto-help-wrap.active .auto-help-icon,
.auto-tooltip-wrap:hover .auto-help-icon,
.auto-tooltip-wrap.active .auto-help-icon {
  color: var(--p-white);
}

.auto-tooltip-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(18, 16, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  width: 255px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(168, 85, 247, 0.18),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  box-sizing: border-box;
}

.auto-tooltip-title {
  display: block;
  font-weight: 600;
  color: var(--p-white);
  margin-bottom: 4px;
}

.auto-help-wrap:hover .auto-tooltip-popover,
.auto-help-wrap.active .auto-tooltip-popover,
.auto-tooltip-wrap:hover .auto-tooltip-popover,
.auto-tooltip-wrap.active .auto-tooltip-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Comment Replies List & Inputs ── */
.auto-comment-replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 600px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    padding 0.3s ease,
    margin 0.3s ease,
    transform 0.25s ease;
}

.auto-comment-replies.collapsed,
.auto-comment-replies.disabled {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  box-shadow: none !important;
  border: none !important;
  transform: translateY(-6px);
}

/* ── 6. Card 4: Reply Messages List & Dashed Button ── */
.auto-reply-list-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-reply-item-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.auto-reply-item-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.auto-drag-dots {
  color: rgba(255, 255, 255, 0.3);
  cursor: grab;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.auto-reply-input-clean {
  flex: 1;
  font-size: 13.5px;
  color: var(--p-white);
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.auto-reply-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auto-action-icon-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auto-action-icon-btn:hover {
  color: var(--p-white);
}

.auto-action-icon-btn.delete:hover {
  color: var(--p-rose-400);
}

.auto-dashed-add-btn {
  width: 100%;
  height: 44px;
  border: 1.5px dashed rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--p-purple-200);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.auto-dashed-add-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.7);
  color: var(--p-purple-100);
}

.auto-dashed-add-btn:active {
  transform: scale(0.985);
}

/* ── 7. Card 5: Tip Box ── */
.auto-tip-card {
  background: linear-gradient(145deg, rgba(20, 20, 36, 0.7) 0%, rgba(12, 10, 24, 0.8) 100%);
  border: none !important;
  border-radius: var(--radius-lg, 16px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.auto-tip-card:hover {
  background: linear-gradient(145deg, rgba(26, 26, 44, 0.85) 0%, rgba(16, 14, 32, 0.92) 100%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

.auto-tip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-tip-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p-purple-300) 0%, var(--p-purple-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.auto-tip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-tip-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-white);
  margin: 0;
}

.auto-tip-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.auto-tip-chevron {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Save Bottom CTA Button */
.auto-save-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--btn-radius-lg, 14px);
  background: linear-gradient(135deg, var(--p-purple-300) 0%, var(--p-pink-500) 100%);
  color: var(--p-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(236, 72, 153, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.15s ease;
  margin-top: 6px;
}

.auto-save-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
}

.auto-badge-brand {
  background: var(--auto-grad-pink);
  box-shadow: 0 4px 16px var(--auto-glow-pink);
  font-weight: 700;
  font-size: 16px;
}

.auto-channel-comment-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.auto-channel-comment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-pink-500);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
  flex-shrink: 0;
}

.auto-channel-comment-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
  transition: opacity 0.15s ease;
}

.auto-posts-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-field-hint {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}

.auto-url-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: none !important;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.auto-url-input-box:focus-within {
  background: rgba(0, 0, 0, 0.6);
  box-shadow:
    0 0 16px var(--auto-glow-blue),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.auto-url-icon {
  color: rgba(59, 130, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auto-url-transparent-input {
  background: transparent;
  border: none;
  color: var(--p-white);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.auto-url-transparent-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auto-react-option-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auto-react-option-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.auto-react-option-card.active {
  border: 1.5px solid var(--p-green-500) !important;
  background: rgba(16, 185, 129, 0.06) !important;
  box-shadow:
    0 0 18px rgba(16, 185, 129, 0.18),
    inset 0 0 12px rgba(16, 185, 129, 0.06) !important;
}

.auto-react-option-card.active .auto-radio-circle {
  border-color: var(--p-green-500) !important;
  background: var(--p-green-500) !important;
  box-shadow: inset 0 0 0 3px #0a1026 !important;
}

.auto-react-option-card:not(.active) .auto-radio-circle {
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auto-tip-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.auto-tip-close-btn:hover {
  color: var(--p-white);
  background: rgba(255, 255, 255, 0.08);
}

.auto-tip-close-btn:active {
  transform: scale(0.9);
}

/* Save Bottom CTA Buttons Container */
.auto-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding-bottom: 20px;
}

.auto-secondary-action-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--btn-radius-lg, 14px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--p-white);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auto-secondary-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--p-white);
}

.auto-secondary-action-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.04);
}

.auto-direct-subcontent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auto-direct-subcontent.collapsed {
  display: none;
}

/* Direct Textarea Wrapper */
.auto-direct-input-wrap {
  position: relative;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--field-radius, 12px);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.auto-direct-input-wrap:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.auto-direct-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--p-white);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  outline: none;
  resize: none;
  font-family: inherit;
}

.auto-direct-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Interactive Link Button Component (Direct View) ── */
.auto-btn-link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--btn-radius, 12px);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 16px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auto-btn-link-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(168, 85, 247, 0.22);
}

/* Expandable Inline Button Editor */
.auto-btn-link-editor {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    padding 0.25s ease;
  box-sizing: border-box;
}

.auto-btn-link-editor.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  pointer-events: none;
  overflow: hidden;
}

.auto-btn-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auto-btn-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}

.auto-btn-input-clean {
  background: rgba(0, 0, 0, 0.45);
  border: none !important;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--p-white);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.auto-btn-input-clean:focus {
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.auto-btn-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: none !important;
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.auto-btn-url-box:focus-within {
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.auto-btn-editor-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.auto-btn-apply-btn {
  background: linear-gradient(135deg, var(--p-purple-300) 0%, var(--p-purple-600) 100%);
  color: var(--p-white);
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.auto-btn-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
}

.auto-btn-apply-btn:active {
  transform: scale(0.96);
}

/* Button preview row inside card (centered button with right pencil) */
.auto-direct-button-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--btn-radius, 12px);
  padding: 13px 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  min-height: 48px;
  box-sizing: border-box;
}

.auto-direct-button-preview.primary-link-preview {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.16);
}

.auto-direct-button-preview:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.65);
}

.auto-direct-btn-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--p-white);
  letter-spacing: 0.03em;
  text-align: center;
}

.auto-direct-btn-edit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.auto-direct-btn-edit:hover {
  color: var(--p-white);
  background: rgba(255, 255, 255, 0.1);
}

.auto-direct-btn-edit:active {
  transform: translateY(-50%) scale(0.92);
}

.auto-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.auto-checkbox-label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auto-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auto-checkbox-label input[type='checkbox']:checked + .auto-checkbox-custom {
  background: var(--auto-grad-brand);
  border-color: var(--p-pink-500);
  color: var(--p-white);
  box-shadow: 0 0 12px var(--auto-glow-pink);
}

.auto-checkbox-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-white);
}

/* Nested Block: Сообщение при отсутствии подписки */
.auto-direct-nested-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 14px);
  margin-top: 2px;
  transition: all 0.25s ease;
}

.auto-direct-nested-block.collapsed {
  display: none;
}

.auto-nested-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* Upload Dropzone */
.auto-direct-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg, 14px);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.auto-direct-upload-zone:hover {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.auto-direct-upload-zone:active {
  transform: scale(0.985);
}

.auto-upload-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--p-purple-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auto-direct-upload-zone:hover .auto-upload-icon-circle {
  background: var(--auto-grad-brand);
  color: var(--p-white);
  box-shadow: 0 4px 12px var(--auto-glow-pink);
}

.auto-upload-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auto-upload-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-white);
}

.auto-upload-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* Add Direct Action Button */
.auto-direct-add-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--btn-radius, 12px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.auto-add-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p-pink-400);
}

.auto-direct-add-action-btn:hover {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.5);
  color: var(--p-white);
}

.auto-direct-add-action-btn:active {
  transform: scale(0.985);
}

/* ── Follow-Up Delay Picker ── */
.auto-followup-delay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 4px;
}

.auto-followup-delay-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.auto-followup-delay-label svg {
  color: var(--p-purple-200);
}

.auto-delay-dropdown-wrap {
  position: relative;
}

.auto-delay-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--p-white);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}

.auto-delay-select-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
}

.auto-delay-select-btn:active {
  transform: scale(0.96);
}

.auto-delay-chevron {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

.auto-delay-dropdown-wrap.open .auto-delay-chevron {
  transform: rotate(180deg);
}

.auto-delay-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 155px;
  background: rgba(18, 16, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-delay-dropdown-list.hidden {
  display: none !important;
}

.auto-delay-opt {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.auto-delay-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--p-white);
}

.auto-delay-opt.selected {
  background: rgba(168, 85, 247, 0.22);
  color: var(--p-purple-200);
  font-weight: 600;
}

/* Extra Follow-up Steps */
.auto-extra-followups-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
