/**
   * FilterCraft PRO — Filter Subscription Styles
   * @package FilterCraft
   */

  /* ── Subscribe button ───────────────────────────────── */
  .fc-subscribe-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    margin-top: 6px;
    background: transparent;
    border: 1px dashed var(--fc-border, #e5e7eb);
    border-radius: var(--fc-radius, 6px);
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  .fc-subscribe-btn:hover {
    background: #ecfdf5;
    border-color: #10b981;
  }
  .fc-subscribe-btn svg { flex-shrink: 0; }

  /* Already subscribed state */
  .fc-subscribe-btn.fc-subscribed {
    color: #6b7280;
    border-style: solid;
    cursor: default;
    background: #f9fafb;
  }
  .fc-subscribe-btn.fc-subscribed:hover {
    background: #f9fafb;
    border-color: var(--fc-border, #e5e7eb);
  }

  /* ── Dialog overlay ─────────────────────────────────── */
  .fc-sub-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
  }
  .fc-sub-dialog-overlay.fc-open { display: flex; }

  .fc-sub-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 380px;
    max-width: 94vw;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    position: relative;
  }

  .fc-sub-dialog__icon {
    width: 44px;
    height: 44px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #10b981;
  }

  .fc-sub-dialog__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--fc-text, #111827);
  }

  .fc-sub-dialog__desc {
    font-size: 0.83rem;
    color: var(--fc-text-muted, #6b7280);
    margin: 0 0 18px;
    line-height: 1.5;
  }

  .fc-sub-dialog__close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    font-size: 1.2rem;
    color: var(--fc-text-muted, #9ca3af);
    cursor: pointer; padding: 4px;
    line-height: 1; border-radius: 4px;
  }
  .fc-sub-dialog__close:hover { color: var(--fc-text, #111827); background: #f3f4f6; }

  /* Form fields */
  .fc-sub-dialog__field { margin-bottom: 14px; }
  .fc-sub-dialog__label {
    display: block;
    font-size: 0.8rem; font-weight: 600;
    color: var(--fc-text-muted, #6b7280);
    margin-bottom: 5px;
  }
  .fc-sub-dialog__input,
  .fc-sub-dialog__select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--fc-border, #e5e7eb);
    border-radius: var(--fc-radius, 6px);
    font-size: 0.9rem; box-sizing: border-box;
    color: var(--fc-text, #111827);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .fc-sub-dialog__input:focus,
  .fc-sub-dialog__select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,.12);
  }

  /* Logged-in email display */
  .fc-sub-dialog__email-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f9fafb;
    border: 1px solid var(--fc-border, #e5e7eb);
    border-radius: var(--fc-radius, 6px);
    font-size: 0.875rem;
    color: var(--fc-text, #374151);
  }
  .fc-sub-dialog__email-display svg { color: #10b981; flex-shrink: 0; }

  .fc-sub-dialog__actions {
    display: flex; gap: 8px;
    margin-top: 20px; justify-content: flex-end;
  }

  .fc-sub-dialog__btn {
    padding: 9px 20px;
    border-radius: var(--fc-radius, 6px);
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: background .15s, opacity .15s;
  }
  .fc-sub-dialog__btn--cancel {
    background: var(--fc-bg-alt, #f3f4f6);
    color: var(--fc-text, #111827);
  }
  .fc-sub-dialog__btn--cancel:hover { background: #e5e7eb; }
  .fc-sub-dialog__btn--confirm {
    background: #10b981; color: #fff;
  }
  .fc-sub-dialog__btn--confirm:hover { background: #059669; }
  .fc-sub-dialog__btn--confirm:disabled { opacity: .55; cursor: not-allowed; }

  /* Error message */
  .fc-sub-dialog__error {
    font-size: 0.8rem; color: #ef4444;
    margin-top: 6px; display: none;
  }
  .fc-sub-dialog__error.fc-visible { display: block; }

  /* ── Subscriptions panel ────────────────────────────── */
  .fc-subscriptions-panel {
    margin-top: 10px;
    border-top: 1px solid var(--fc-border, #e5e7eb);
    padding-top: 12px;
  }

  .fc-subscriptions-panel__header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 8px;
  }

  .fc-subscriptions-panel__title {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--fc-text-muted, #9ca3af);
  }

  .fc-sub-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--fc-radius, 6px);
    margin-bottom: 4px;
  }

  .fc-sub-item__info { flex: 1; min-width: 0; }
  .fc-sub-item__email {
    font-size: 0.8rem; color: var(--fc-text, #374151);
    font-weight: 500; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .fc-sub-item__freq {
    font-size: 0.72rem; color: #6b7280; margin-top: 1px;
  }

  .fc-sub-item__unsub {
    background: none; border: none; cursor: pointer;
    color: #9ca3af; padding: 2px 5px;
    font-size: 0.85rem; border-radius: 4px; flex-shrink: 0;
    transition: color .15s, background .15s;
  }
  .fc-sub-item__unsub:hover { color: #ef4444; background: #fef2f2; }

  /* ── Success toast ──────────────────────────────────── */
  .fc-sub-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #111827; color: #fff;
    padding: 12px 22px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 999999;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
    opacity: 0;
    pointer-events: none;
  }
  .fc-sub-toast.fc-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  