/* ============================================================
   SMM ENGINE — MODERN ENTERPRISE SAAS DESIGN SYSTEM
   ============================================================ */

:root {
  /* Color Palette */
  --bg-main: #090d16;
  --bg-sidebar: #0d121f;
  --bg-card: #131b2e;
  --bg-card-hover: #19233c;
  --bg-input: #0a0f1c;
  --bg-elevated: #1e293b;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(99, 102, 241, 0.5);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Accent Gradients & Colors */
  --accent-primary: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-publish: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  /* Platform Colors */
  --color-fb: #1877f2;
  --color-ig: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --color-yt: #ff0000;
  --color-tt: linear-gradient(135deg, #00f2fe 0%, #fe2c55 100%);
  --color-li: #0a66c2;
  --color-x: #000000;

  /* Typography */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --sidebar-width: 280px;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(168, 85, 247, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 { font-size: 1.95rem; line-height: 1.25; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #25334d;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #384d73;
}

/* ============================================================
   App Layout & Sidebar
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}

.sidebar-brand .mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45);
}

.sidebar-brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-sidebar-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sidebar-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.55);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.sidebar-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 8px;
}

.client-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 380px);
  overflow-y: auto;
}

.client-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.client-nav li a:hover, .client-nav li.active a {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.client-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-nav li.active .client-nav-avatar {
  background: var(--accent-primary);
  color: #fff;
}

.client-nav-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-client-hint {
  padding: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.sidebar-add-form {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: auto;
  transition: border-color 0.2s;
}

.sidebar-add-form:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.sidebar-add-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
}

.sidebar-add-form button {
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.sidebar-add-form button:hover {
  transform: scale(1.15);
}

.sidebar-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-footer .ghost {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.sidebar-footer .ghost:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--border-medium);
}

/* ============================================================
   Main Content Area
   ============================================================ */
.main {
  padding: 36px 44px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Hero Banner */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(19, 27, 46, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.55);
}

/* KPI Stat Cards */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

.stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); line-height: 1.1; color: #fff; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; font-weight: 600; }

/* Cards & Generic Sections */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.section-title-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-meta, .section-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Client Workspace Cards */
.client-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.client-grid-card {
  display: block;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.client-grid-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.client-grid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.client-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.client-grid-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform 0.2s, color 0.2s;
}

.client-grid-card:hover .client-grid-arrow {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.client-grid-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.client-grid-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table th {
  padding: 14px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
}

.data-table td {
  padding: 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.platform-account-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-facebook { background: var(--color-fb); color: #fff; }
.platform-instagram { background: var(--color-ig); color: #fff; }
.platform-youtube { background: var(--color-yt); color: #fff; }
.platform-tiktok { background: #000000; border: 1px solid var(--border-medium); color: #00f2fe; }
.platform-linkedin { background: var(--color-li); color: #fff; }
.platform-x { background: #000000; border: 1px solid var(--border-medium); color: #fff; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-published { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.status-published .status-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }

.status-scheduled { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.status-scheduled .status-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.status-processing { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.status-processing .status-dot { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }

.status-failed { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.status-failed .status-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.badge-media {
  background: var(--bg-elevated);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.btn-table-action {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-table-action:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-delete:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

/* ============================================================
   Universal 1-Go Composer Styling
   ============================================================ */
.composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.composer-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.composer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

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

.card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.quick-select-buttons {
  display: flex;
  gap: 8px;
}

.btn-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-chip:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Account Selection Cards */
.account-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.account-card-label {
  cursor: pointer;
}

.account-card-label input {
  display: none;
}

.account-card-inner {
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.account-card-label input:checked + .account-card-inner {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.14);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.platform-icon-pill {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-platform-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.account-check-indicator {
  opacity: 0;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1rem;
  transition: opacity 0.15s, transform 0.15s;
  transform: scale(0.8);
}

.account-card-label input:checked + .account-card-inner .account-check-indicator {
  opacity: 1;
  transform: scale(1);
}

.account-handle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-client-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Post Format Switch */
.post-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.post-type-option input { display: none; }

.post-type-box {
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.post-type-option input:checked + .post-type-box {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.14);
}

.type-icon { font-size: 1.8rem; }
.post-type-box strong { display: block; font-size: 0.98rem; color: #fff; }
.post-type-box small { font-size: 0.78rem; color: var(--text-secondary); }

/* Media Drop Zone */
.media-drop-zone {
  position: relative;
  background: var(--bg-input);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.media-drop-zone:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.media-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.highlight-text { color: var(--accent-primary); font-weight: 700; text-decoration: underline; }
.file-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.btn-remove-media {
  background: var(--accent-rose);
  border: none;
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

/* Fields, Inputs, and Textarea */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.badge-hint { font-size: 0.72rem; font-weight: normal; color: var(--accent-primary); background: rgba(99, 102, 241, 0.15); padding: 2px 8px; border-radius: var(--radius-full); }

.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

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

.hashtag-helper { display: flex; gap: 6px; flex-wrap: wrap; }

.tag-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-chip:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* AI Tag Generator Widget */
.ai-tag-generator-card {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
}

.ai-tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tag-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #c4b5fd;
}

.btn-ai-generate {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.btn-ai-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.niche-chips-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.niche-chip-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.niche-chip-btn:hover, .niche-chip-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  color: #fff;
}

.ai-suggestions-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 36px;
}

.ai-tag-pill {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-tag-pill:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: scale(1.04);
}

.ai-tag-pill.tag-high-reach {
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
}

.ai-tag-pill.tag-high-reach:hover {
  background: #f43f5e;
  color: #fff;
}

.ai-tag-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-insert-all-tags {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-insert-all-tags:hover {
  background: #10b981;
  color: #fff;
}

/* Schedule Preset Shortcuts */
.schedule-presets-container {
  margin-top: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.schedule-presets-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.schedule-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.preset-chip-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.preset-chip-btn span.preset-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: normal;
}

.preset-chip-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}

.preset-chip-btn.best-time {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.preset-chip-btn.best-time:hover {
  background: #f59e0b;
  color: #000;
}

.char-counters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.counter-item { font-size: 0.78rem; display: flex; flex-direction: column; }
.counter-platform { color: var(--text-muted); font-weight: 600; }
.counter-val { font-weight: 700; color: var(--accent-emerald); }
.counter-overflow { color: var(--accent-rose); font-weight: 800; }

/* Action Buttons */
.composer-submit-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.btn-publish-now {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-publish);
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-publish-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.6);
}

.btn-schedule-later {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #334155;
  border-color: var(--border-medium);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--accent-purple);
  transform: translateY(-1px);
}

.btn-sm-action {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm-action:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ============================================================
   Live Multi-Platform Preview Sticky Pane & Phone Mockups
   ============================================================ */
.preview-sticky-wrapper {
  position: sticky;
  top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.preview-header-bar {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.preview-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.preview-tab {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.preview-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.mockup-container {
  display: none;
}

.mockup-container.active {
  display: block;
}

/* 3D Phone Frame */
.phone-frame {
  max-width: 330px;
  margin: 0 auto;
  border: 6px solid #1e293b;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.mockup-card {
  background: #fff;
  color: #111;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13.5px;
}

.ig-card { background: #000; color: #fff; }
.fb-card { background: #fff; color: #1c1e21; border-radius: 12px; }
.in-card { background: #fff; color: #000; border-radius: 12px; }
.yt-card { background: #0f0f0f; color: #fff; border-radius: 12px; }
.x-card { background: #000; color: #e7e9ea; border: 1px solid #2f3336; }

.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.mockup-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.ig-avatar { background: var(--color-ig); }
.fb-avatar { background: var(--color-fb); }
.in-avatar { background: var(--color-li); border-radius: 6px; }
.yt-avatar { background: var(--color-yt); }
.x-avatar { background: #000; border: 1px solid var(--border-medium); }

.mockup-header-info { display: flex; flex-direction: column; flex: 1; }
.mockup-author { font-weight: 700; font-size: 13.5px; }
.mockup-meta { font-size: 11px; opacity: 0.7; }

.mockup-media-holder {
  width: 100%;
  height: 250px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-placeholder-text {
  color: #64748b;
  font-size: 12px;
}

.mockup-actions-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
}

.mockup-caption-box {
  padding: 0 16px 16px;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}

/* TikTok Mockup */
.tiktok-phone {
  height: 490px;
  position: relative;
  background: #000;
}

.tiktok-card {
  height: 100%;
  background: #000;
  position: relative;
}

.tiktok-media-holder {
  height: 100%;
}

.tiktok-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.tiktok-sidebar-actions {
  position: absolute;
  right: 10px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  color: #fff;
  font-size: 11px;
}

.tt-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}

.tiktok-handle { font-weight: 800; font-size: 13.5px; color: #fff; margin-bottom: 4px; }
.tiktok-caption { font-size: 12px; color: #eee; margin-bottom: 8px; }
.tiktok-sound { font-size: 11px; color: #aaa; }

/* YouTube Mockup */
.yt-info-box { padding: 14px; }
.yt-video-title { font-size: 14.5px; margin-bottom: 8px; color: #fff; font-weight: 700; }
.yt-channel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.btn-yt-sub { margin-left: auto; background: #fff; color: #000; border: none; padding: 5px 12px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 700; }
.yt-desc { font-size: 12px; color: #aaa; }

/* Client Workspace Header */
.client-header-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(19, 27, 46, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.client-header-left { display: flex; align-items: center; gap: 24px; }
.client-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}

.account-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.account-item-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.account-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.account-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-item-info { flex: 1; }
.account-item-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

.account-item-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.btn-chip-action {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-chip-action:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-danger-chip:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

/* Connect Chips */
.connect-platforms-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.connect-label { font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; color: var(--text-secondary); }

.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chip-facebook { background: var(--color-fb); }
.chip-instagram { background: var(--color-ig); }
.chip-youtube { background: var(--color-yt); }
.chip-tiktok { background: #000; border: 1px solid var(--border-medium); color: #00f2fe; }
.chip-linkedin { background: var(--color-li); }
.chip-x { background: #000; border: 1px solid var(--border-medium); }

/* Manual Account Add Box */
.manual-account-box {
  background: var(--bg-input);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.manual-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   Login / Auth View Styling
   ============================================================ */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.auth-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.glow-1 {
  background: #6366f1;
  top: -100px;
  left: -100px;
}

.glow-2 {
  background: #ec4899;
  bottom: -100px;
  right: -100px;
}

.auth-shell {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.auth-card {
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

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

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.auth-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 6px;
}

.auth-error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 44px !important;
}

.btn-auth-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.6);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty States */
.empty-state-card, .empty-composer-card, .empty-table-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-icon { font-size: 2.8rem; margin-bottom: 14px; }

/* ============================================================
   Direct Connect (Zero Developer App) Platform Grid & Modal
   ============================================================ */
.direct-connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.direct-platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
}

.direct-platform-card:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.platform-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.direct-platform-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.direct-platform-info strong {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.2;
}

.direct-platform-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.direct-add-plus {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}

.direct-platform-card:hover .direct-add-plus {
  background: var(--accent-primary);
  color: #fff;
}

.direct-modal-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.25);
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.direct-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-close-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-close-modal:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #fff;
}

/* Direct Token & ID Landing Links Hub */
.direct-landing-links-wrap {
  margin: 16px 0;
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
}

.direct-landing-links-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.direct-landing-links-title strong {
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.direct-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.direct-link-card {
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.direct-link-card:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.direct-link-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.direct-link-card-header strong {
  font-size: 0.88rem;
  color: #fff;
}

.direct-link-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.direct-link-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.direct-tip-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #fbbf24;
  line-height: 1.5;
}

/* ============================================================
   Visual Content Calendar Styling
   ============================================================ */
.calendar-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.calendar-title-group h1 {
  font-size: 1.8rem;
  margin-top: 4px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.month-nav-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-nav-arrow {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.15s;
}

.btn-nav-arrow:hover {
  background: var(--accent-primary);
  color: #fff;
}

.btn-nav-today {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.15s;
}

.btn-nav-today:hover {
  background: var(--bg-elevated);
}

.calendar-select-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  cursor: pointer;
}

.calendar-select-filter:focus {
  border-color: var(--accent-primary);
}

/* Best Time Banner */
.best-time-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(19, 27, 46, 0.5) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.best-time-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.pulse-icon {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.best-time-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.time-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

.time-chip.chip-ig { border-color: rgba(225, 48, 108, 0.4); color: #f472b6; }
.time-chip.chip-li { border-color: rgba(10, 102, 194, 0.4); color: #60a5fa; }
.time-chip.chip-yt { border-color: rgba(255, 0, 0, 0.4); color: #f87171; }

/* Calendar Container & Grid */
.calendar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calendar-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-subtle);
}

.weekday-col {
  padding: 14px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.weekend-col {
  color: #a5b4fc;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(130px, auto);
}

.calendar-day-cell {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px;
  position: relative;
  transition: background 0.15s ease;
  display: flex;
  flex-direction: column;
}

.calendar-day-cell:nth-child(7n) {
  border-right: none;
}

.calendar-day-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cell-disabled {
  background: rgba(9, 13, 22, 0.6);
  opacity: 0.4;
}

.cell-today {
  background: rgba(99, 102, 241, 0.06);
}

.day-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.today-badge {
  background: var(--gradient-brand);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.btn-quick-add {
  opacity: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: opacity 0.15s, background 0.15s;
}

.calendar-day-cell:hover .btn-quick-add {
  opacity: 1;
}

.btn-quick-add:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* Post Pills in Calendar Day */
.day-posts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 120px;
}

.calendar-post-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 0.75rem;
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.calendar-post-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
}

.post-pill-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.platform-dot-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-pill-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.post-pill-caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 500;
  flex: 1;
}

.status-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.post-status-published .status-indicator-dot { background: var(--accent-emerald); box-shadow: 0 0 4px var(--accent-emerald); }
.post-status-scheduled .status-indicator-dot { background: var(--accent-amber); box-shadow: 0 0 4px var(--accent-amber); }
.post-status-failed .status-indicator-dot { background: var(--accent-rose); box-shadow: 0 0 4px var(--accent-rose); }

/* Responsive adjustments */
@media (max-width: 1120px) {
  .composer-layout {
    grid-template-columns: 1fr;
  }
  .preview-sticky-wrapper {
    position: static;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .calendar-days-grid {
    grid-auto-rows: minmax(100px, auto);
  }
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 24px 18px;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .calendar-weekdays-header {
    font-size: 0.65rem;
  }
  .calendar-days-grid {
    grid-auto-rows: minmax(80px, auto);
  }
  .post-pill-caption {
    display: none;
  }
}
