/* ── CALENDAR FAB ── */
.cal-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 400;
  width: 52px; height: 52px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
  color: var(--text2);
}
.cal-fab:hover { transform: scale(1.08); background: var(--tiffany-bg); border-color: var(--tiffany-bd); }
.cal-fab-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--tiffany); color: #1a0a2e;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.cal-fab-badge.visible { display: flex; }

/* ── CALENDAR DRAWER ── */
.cal-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,10,35,0.55);
  z-index: 450; backdrop-filter: blur(4px);
}
.cal-drawer-overlay.open { display: block; }

.cal-drawer {
  position: fixed;
  top: 0; right: -860px; bottom: 0;
  width: min(860px, 100vw);
  background: linear-gradient(160deg, rgba(48,31,62,0.97), rgba(80,45,70,0.97));
  z-index: 460;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,0.4);
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.cal-drawer.open { right: 0; }

.cal-drawer-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cal-drawer-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--white); }
.cal-drawer-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.cal-drawer-close {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cal-drawer-close:hover { background: var(--surface2); color: var(--white); }

.cal-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 28px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ── CALENDAR GRID ── */
.cal-nav-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 16px; color: var(--text2); transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:hover { background: var(--surface2); border-color: var(--border2); color: var(--white); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--text4); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 0 9px; }
.cal-day {
  min-height: 82px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px;
  position: relative; cursor: pointer;
  transition: border-color 0.15s;
}
.cal-day:hover { border-color: var(--tiffany-bd); }
.cal-day.today { border-color: var(--tiffany); background: var(--tiffany-bg); }
.cal-day.other-month { opacity: 0.4; }
.cal-day-num { font-size: 12px; font-weight: 600; color: var(--text3); margin-bottom: 4px; }
.cal-day.today .cal-day-num { color: var(--tiffany); font-weight: 700; }
.cal-post-chip {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  margin-bottom: 3px; cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity 0.15s;
}
.cal-post-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-post-chip:hover { opacity: 0.8; }
.cal-post-chip.done { background: rgba(105,197,215,0.08); color: var(--text4); text-decoration: line-through; opacity: 0.5; border: 1px solid rgba(105,197,215,0.15); }
.cal-post-chip.pending { background: var(--surface2); color: var(--text2); }

/* ── POST ITEMS ── */
.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.post-item:hover { border-color: var(--tiffany-bd); }
.post-item.done {
  opacity: 0.6;
  border-color: rgba(105,197,215,0.2);
  background: rgba(105,197,215,0.04);
}
.post-item.done .post-item-title { text-decoration: line-through; color: var(--text3); }
.post-item-done-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  color: var(--tiffany);
  background: rgba(105,197,215,0.12);
  border: 1px solid rgba(105,197,215,0.25);
  padding: 2px 9px; border-radius: 20px;
  letter-spacing: 0.04em;
}
.post-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.post-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-item-date-badge { font-size: 11.5px; font-weight: 700; color: #1a0a2e; background: var(--tiffany); padding: 3px 10px; border-radius: 6px; }
.post-item-time-badge { font-size: 11.5px; font-weight: 600; color: var(--tiffany); background: var(--tiffany-bg); padding: 3px 10px; border-radius: 6px; border: 1px solid var(--tiffany-bd); }
.post-item-title { font-size: 14.5px; font-weight: 600; color: var(--white); margin-bottom: 6px; margin-top: 8px; }
.post-item-desc { font-size: 13px; color: var(--text3); line-height: 1.6; margin-bottom: 10px; }
.post-item-platforms { display: flex; gap: 5px; flex-wrap: wrap; }
.post-plat-badge { font-size: 11px; padding: 2px 9px; border-radius: 5px; font-weight: 600; }
.post-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-icon { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text3); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.btn-icon:hover { background: var(--tiffany-bg); border-color: var(--tiffany-bd); color: var(--tiffany); }

/* ── POST MODAL ── */
.post-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,10,35,0.65);
  z-index: 480; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.post-modal-overlay.open { display: flex; }
.post-modal {
  background: linear-gradient(150deg, rgba(48,31,62,0.97), rgba(80,45,70,0.97));
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  width: min(560px, 94vw); max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease both;
  backdrop-filter: blur(20px);
}
.post-modal-header {
  padding: 22px 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  background: rgba(48,31,62,0.95);
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.post-modal-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--white); }
.post-modal-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.post-modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0;
  background: rgba(48,31,62,0.95);
  backdrop-filter: blur(20px);
}
.modal-field-label { font-size: 11px; font-weight: 600; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px; display: block; }
.toggle-done { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text2); }
.toggle-done input { width: 16px; height: 16px; accent-color: var(--tiffany); }
