/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.5;
}

/* ── LOGIN PAGE ───────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAF8;
}

.login-card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}

.logo-accent { color: #7C5CFC; }

.logo-sub {
  font-size: 11px;
  color: #AAAAAA;
  margin-top: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.login-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-google:hover { background: #333; }

.login-pricing {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-tag {
  background: #F0EAFF;
  color: #7C5CFC;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 50px;
}

.price-desc {
  font-size: 12px;
  color: #888;
}

.login-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.platform-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
}

/* ── APP LAYOUT ───────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: #F7F7F5;
  border-right: 1px solid #EBEBEB;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  gap: 0.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.2s ease, min-width 0.2s ease, padding 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

/* Drag handle */
.sidebar-drag-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
  background: transparent;
  transition: background 0.15s;
}
.sidebar-drag-handle:hover,
.sidebar-drag-handle.dragging { background: #7C5CFC33; }

/* Collapse toggle button */
.sidebar-collapse-btn {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #EBEBEB;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: color 0.12s, background 0.12s;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  padding: 0;
}
.sidebar-collapse-btn:hover { background: #F0EAFF; color: #7C5CFC; border-color: #7C5CFC; }

/* Collapsed state */
.sidebar.collapsed {
  width: 56px !important;
  min-width: 56px !important;
  padding: 1.5rem 0.5rem;
}
.sidebar.collapsed .sidebar-collapse-btn { right: -12px; }
.sidebar.collapsed .logo-sub,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-accounts,
.sidebar.collapsed .credits-label,
.sidebar.collapsed .credits-bar-wrap,
.sidebar.collapsed .credits-numbers,
.sidebar.collapsed .btn-topup,
.sidebar.collapsed .profile-info { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0.6rem; gap: 0; }
.sidebar.collapsed .logo-text { font-size: 14px; }
.sidebar.collapsed .sidebar-credits { padding: 0.5rem; text-align: center; }
.sidebar.collapsed .sidebar-profile { justify-content: center; padding: 0.5rem 0 0; }
.sidebar.collapsed .profile-avatar { margin: 0 auto; }

.sidebar-logo {
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid #EBEBEB;
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: #666;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s;
  cursor: pointer;
}
.nav-item:hover { background: #EEEEEA; color: #1A1A1A; }
.nav-item.active { background: #1A1A1A; color: #fff; }

.nav-icon { font-size: 14px; }

/* Credits bar */
.sidebar-credits {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  padding: 0.9rem;
  margin-top: auto;
}

.credits-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.credits-bar-wrap {
  background: #EBEBEB;
  border-radius: 50px;
  height: 6px;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.credits-bar {
  height: 100%;
  background: linear-gradient(90deg, #7C5CFC, #B8A0FF);
  border-radius: 50px;
  transition: width 0.3s;
}

.credits-numbers {
  font-size: 12px;
  color: #888;
  margin-bottom: 0.75rem;
}

.credits-val {
  font-weight: 700;
  color: #1A1A1A;
  font-size: 14px;
}

.btn-topup {
  width: 100%;
  padding: 0.5rem;
  background: #fff;
  border: 1.5px solid #EBEBEB;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1A1A1A;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.12s;
}
.btn-topup:hover { border-color: #7C5CFC; color: #7C5CFC; }

/* Profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.75rem 0.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #EBEBEB;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7C5CFC;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
}

.profile-plan {
  font-size: 11px;
  color: #888;
}

/* ── MAIN CONTENT ─────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}

.page { display: none; padding: 2rem; }
.page.active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-actions { display: flex; gap: 8px; }

/* ── CREATE GRID ──────────────────────────────────────────────────── */
.create-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
}

/* ── CARDS ────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-sublabel {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #AAAAAA;
}

/* Caption */
.caption-input {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid #EBEBEB;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s;
  line-height: 1.6;
}
.caption-input:focus { border-color: #7C5CFC; }
.caption-input::placeholder { color: #BBBBBB; }

.caption-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.model-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.model-select {
  border: 1.5px solid #EBEBEB;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.model-select:focus { border-color: #7C5CFC; }

.generate-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-generate:hover { background: #333; }

.btn-generate.btn-secondary {
  background: #fff;
  color: #1A1A1A;
  border: 1.5px solid #EBEBEB;
}
.btn-generate.btn-secondary:hover { border-color: #1A1A1A; }

.btn-generate.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.credit-badge {
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.btn-secondary .credit-badge {
  background: #F0F0F0;
  color: #666;
}

/* Media */
.media-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  background: #F7F7F5;
  border-radius: 10px;
  padding: 3px;
}

.media-tab {
  flex: 1;
  padding: 0.4rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.12s;
}
.media-tab.active { background: #fff; color: #1A1A1A; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.media-prompt {
  width: 100%;
  border: 1.5px solid #EBEBEB;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.12s;
}
.media-prompt:focus { border-color: #7C5CFC; }
.media-prompt::placeholder { color: #BBBBBB; }

.media-prompt-area {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.upload-row {
  margin: 0.6rem 0;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background: #F7F7F5;
  border: 1.5px dashed #CCCCCC;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.12s;
}
.upload-btn:hover { border-color: #7C5CFC; color: #7C5CFC; background: #F5F0FF; }

.media-tier-row {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
}

.tier-option {
  flex: 1;
  cursor: pointer;
}
.tier-option input { display: none; }

.tier-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: border-color 0.12s;
  gap: 6px;
}
.tier-option input:checked + .tier-pill { border-color: #1A1A1A; }

.credit-badge-dark {
  background: rgba(0,0,0,0.12);
  padding: 1px 6px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
}

.media-preview {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #EBEBEB;
}
.media-preview img { width: 100%; display: block; }

/* Platforms */
.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-item {
  cursor: pointer;
}
.platform-item input { display: none; }

.platform-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg);
  color: var(--c);
  border: 2px solid transparent;
  transition: border-color 0.12s;
  user-select: none;
}
.platform-item input:checked + .platform-pill { border-color: var(--c); }

/* Schedule */
.schedule-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.schedule-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-field label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.schedule-input {
  border: 1.5px solid #EBEBEB;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.12s;
}
.schedule-input:focus { border-color: #7C5CFC; }

.pill-green-btn {
  padding: 0.5rem 1rem;
  background: #D4F5E2;
  color: #1A7A45;
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.12s;
}
.pill-green-btn:hover { background: #B8F0D0; }

.btn-schedule {
  width: 100%;
  padding: 0.85rem;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.12s;
  letter-spacing: -0.2px;
}
.btn-schedule:hover { background: #333; }

/* ── RIGHT PANEL ──────────────────────────────────────────────────── */
.right-panel { position: sticky; top: 0; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-box {
  background: #F7F7F5;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1A1A1A;
}

.stat-lbl {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Queue */
.queue-list { display: flex; flex-direction: column; gap: 0.75rem; }

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.queue-text {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-meta {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

/* Models badges */
.models-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── PILLS ────────────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.pill-yellow { background: #FFF3CC; color: #B07D00; }
.pill-purple { background: #F0EAFF; color: #7C5CFC; }
.pill-green  { background: #D4F5E2; color: #1A7A45; }
.pill-orange { background: #FFF0E0; color: #C05E00; }
.pill-pink   { background: #FFE8F5; color: #B0006A; }

/* ── CALENDAR ─────────────────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.5rem 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  background: #F7F7F5;
  position: relative;
  gap: 3px;
  cursor: pointer;
  transition: background 0.12s;
}
.cal-day:hover { background: #EEEEEA; }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.today { background: #1A1A1A; color: #fff; }
.cal-day.today .cal-dot { background: #fff !important; }

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

/* ── MODAL ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal-close {
  background: #F0F0F0;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 1.5rem;
}

.topup-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.topup-option {
  cursor: pointer;
  position: relative;
}
.topup-option input { display: none; }

.topup-card-inner {
  border: 2px solid #EBEBEB;
  border-radius: 14px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.12s;
  position: relative;
}
.topup-option input:checked + .topup-card-inner { border-color: #1A1A1A; }
.topup-option.featured .topup-card-inner { border-color: #7C5CFC; background: #FAFAFF; }

.topup-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #7C5CFC;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.topup-price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.topup-credits {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  margin-top: 2px;
}

.topup-rate {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ── SIDEBAR ACCOUNTS ─────────────────────────────────────────────── */
.sidebar-accounts {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.75rem;
}

.accounts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.accounts-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

.accounts-manage-link {
  font-size: 11px;
  color: #7C5CFC;
  font-weight: 600;
  text-decoration: none;
}
.accounts-manage-link:hover { text-decoration: underline; }

.accounts-status-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acct-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.acct-name {
  font-size: 12px;
  color: #444;
  flex: 1;
}

.acct-status {
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acct-on  { background: #D4F5E2; color: #1A7A45; }
.acct-off { background: #F0F0F0; color: #999; }

.acct-loading, .acct-none {
  font-size: 12px;
  color: #AAAAAA;
}

/* ── ACCOUNTS PAGE ────────────────────────────────────────────────── */
.accounts-page-desc {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.accounts-connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.acct-connect-card {
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.acct-connect-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.acct-connect-card.connected { border-color: #C8F0DA; }

.acc-card-top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
}

.acc-platform-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.acc-connected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #D4F5E2;
  color: #1A7A45;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}

.acc-card-body {
  padding: 1rem;
}

.acc-platform-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.acc-username {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}

.acc-displayname {
  font-size: 12px;
  color: #AAA;
  margin-bottom: 0.75rem;
}

.btn-connect-platform {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: var(--c, #1A1A1A);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.12s;
}
.btn-connect-platform:hover { opacity: 0.85; }

.btn-disconnect {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #fff;
  color: #888;
  border: 1.5px solid #EBEBEB;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
}
.btn-disconnect:hover { border-color: #D93025; color: #D93025; }

/* ── HISTORY PAGE ─────────────────────────────────────────────────── */
.history-tabs-bar {
  display: flex;
  gap: 4px;
  background: #F7F7F5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}

.htab {
  padding: 0.45rem 1.25rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.12s;
}
.htab.active { background: #fff; color: #1A1A1A; box-shadow: 0 1px 4px rgba(0,0,0,0.08); font-weight: 600; }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0;
  border-bottom: 1px solid #F5F5F5;
}
.history-item:last-child { border-bottom: none; }

.hi-action {
  flex-shrink: 0;
  font-size: 11.5px;
  white-space: nowrap;
}

.hi-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hi-model, .hi-content {
  font-size: 12.5px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hi-date {
  font-size: 11px;
  color: #AAA;
}

.hi-credits {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

/* ── EMPTY STATE ──────────────────────────────────────────────────── */
.empty-state {
  font-size: 13px;
  color: #AAAAAA;
  text-align: center;
  padding: 1.5rem 0;
}

/* ── PLATFORM TABS (Create Post) ─────────────────────────────────── */
.platform-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #F7F7F5;
  border-radius: 14px;
}

.platform-tabs-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  white-space: nowrap;
}

.platform-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.ptab {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: #fff;
  border: 2px solid #E0E0E0;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.ptab:hover { border-color: var(--pc); color: var(--pc); }
.ptab.active { background: var(--pc); border-color: var(--pc); color: #fff; }

.ptab-hint {
  font-size: 11px;
  color: #BBB;
  white-space: nowrap;
}

/* ── TONE SELECTOR ────────────────────────────────────────────────── */
.tone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.tone-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  white-space: nowrap;
}

.tone-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.tone-btn {
  padding: 0.3rem 0.85rem;
  background: #F7F7F5;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.12s;
}
.tone-btn:hover { background: #EEEEEA; color: #1A1A1A; }
.tone-btn.active { background: #F0EAFF; border-color: #7C5CFC; color: #7C5CFC; }

/* ── GENERATED OUTPUT CARD ────────────────────────────────────────── */
.card-label-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #BBB;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.12s;
  font-weight: 600;
}
.card-label-btn:hover { color: #D93025; }

.generated-content-editable {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid #EBEBEB;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.6;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  transition: border-color 0.12s;
  margin-bottom: 0.85rem;
}
.generated-content-editable:focus { border-color: #7C5CFC; }

/* ── POST ACTION BUTTONS ──────────────────────────────────────────── */
.post-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.btn-autopost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  background: #1A7A45;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-autopost:hover { background: #156138; }

.btn-schedule-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  background: #fff;
  color: #1A1A1A;
  border: 2px solid #EBEBEB;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
  white-space: nowrap;
}
.btn-schedule-open:hover { border-color: #1A1A1A; }
.btn-schedule-open.open { border-color: #7C5CFC; color: #7C5CFC; background: #F5F0FF; }

.btn-copy-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.1rem;
  background: #fff;
  color: #666;
  border: 2px solid #EBEBEB;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.12s;
  white-space: nowrap;
}
.btn-copy-content:hover { border-color: #1A1A1A; color: #1A1A1A; }

/* ── INLINE SCHEDULE PANEL ────────────────────────────────────────── */
.schedule-inline-panel {
  background: #F7F7F5;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.85rem;
}

/* ── SCROLLBAR ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #DDD; border-radius: 50px; }
