/* ================================================
   Voyage â€” Personal Productivity Workspace
   Theme: Helios Dark Obsidian & Glowing Mauve Pink
   Matching Helios Investments Luxury Dark Dashboard Reference
   ================================================ */

:root {
  --bg: #09080c;
  --bg-dark: #060508;
  --sidebar-bg: rgba(20, 17, 24, 0.92);
  --surface: rgba(24, 21, 29, 0.90);
  --surface-2: rgba(34, 29, 42, 0.72);
  --surface-raised: #201c28;
  --surface-card: #18151f;
  --surface-card-hover: #211c2a;
  --surface-dark: #0b090f;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-mauve: rgba(226, 165, 190, 0.16);
  --border-highlight: rgba(226, 165, 190, 0.45);
  --border-active: rgba(235, 175, 200, 0.65);
  
  --text-1: #ffffff;
  --text-2: #a5a2b0;
  --text-3: #6b6878;
  --text-dim: #4d4a59;
  
  /* Mauve / Dusty Pink Helios Accent Palette */
  --mauve: #e2a5be;
  --mauve-light: #f7d8e6;
  --mauve-dim: #c57b9c;
  --mauve-dark: #4a2137;
  --mauve-soft: rgba(226, 165, 190, 0.16);
  --mauve-glow: rgba(226, 165, 190, 0.38);
  
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.12);
  --blue-dim: #0284c7;
  
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  
  --green: #2ed573;
  --green-soft: rgba(46, 213, 115, 0.14);
  
  --violet: #e2a5be;
  --violet-soft: rgba(226, 165, 190, 0.16);
  
  --gradient-accent: linear-gradient(135deg, #e8a9c3 0%, #b86b90 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(226, 165, 190, 0.42) 0%, rgba(160, 80, 115, 0.26) 100%);
  --gradient-card-glow: radial-gradient(ellipse at 50% 120%, rgba(226, 165, 190, 0.38) 0%, rgba(160, 80, 115, 0.12) 50%, transparent 80%);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

/* Custom Scrollbars to blend seamlessly with dark website background */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(226, 165, 190, 0.26);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 165, 190, 0.48);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Main Website Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #000000;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 10px;
  border: 4px solid #000000;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #777777;
  border: 4px solid #000000;
  background-clip: padding-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(ellipse 55% 70% at 98% 45%, rgba(215, 125, 165, 0.15) 0%, rgba(140, 55, 95, 0.05) 42%, transparent 70%),
    radial-gradient(ellipse 50% 65% at 2% 50%, rgba(205, 115, 155, 0.12) 0%, rgba(120, 45, 80, 0.05) 38%, transparent 65%),
    radial-gradient(circle at 75% 8%, rgba(225, 145, 180, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 25% 92%, rgba(185, 95, 135, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(32, 24, 38, 0.4) 0%, transparent 85%),
    linear-gradient(180deg, #0a080d 0%, #060508 50%, #000000 100%);
  background-attachment: fixed;
  color: var(--text-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(226, 165, 190, 0.35);
  color: #ffffff;
}

.grad-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}



/* ---------- Layout ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar (Floating Expandable Capsule Pill Dock) ---------- */
.sidebar {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 62px;
  background: rgba(20, 17, 24, 0.92);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 16px 9px;
  z-index: 500;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.28s ease, border-color 0.2s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.sidebar:hover {
  width: 228px;
  border-radius: 28px;
  border-color: rgba(226, 165, 190, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 28px rgba(226, 165, 190, 0.15);
}

/* Top Brand Logo & Name */
.dock-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 5px 12px 5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.dock-brand-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.dock-brand-icon img,
.dock-brand-icon .brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(226, 165, 190, 0.35));
}

.dock-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.sidebar:hover .dock-brand-name {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.05s;
  pointer-events: auto;
}

/* Navigation List */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  width: 100%;
  padding: 0;
  justify-content: flex-start;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  border: 1px solid transparent;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: currentColor;
  transition: stroke 0.18s ease;
  margin: 0 2px;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(226, 165, 190, 0.1);
  border-color: rgba(226, 165, 190, 0.15);
}

/* Active Nav Item: Mauve Glowing Capsule Tile (Helios Investments style) */
.nav-item.active {
  background: linear-gradient(90deg, rgba(226, 165, 190, 0.45) 0%, rgba(160, 80, 115, 0.22) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(235, 175, 200, 0.55) !important;
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(226, 165, 190, 0.3);
}

.nav-item.active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.2;
}

.nav-item.active:hover {
  background: linear-gradient(90deg, rgba(235, 175, 200, 0.52) 0%, rgba(170, 90, 125, 0.3) 100%) !important;
}

/* Nav Item Labels on Expand */
.nav-label {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.nav-item.active .nav-label {
  color: #ffffff;
  font-weight: 600;
}

.sidebar:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.04s;
  pointer-events: auto;
}

/* Bottom Account Area */
.dock-bottom {
  width: 100%;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 5px;
  border-radius: 14px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.18s ease;
}

.account-item:hover {
  background: rgba(226, 165, 190, 0.08);
}

.account-item .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2a5be, #9c5075);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  flex: 0 0 34px;
  box-shadow: 0 2px 10px rgba(226, 165, 190, 0.35);
}

.account-text {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  overflow: hidden;
  flex: 1;
  pointer-events: none;
}

.sidebar:hover .account-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.04s;
  pointer-events: auto;
}

.account-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 0;
  max-height: 0;
  padding: 0 12px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.12);
  color: #ff4d6d;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, max-height 0.22s ease, height 0.22s ease, padding 0.2s ease, margin 0.2s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dock-logout-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: #ff4d6d;
  transition: stroke 0.15s ease;
}

.sidebar:hover .dock-logout-btn {
  opacity: 1;
  height: 38px;
  max-height: 38px;
  padding: 0 12px;
  margin-top: 6px;
  pointer-events: auto;
}

.dock-logout-btn:hover {
  background: #ff4d6d;
  color: #ffffff;
  border-color: #ff4d6d;
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
}

.dock-logout-btn:hover svg {
  stroke: #ffffff;
}

/* ---------- Main Layout ---------- */
.main {
  margin-left: 92px;
  flex: 1;
  min-width: 0;
  padding: 22px 34px 60px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2a5be, #9c5075);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  flex: 0 0 auto;
  box-shadow: 0 4px 16px rgba(226, 165, 190, 0.35);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 9999px;
  padding: 10px 18px;
  color: var(--text-3);
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-wrap:focus-within {
  background: rgba(34, 28, 42, 0.95);
  border-color: rgba(226, 165, 190, 0.55);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(226, 165, 190, 0.22);
}

.search-wrap svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--mauve);
}

.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 13.5px;
  width: 100%;
  font-family: var(--font-body);
}

.search-wrap input::placeholder {
  color: var(--text-3);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .15s ease, background .15s ease;
}

.search-clear-btn:hover {
  color: var(--text-1);
  background: rgba(226, 165, 190, 0.12);
}

.search-clear-btn svg {
  width: 14px;
  height: 14px;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.18s ease;
}

.icon-btn:hover {
  background: rgba(38, 32, 48, 0.95);
  color: #ffffff;
  border-color: rgba(226, 165, 190, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(226, 165, 190, 0.2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.15);
  padding: 8px 14px 8px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.streak-pill svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.streak-pill .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-1);
}

.streak-pill .lbl {
  font-size: 11.5px;
  color: var(--text-2);
}

/* ---------- Header ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: -0.6px;
  color: var(--text-1);
}

.page-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.date-badge {
  display: flex;
  align-items: center;
}

.date-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 21, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 165, 190, 0.16);
  padding: 6px 14px 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-badge-inner:hover {
  border-color: rgba(226, 165, 190, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(226, 165, 190, 0.12);
}

.date-badge-calendar-icon {
  width: 15px;
  height: 15px;
  color: var(--mauve);
  flex-shrink: 0;
}

.date-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.date-badge-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--mauve-light);
  background: rgba(226, 165, 190, 0.14);
  border: 1px solid rgba(226, 165, 190, 0.25);
  padding: 2px 9px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  background: #18151d;
  border: 1px solid rgba(226, 165, 190, 0.10);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 14px 38px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  border-color: rgba(226, 165, 190, 0.38);
  box-shadow: 0 18px 48px -6px rgba(0, 0, 0, 0.7), 0 0 24px rgba(226, 165, 190, 0.12);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent !important;
  color: #ffffff !important;
}

.card-icon svg {
  width: 16px;
  height: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-display);
}

.card-more {
  margin-left: auto;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s ease;
}

.card-more:hover {
  color: var(--mauve-light);
}

.card-more svg {
  width: 16px;
  height: 16px;
}

.clear-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11.5px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}

.clear-btn:hover {
  color: var(--text-1);
  background: rgba(226, 165, 190, 0.1);
}

.clear-btn.confirm {
  color: var(--amber);
  background: var(--amber-soft);
}

.big-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-1);
}

.big-num .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 4px;
}

/* Growth / Positive Delta Chip (Helios style) */
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 8px;
  font-family: var(--font-mono);
  border: 1px solid rgba(46, 213, 115, 0.25);
}

/* span helpers */
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-3 { grid-column: span 3; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 1180px) {
  .col-4, .col-5, .col-3, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

.view { display: none; }
.view.active { display: block; }

/* ---------- Flip clock (Timer page) ---------- */
.flip-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 8px 0 28px 0;
}

.flip-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.flip-group {
  display: flex;
  gap: 8px;
}

.flip-colon {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--mauve);
  line-height: 1;
  padding-bottom: 10px;
  text-shadow: 0 0 20px rgba(226, 165, 190, 0.45);
}

.flip-tile {
  position: relative;
  width: 104px;
  height: 144px;
  border-radius: 16px;
  background: linear-gradient(180deg, #221c29, #130f18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 165, 190, 0.12);
  perspective: 300px;
}

.flip-tile span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 76px;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
  transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  transform-style: preserve-3d;
}

.flip-tile.flip span {
  transform: rotateX(90deg);
  opacity: 0.4;
}

.flip-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
  z-index: 2;
}

.flip-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(226, 165, 190, 0.1), transparent 40%);
  pointer-events: none;
}

/* Filter / Pill Toggles (Helios style) */
.toggle-pill {
  display: inline-flex;
  align-items: center;
  background: #1e1925;
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.toggle-pill button {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.toggle-pill button:hover:not(.active) {
  color: #ffffff;
}

.toggle-pill button.active {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45) 0%, rgba(160, 80, 115, 0.26) 100%) !important;
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #ffffff !important;
  box-shadow: 0 2px 14px rgba(226, 165, 190, 0.3);
}

.timer-page-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 40px 32px 76px 32px !important;
  min-height: 480px !important;
  justify-content: flex-start;
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.timer-btn,
.timer-controls button,
.timer-btn-primary,
.timer-controls button#timerStart,
.timer-btn-secondary,
.timer-controls button#timerReset {
  padding: 12px 36px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 25, 36, 0.9) !important;
  border: 1px solid rgba(226, 165, 190, 0.15) !important;
  color: #ffffff !important;
  min-width: 130px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.timer-btn:active,
.timer-controls button:active {
  transform: scale(0.97);
}

.timer-btn:hover,
.timer-controls button:hover,
.timer-btn-primary:hover,
.timer-controls button#timerStart:hover,
.timer-controls button#timerStart.running:hover,
.timer-btn-secondary:hover,
.timer-controls button#timerReset:hover {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45), rgba(165, 85, 120, 0.3)) !important;
  border-color: rgba(235, 175, 200, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(226, 165, 190, 0.35), 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- Habit tracker grid ---------- */
.tracker-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tracker-title-input {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text-1);
  outline: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  width: 220px;
}

.tracker-title-input:focus {
  border-bottom: 1px solid var(--border-highlight);
}

.tracker-tagline-input {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-2);
  outline: none;
  text-align: right;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  width: 220px;
}

.tracker-tagline-input:focus {
  border-bottom: 1px solid var(--border-highlight);
}

.tracker-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.tracker-scroll.compact {
  max-height: 280px;
  overflow-y: auto;
}

.tracker-scroll.compact .tracker-habit-cell {
  min-width: 130px;
}

.tracker-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.tracker-table th,
.tracker-table td {
  border: 1px solid var(--border-soft);
  text-align: center;
  padding: 0;
}

.tracker-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.025);
  height: 36px;
  min-width: 32px;
}

.tracker-habit-cell {
  text-align: left !important;
  padding: 9px 12px !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  left: 0;
  background: #1b1723;
  backdrop-filter: blur(6px);
}

.tracker-habit-cell .rm {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 15px;
  opacity: 0;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: opacity .15s ease;
}

.tracker-table tr:hover .tracker-habit-cell .rm {
  opacity: 1;
}

.tracker-cell {
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
}

.tracker-cell:hover {
  background: rgba(226, 165, 190, 0.12);
}

.tracker-cell.checked::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  background: transparent;
}

.tracker-total-row td {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
  height: 32px;
}

.tracker-total-row .tracker-habit-cell {
  background: #1e1926;
  font-weight: 700;
}

.tracker-add-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  max-width: 420px;
}

.tracker-add-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
  font-family: var(--font-body);
}

.tracker-add-row input:focus {
  border-color: var(--border-highlight);
}

.tracker-add-row button {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.42), rgba(165, 85, 120, 0.28));
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #fff;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Mini calendar (Calendar page) ---------- */
.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.mini-cal .dow {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  padding-bottom: 4px;
  font-family: var(--font-mono);
}

.mini-cal .day-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  gap: 3px;
  background: rgba(255, 255, 255, 0.02);
  transition: all .15s ease;
}

.mini-cal .day-cell:hover {
  background: rgba(226, 165, 190, 0.12);
  border-color: rgba(226, 165, 190, 0.35);
  color: #ffffff;
}

.mini-cal .day-cell.empty {
  border: none;
  cursor: default;
  background: transparent;
}

.mini-cal .day-cell.today {
  border-color: var(--mauve);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(226, 165, 190, 0.35);
}

.mini-cal .day-cell.has-event {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px 4px 4px 4px;
  background: rgba(226, 165, 190, 0.14);
  border-color: rgba(226, 165, 190, 0.4);
  min-height: 72px;
}

.mini-cal .day-cell.has-event.past {
  background: rgba(226, 165, 190, 0.05);
  border-color: rgba(226, 165, 190, 0.15);
  opacity: 0.6;
}

.mini-cal .day-cell.has-event .day-num {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-3);
  font-weight: 500;
  z-index: 1;
}

.mini-cal .day-cell.has-event.today .day-num {
  color: var(--mauve);
}

.mini-cal .day-cell.has-event .evt-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  height: 100%;
  justify-content: center;
  overflow-y: auto;
}

.mini-cal .day-cell.has-event .evt-list::-webkit-scrollbar {
  width: 2px;
}

.mini-cal .day-cell.has-event .evt-list::-webkit-scrollbar-thumb {
  background: rgba(226, 165, 190, 0.3);
  border-radius: 999px;
}

.mini-cal .day-cell.has-event .evt-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mauve-light);
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 2px;
  margin: 0;
  word-break: break-word;
}

.goal-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.goal-actions button {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.scroll-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

#habitQuickList.scroll-list {
  max-height: 190px;
}

.quick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  border-bottom: 1px solid var(--border-soft);
}

.quick-row:last-child {
  border-bottom: none;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.stat-row .stat-label {
  flex: 1;
  color: var(--text-2);
}

.track {
  flex: 2;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.track .fill {
  height: 100%;
  border-radius: 6px;
}

/* ---------- To-do card ---------- */
.todo-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.todo-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  position: relative;
  width: 100%;
  padding: 2px 0;
}

.todo-rm {
  opacity: 0.35;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
  line-height: 1;
  font-size: 16px;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 4px;
}

.todo-row:hover .todo-rm {
  opacity: 0.85;
}

.todo-rm:hover {
  opacity: 1 !important;
  color: #ff6b81 !important;
  transform: scale(1.2);
}

/* ---------- To-do Page 2-Column Layout ---------- */
.todo-page-layout {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.todo-page-left {
  flex: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-page-left .todo-list {
  width: 100%;
}

.todo-page-left .todo-add {
  margin-top: 0;
  width: 100%;
}

.todo-page-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.todo-page-right .page-ring-wrap {
  width: 165px;
  height: 165px;
}

.todo-page-right .page-ring-wrap .ring-center .n {
  font-size: 32px;
}

.todo-page-right .page-ring-wrap .ring-center small {
  font-size: 13px;
}

@media (max-width: 860px) {
  .todo-page-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .todo-page-left {
    max-width: 100%;
  }
  .todo-page-right {
    justify-content: center;
    padding-top: 24px;
  }
}

/* ================================================
   SpringCheck Component Styles (React Bits)
   ================================================ */
.spring-check {
  --sc-ink: var(--mauve);
  --sc-fill: var(--mauve);
  --sc-check: #09080c;
  --sc-box: 23px;
  --sc-radius: 7px;
  --sc-font: 15.5px;
  --sc-ring: 1.5px;
  --sc-gap: 11px;
  --sc-row: 36px;
  --sc-rule: 1.5px;
  --sc-origin: left center;
  --sc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  display: inline-flex;
  align-items: center;
  gap: var(--sc-gap);
  min-height: var(--sc-row);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--sc-font);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.spring-check:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spring-check__press {
  flex: none;
  width: var(--sc-box);
  height: var(--sc-box);
  border-radius: var(--sc-radius);
  transition: transform 160ms var(--sc-ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spring-check[data-pressed] .spring-check__press {
  transform: scale(0.92);
}

.spring-check:focus-visible .spring-check__press {
  outline: 2px solid color-mix(in srgb, var(--sc-ink) 45%, transparent);
  outline-offset: 2px;
}

.spring-check__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transform-origin: center;
  will-change: transform;
}

.spring-check__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--sc-ring) rgba(226, 165, 190, 0.28);
  opacity: 1;
  transition: box-shadow 150ms ease, opacity 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .spring-check:not(:disabled):hover .spring-check__ring {
    box-shadow: inset 0 0 0 var(--sc-ring) var(--sc-ink);
    opacity: 0.85;
  }
}

.spring-check__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sc-fill);
  transform-origin: center;
  will-change: transform;
}

.spring-check__tick {
  position: relative;
  width: 70%;
  height: 70%;
  overflow: visible;
  fill: none;
  stroke: var(--sc-check);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spring-check__label {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.spring-check__word {
  display: inline-block;
  color: var(--text-1);
  will-change: opacity;
  word-break: break-word;
}

.spring-check__rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: var(--sc-rule);
  border-radius: 2px;
  background: var(--mauve);
  transform-origin: var(--sc-origin);
  pointer-events: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .spring-check__press {
    transition: none;
  }
}

.todo-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.todo-add input {
  flex: 1;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  color: var(--text-1);
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 12.5px;
  outline: none;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.todo-add input:focus {
  border-color: rgba(226, 165, 190, 0.55);
}

.todo-add button {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45), rgba(165, 85, 120, 0.28));
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #fff;
  border-radius: 9999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.todo-add button:hover {
  opacity: 0.95;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(226, 165, 190, 0.38);
}

.ring-wrap {
  flex: 0 0 auto;
  position: relative;
  width: 155px;
  height: 155px;
}

.ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center .n {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
}

.ring-center small {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ---------- Weekly progress (Helios Feature Card with rich glowing under-glow) ---------- */
.feature-card {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(226, 165, 190, 0.35) 0%, rgba(160, 80, 115, 0.15) 50%, transparent 80%),
    #17141f !important;
  border: 1px solid rgba(226, 165, 190, 0.35) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 30px rgba(226, 165, 190, 0.18) !important;
  color: #ffffff !important;
}

.feature-card .card-title {
  color: #ffffff !important;
}

.feature-card .metric .val {
  color: #ffffff !important;
}

.feature-card .metric .cap {
  color: var(--text-2) !important;
}

.feature-card .bar-col .day {
  color: var(--text-2) !important;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 165, 190, 0.12);
}

.browser-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.85;
}

.browser-chrome .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(226, 165, 190, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}

.metric-pair {
  display: flex;
  gap: 34px;
  margin: 6px 0 22px 0;
}

.metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric .bar {
  width: 5px;
  height: 34px;
  border-radius: 4px;
}

.metric .val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.metric .val .u {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  margin-left: 2px;
}

.metric .cap {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 120px;
  padding: 0 4px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 90px;
  gap: 5px;
}

.bar-mini {
  width: 9px;
  border-radius: 4px;
  transition: height .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}

.bar-col .day {
  font-size: 10.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ---------- Notes: layered glass-card deck ---------- */
.notes-glow-wrap {
  position: relative;
  padding: 4px;
}

.note-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.note-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 165, 190, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(226, 165, 190, 0.15);
}

.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  background: rgba(226, 165, 190, 0.15);
  border: 1px solid rgba(226, 165, 190, 0.3);
  color: var(--mauve-light);
}

.note-card h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--text-1);
}

.note-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  word-break: break-word;
}

.note-card .rm {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}

.note-card:hover .rm {
  opacity: 1;
}

.note-add-tile {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-color: rgba(226, 165, 190, 0.2);
  background: rgba(226, 165, 190, 0.03);
  cursor: pointer;
  gap: 6px;
  border-radius: 20px;
}

.note-add-tile:hover {
  border-color: rgba(226, 165, 190, 0.6);
  background: rgba(226, 165, 190, 0.08);
}

.note-add-tile .add-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 165, 190, 0.12);
  color: var(--mauve-light);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.note-add-tile .add-label {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
}

.note-add-tile.editing {
  cursor: default;
  align-items: stretch;
  text-align: left;
  border-style: solid;
  border-color: rgba(226, 165, 190, 0.4);
}

.note-add-tile .note-add-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
  font-family: var(--font-body);
  resize: none;
}

.note-add-tile .note-add-confirm {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45), rgba(165, 85, 120, 0.28));
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #fff;
  border-radius: 9999px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Goals: dashboard mini-card styles ---------- */
.goal-item {
  margin-bottom: 16px;
}

.goal-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.goal-top .g-name {
  color: var(--text-1);
  font-weight: 500;
}

.goal-top .g-pct {
  color: var(--mauve);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- Events / Calendar list ---------- */
.event-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.event-row.next-event {
  background: linear-gradient(90deg, rgba(226, 165, 190, 0.18), rgba(160, 80, 115, 0.1));
  border: 1px solid rgba(226, 165, 190, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 2px;
}

.event-row.next-event .event-date {
  background: var(--gradient-accent);
  border-color: transparent;
}

.event-row.next-event .event-date .d,
.event-row.next-event .event-date .m {
  color: #09080c;
  font-weight: 700;
}

.event-row.next-event .event-title {
  font-weight: 700;
}

.event-row.past-event {
  opacity: 0.5;
}

.event-row.past-event .event-title {
  color: var(--text-2);
  font-weight: 400;
}

.event-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-3);
}

.event-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.event-row:last-child {
  border-bottom: none;
}

.event-date {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.event-date .d {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--text-1);
}

.event-date .m {
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
}

.event-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}

.event-sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.event-empty {
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 0;
}

.event-view-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--mauve);
  cursor: pointer;
}

/* ---------- Creative monthly progress graph ---------- */
.progress-summary {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 18px 0;
  max-width: 640px;
}

.progress-summary b {
  color: var(--text-1);
  font-weight: 600;
}

.progress-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.add-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.add-inline input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  font-family: var(--font-body);
}

.add-inline input:focus {
  border-color: var(--border-highlight);
}

.add-inline button {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

.add-inline button:hover {
  background: rgba(226, 165, 190, 0.18);
  border-color: rgba(226, 165, 190, 0.4);
}

/* ================================================================
   Goals page â€” AI Roadmap + Chat (Helios style)
   ================================================================ */
.goals-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .goals-layout {
    grid-template-columns: 1fr;
  }
}

.goals-roadmaps-section {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
}

.roadmaps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 80px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.roadmap-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  color: var(--text-3);
  text-align: center;
}

.roadmap-empty-state svg {
  width: 42px;
  height: 42px;
  opacity: 0.45;
  color: var(--mauve);
}

.roadmap-empty-state p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.roadmap-card {
  padding: 18px 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(226, 165, 190, 0.12);
}

.roadmap-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.roadmap-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.roadmap-title {
  margin: 0 0 4px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.roadmap-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.roadmap-pct-wrap {
  flex: 0 0 auto;
}

.roadmap-pct {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--mauve);
}

.dashboard-roadmap-list {
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-roadmap-list .roadmap-card {
  padding: 4px 0 16px 0;
}

.dashboard-roadmap-list .timeline-timeframe {
  width: 76px;
  font-size: 12px;
}

.dashboard-roadmap-list .timeline-title {
  font-size: 12.5px;
}

.dashboard-roadmap-list .timeline-desc {
  font-size: 11.5px;
  line-height: 1.5;
}

.roadmap-progress-bar {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}

.roadmap-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--gradient-accent);
  transition: width .4s ease;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
}

.roadmap-timeline-item {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.timeline-timeframe {
  width: 90px;
  flex-shrink: 0;
  text-align: right;
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  color: var(--text-1);
  letter-spacing: -0.3px;
  padding-top: 1px;
}

.timeline-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-1, #18151d);
  border: 2px solid rgba(226, 165, 190, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-line {
  width: 2px;
  background: rgba(226, 165, 190, 0.15);
  flex-grow: 1;
  margin: 4px 0;
  border-radius: 1px;
}

.timeline-content {
  flex-grow: 1;
  padding-bottom: 28px;
}

.roadmap-timeline-item:last-child .timeline-content {
  padding-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.35;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.check-icon {
  width: 11px;
  height: 11px;
  color: #ffffff;
}

/* Done state - filled solid with app's purple/pink accent gradient */
.milestone-done .timeline-dot {
  background: var(--gradient-accent);
  border-color: rgba(235, 175, 200, 0.6);
  color: #fff;
  box-shadow: 0 0 12px rgba(226, 165, 190, 0.35);
}
.milestone-done .timeline-line {
  background: rgba(226, 165, 190, 0.4);
}
.milestone-done .timeline-title {
  color: var(--text-3);
  text-decoration: line-through;
}
.milestone-done .timeline-desc {
  opacity: 0.55;
}
.milestone-done .timeline-timeframe {
  opacity: 0.6;
}

/* Active state - outlined/ringed with accent mauve and dark center */
.milestone-active .timeline-dot {
  background: #18151d;
  border: 2px solid var(--mauve);
  box-shadow: 0 0 0 4px rgba(226, 165, 190, 0.2), 0 0 16px rgba(226, 165, 190, 0.35);
  transform: scale(1.15);
}
.milestone-active .timeline-title,
.milestone-active .timeline-desc {
  color: var(--text-1);
}

/* Locked state - muted grey/dark tone, dimmed, no accent color */
.milestone-locked .timeline-dot {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.4;
  box-shadow: none;
}
.milestone-locked .timeline-line {
  background: rgba(255, 255, 255, 0.06);
}
.milestone-locked .timeline-timeframe {
  opacity: 0.45;
}
.milestone-locked .timeline-title {
  opacity: 0.45;
}
.milestone-locked .timeline-desc {
  opacity: 0.35;
}

/* Interactive */
.roadmap-timeline-item.can-toggle .timeline-dot {
  cursor: pointer;
}
.roadmap-timeline-item.can-toggle .timeline-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(226, 165, 190, 0.3), 0 0 20px rgba(226, 165, 190, 0.5);
  border-color: var(--mauve-light);
}


/* --- Chat panel --- */
.goals-chat-section {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
}

.goals-chat-section .card-head {
  flex: 0 0 auto;
}

/* AI badge chip */
.chat-ai-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  background: rgba(226, 165, 190, 0.22);
  border: 1px solid rgba(226, 165, 190, 0.45);
  color: var(--mauve-light);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.chat-reset-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(226, 165, 190, 0.15);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.chat-reset-btn svg {
  width: 13px;
  height: 13px;
}

.chat-reset-btn:hover {
  color: var(--text-1);
  border-color: rgba(226, 165, 190, 0.4);
  background: rgba(226, 165, 190, 0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px 2px;
  min-height: 0;
}

.chat-msg {
  display: flex;
  max-width: 82%;
  animation: chatFadeIn .22s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-assistant {
  align-self: flex-start;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 100%;
  word-break: break-word;
}

.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45) 0%, rgba(160, 80, 115, 0.28) 100%);
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(226, 165, 190, 0.22);
}

.chat-msg-assistant .chat-bubble {
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  color: var(--text-1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 4px;
}

.chat-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  align-self: flex-start;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  margin: 0 2px 4px 2px;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.chat-thinking span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mauve);
  animation: thinkBounce 1.1s ease-in-out infinite;
}

.chat-thinking span:nth-child(2) { animation-delay: .15s; }
.chat-thinking span:nth-child(3) { animation-delay: .3s; }

@keyframes thinkBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); background: #ffffff; }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex: 0 0 auto;
  align-items: flex-end;
}

.chat-input-row textarea,
.chat-input-row input {
  flex: 1;
  background: rgba(28, 24, 34, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.12);
  color: var(--text-1);
  border-radius: 18px;
  padding: 10px 18px;
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
  font-family: var(--font-body);
  transition: border-color .18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  resize: none;
  min-height: 42px;
  max-height: 140px;
  overflow-y: auto;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-input-row textarea:focus,
.chat-input-row input:focus {
  border-color: rgba(226, 165, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 165, 190, 0.15);
}

.chat-input-row textarea::placeholder,
.chat-input-row input::placeholder { color: var(--text-3); }
.chat-input-row textarea:disabled,
.chat-input-row input:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(235, 175, 200, 0.55);
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45), rgba(165, 85, 120, 0.28));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(226, 165, 190, 0.3);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  flex: 0 0 auto;
}

.chat-send-btn svg { width: 16px; height: 16px; }
.chat-send-btn:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(226, 165, 190, 0.48); }
.chat-send-btn:active { transform: scale(0.96); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ================================================
   AUTH OVERLAY
   ================================================ */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, #1a1522 0%, #09080c 75%);
  overflow: hidden;
}

#auth-overlay.auth-hidden {
  display: none;
}

.auth-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.auth-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(226, 165, 190, 0.42);
  top: -120px;
  left: -80px;
  animation-duration: 16s;
}

.auth-orb-2 {
  width: 340px;
  height: 340px;
  background: rgba(160, 80, 115, 0.38);
  bottom: -100px;
  right: -60px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.auth-orb-3 {
  width: 260px;
  height: 260px;
  background: rgba(226, 165, 190, 0.28);
  top: 55%;
  left: 65%;
  opacity: 0.35;
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(24, 21, 29, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(226, 165, 190, 0.16);
  border-radius: 28px;
  padding: 40px 36px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardSlideIn .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.auth-brand-mark img,
.auth-brand-mark .brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(226, 165, 190, 0.4));
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 24px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #1e1925;
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(226, 165, 190, 0.45) 0%, rgba(160, 80, 115, 0.26) 100%);
  border: 1px solid rgba(235, 175, 200, 0.55);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(226, 165, 190, 0.3);
}

.auth-tab:hover:not(.active) { color: var(--text-1); }

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.01em;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.15);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.auth-field input:focus {
  border-color: rgba(226, 165, 190, 0.6);
  box-shadow: 0 0 0 3px rgba(226, 165, 190, 0.18);
}

.auth-field input::placeholder { color: var(--text-3); }

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap input {
  padding-right: 44px;
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .2s;
  line-height: 0;
}

.auth-eye-btn:hover { color: var(--text-1); }
.auth-eye-btn svg { width: 16px; height: 16px; }

.auth-error {
  font-size: 12.5px;
  color: #ef4444;
  min-height: 18px;
  padding: 0 2px;
  animation: fadeIn .2s ease;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #e8a9c3 0%, #b86b90 100%);
  border: none;
  border-radius: 9999px;
  color: #09080c;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(226, 165, 190, 0.42);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(226, 165, 190, 0.55);
}

.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.3);
  border-top-color: #09080c;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-footer-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin: 18px 0 0;
}

.auth-footer-note a {
  color: var(--mauve);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-note a:hover { text-decoration: underline; }

/* Sync indicator */
.sync-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(24, 21, 29, 0.92);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 20px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 200;
  pointer-events: none;
}

.sync-indicator.visible { opacity: 1; }
.sync-indicator .sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: syncPulse 1.2s ease-in-out infinite;
}

.sync-indicator.syncing .sync-dot { background: var(--amber); }
.sync-indicator.error .sync-dot { background: #ff6b8a; animation: none; }

@keyframes syncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ================================================
   NOTES & PROJECTS SECTION
   ================================================ */
.notes-page-container {
  padding: 4px 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent !important;
  color: #ffffff !important;
}

.section-head-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.section-title-wrap h3,
.section-title-wrap h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.notion-pill-btn {
  background: rgba(226, 165, 190, 0.08);
  border: 1px solid rgba(226, 165, 190, 0.28);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s ease;
}

.notion-pill-btn:hover {
  background: rgba(226, 165, 190, 0.22);
  border-color: rgba(226, 165, 190, 0.55);
  box-shadow: 0 0 16px rgba(226, 165, 190, 0.25);
  transform: translateY(-1px);
}

.notes-head-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.18);
  color: var(--text-1);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s ease;
}

.notes-head-action-btn:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #09080c;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(226, 165, 190, 0.38);
}

.notes-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.15);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s ease;
}

.notes-back-btn svg { width: 14px; height: 14px; }
.notes-back-btn:hover {
  background: rgba(226, 165, 190, 0.12);
  color: var(--text-1);
  border-color: rgba(226, 165, 190, 0.35);
}

/* Projects Grid (Folder Cards) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px 18px;
  padding-top: 14px;
}

.folder-card {
  position: relative;
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 0 18px 18px 18px;
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.folder-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -1px;
  width: 95px;
  height: 13px;
  background: rgba(24, 21, 29, 0.90);
  border-top: 1px solid rgba(226, 165, 190, 0.12);
  border-left: 1px solid rgba(226, 165, 190, 0.12);
  border-right: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 10px 10px 0 0;
}

.folder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 165, 190, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(226, 165, 190, 0.15);
}

.folder-card:hover::before {
  border-color: rgba(226, 165, 190, 0.45);
}

.folder-top-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.folder-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  flex: 1;
}

.folder-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-3);
}

.card-opts-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.card-opts-btn:hover {
  color: var(--text-1);
  background: rgba(226, 165, 190, 0.12);
}

.folder-add-tile {
  position: relative;
  min-height: 124px;
  border: 2px dashed rgba(226, 165, 190, 0.22);
  border-radius: 0 18px 18px 18px;
  background: rgba(226, 165, 190, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.folder-add-tile::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -2px;
  width: 95px;
  height: 12px;
  border-top: 2px dashed rgba(226, 165, 190, 0.22);
  border-left: 2px dashed rgba(226, 165, 190, 0.22);
  border-right: 2px dashed rgba(226, 165, 190, 0.22);
  border-radius: 10px 10px 0 0;
}

.folder-add-tile:hover {
  border-color: rgba(226, 165, 190, 0.65);
  color: var(--mauve-light);
  background: rgba(226, 165, 190, 0.08);
}

.folder-add-tile:hover::before {
  border-color: rgba(226, 165, 190, 0.65);
}

.folder-add-tile .plus-icon {
  font-size: 20px;
  font-weight: 300;
}

/* Rich Note Cards Grid */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.rich-note-card {
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.rich-note-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 165, 190, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(226, 165, 190, 0.15);
}

.rich-note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-3);
}

.rich-note-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.38;
}

.rich-note-body {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  word-break: break-word;
}

.rich-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rich-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--tag-bg, rgba(226, 165, 190, 0.15));
  color: var(--tag-color, var(--mauve-light));
  border: 1px solid var(--tag-border, rgba(226, 165, 190, 0.3));
}

.rich-note-add-tile {
  min-height: 170px;
  border: 2px dashed rgba(226, 165, 190, 0.22);
  border-radius: 20px;
  background: rgba(226, 165, 190, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.rich-note-add-tile:hover {
  border-color: rgba(226, 165, 190, 0.65);
  color: var(--mauve-light);
  background: rgba(226, 165, 190, 0.08);
}

.card-menu-dropdown {
  position: absolute;
  top: 36px;
  right: 14px;
  background: rgba(24, 20, 30, 0.96);
  border: 1px solid rgba(226, 165, 190, 0.18);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  min-width: 110px;
  animation: fadeIn .15s ease;
}

.card-menu-item {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-body);
  padding: 7px 12px;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.card-menu-item:hover {
  background: rgba(226, 165, 190, 0.12);
  color: var(--text-1);
}

.card-menu-item.danger:hover {
  background: rgba(255, 107, 138, 0.15);
  color: #ff6b8a;
}

/* ---------- Modals ---------- */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: rgba(24, 21, 29, 0.96);
  border: 1px solid rgba(226, 165, 190, 0.18);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cardSlideIn .3s ease;
}

.app-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}

.app-modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.app-modal-close:hover { color: var(--text-1); }

.app-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.16);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: rgba(226, 165, 190, 0.6);
  box-shadow: 0 0 0 3px rgba(226, 165, 190, 0.18);
}

.color-picker-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.color-dot:hover { transform: scale(1.15); }
.color-dot.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 10px currentColor;
}

.app-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.modal-btn-cancel {
  background: none;
  border: 1px solid rgba(226, 165, 190, 0.18);
  color: var(--text-2);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

.modal-btn-save {
  background: var(--gradient-accent);
  border: none;
  color: #09080c;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(226, 165, 190, 0.38);
}

/* ================================================
   NOTION WORKSPACE & CANVAS EDITOR STYLES
   ================================================ */
.notion-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 60px;
}

.notion-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 165, 190, 0.12);
}

.notion-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
}

.notion-breadcrumbs .crumb {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.notion-breadcrumbs .crumb:hover {
  background: rgba(226, 165, 190, 0.1);
  color: var(--text-1);
}

.notion-breadcrumbs .crumb.active {
  color: var(--text-1);
  font-weight: 600;
}

.notion-breadcrumbs .sep {
  color: var(--text-3);
  font-size: 12px;
}

.notion-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notion-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.18);
  color: var(--text-1);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s ease;
}

.notion-action-btn:hover {
  background: rgba(226, 165, 190, 0.12);
  border-color: rgba(226, 165, 190, 0.35);
}

.notion-action-btn.primary {
  background: var(--gradient-accent);
  border: none;
  color: #09080c;
  font-weight: 700;
}

.notion-action-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(226, 165, 190, 0.4);
}

.notion-section-header {
  margin-bottom: 14px;
}

.notion-section-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}

.notion-section-header p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.notion-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.notion-project-card {
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
}

.notion-project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 165, 190, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  background: rgba(32, 27, 38, 0.95);
}

.n-proj-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.n-proj-icon {
  font-size: 22px;
  line-height: 1;
}

.n-proj-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.n-proj-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-3);
}

.notion-pages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notion-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
}

.notion-page-row:hover {
  background: rgba(32, 27, 38, 0.95);
  border-color: rgba(226, 165, 190, 0.35);
  transform: translateX(3px);
}

.page-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.page-row-icon {
  font-size: 18px;
  line-height: 1;
}

.page-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-row-proj-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(226, 165, 190, 0.15);
  color: var(--mauve-light);
  border: 1px solid rgba(226, 165, 190, 0.28);
  margin-left: 6px;
}

.page-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
}

.project-detail-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(24, 21, 29, 0.90);
  border: 1px solid rgba(226, 165, 190, 0.12);
  border-radius: 20px;
}

.project-detail-icon {
  font-size: 42px;
  line-height: 1;
}

.project-detail-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-1);
}

.project-detail-meta {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
}

.project-pages-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px 0;
}

.project-pages-toolbar h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

/* ================================================
   NOTION-STYLE NOTES WORKSPACE & CANVAS
   ================================================ */
.notion-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.notion-hub-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notion-hub-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.01em;
}

.notion-hub-subtitle {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 2px 0 0 0;
}

.notion-hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notion-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--mauve) 0%, #c48ca5 100%);
  color: #120d18;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 165, 190, 0.25);
  transition: all .2s ease;
}

.notion-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 165, 190, 0.4);
  filter: brightness(1.06);
}

.notion-ghost-btn {
  background: rgba(226, 165, 190, 0.06);
  border: 1px solid rgba(226, 165, 190, 0.16);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}

.notion-ghost-btn:hover {
  background: rgba(226, 165, 190, 0.14);
  color: var(--text-1);
  border-color: rgba(226, 165, 190, 0.35);
}

.notion-section-icon {
  font-size: 18px;
  margin-right: 4px;
}

.notion-count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(226, 165, 190, 0.12);
  color: var(--mauve-light);
  border: 1px solid rgba(226, 165, 190, 0.2);
  margin-left: 6px;
}

/* Notion Document Sheet */
.notion-doc-container {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(22, 18, 27, 0.94);
  border: 1px solid rgba(226, 165, 190, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  min-height: 580px;
}

/* Cover Image Banner */
.notion-cover-wrapper {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.notion-cover-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
  background-size: cover;
  background-position: center;
}

.notion-cover-controls {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.notion-cover-btn {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all .15s ease;
}

.notion-cover-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.notion-cover-btn.danger:hover {
  background: rgba(255, 107, 138, 0.85);
}

.notion-doc-body {
  padding: 36px 56px 72px 56px;
  position: relative;
}

/* Page Header Hover Actions */
.notion-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0.6;
  transition: opacity .2s ease;
}

.notion-doc-body:hover .notion-header-actions {
  opacity: 1;
}

.notion-meta-trigger {
  background: none;
  border: none;
  font-size: 12.5px;
  font-family: var(--font-body);
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}

.notion-meta-trigger:hover {
  background: rgba(226, 165, 190, 0.12);
  color: var(--text-1);
}

/* Page Emoji Icon Display */
.notion-icon-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}

.notion-icon-display {
  font-size: 44px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 12px;
  transition: transform .15s ease, background .15s ease;
}

.notion-icon-display:hover {
  background: rgba(226, 165, 190, 0.14);
  transform: scale(1.08);
}

.notion-icon-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.notion-icon-remove:hover {
  background: rgba(255, 107, 138, 0.3);
  color: #ff6b8a;
}

/* Emoji Picker Popover */
.notion-emoji-popover {
  position: absolute;
  top: 110px;
  left: 56px;
  z-index: 300;
  background: rgba(26, 22, 33, 0.98);
  border: 1px solid rgba(226, 165, 190, 0.22);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  width: 290px;
  animation: fadeIn .15s ease;
}

.emoji-popover-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-btn {
  font-size: 22px;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, transform .12s;
}

.emoji-btn:hover {
  background: rgba(226, 165, 190, 0.2);
  transform: scale(1.18);
}

/* Document Title */
.notion-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-1);
  padding: 4px 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  caret-color: #ffffff;
}

.notion-title-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

/* Properties / Metadata Table */
.notion-properties-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 16px 0;
}

.notion-property-row {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.notion-prop-label {
  width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-weight: 500;
}

.notion-prop-value {
  flex: 1;
}

.notion-prop-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 165, 190, 0.16);
  color: var(--text-1);
  font-size: 12.5px;
  font-family: var(--font-body);
  padding: 5px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}

.notion-prop-select:hover {
  border-color: rgba(226, 165, 190, 0.35);
}

.notion-date-text {
  color: var(--text-2);
  font-size: 12.5px;
}

.notion-doc-divider {
  height: 1px;
  background: rgba(226, 165, 190, 0.1);
  margin: 12px 0 24px 0;
}

/* Document Canvas Content */
.notion-editor-canvas {
  min-height: 420px;
  outline: none;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-1);
  font-family: var(--font-body);
}

.notion-editor-canvas[contenteditable=true]:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  cursor: text;
}

.notion-editor-canvas h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 24px 0 10px 0;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.notion-editor-canvas h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 8px 0;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.notion-editor-canvas h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 16px 0 6px 0;
  color: var(--text-1);
}

.notion-editor-canvas p {
  margin: 6px 0;
}

.notion-editor-canvas ul,
.notion-editor-canvas ol {
  margin: 8px 0 8px 24px;
}

.notion-editor-canvas blockquote {
  margin: 16px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--mauve);
  background: rgba(226, 165, 190, 0.08);
  border-radius: 0 10px 10px 0;
  color: var(--text-2);
  font-style: italic;
}

.notion-editor-canvas pre {
  margin: 16px 0;
  padding: 16px;
  background: rgba(10, 8, 14, 0.85);
  border: 1px solid rgba(226, 165, 190, 0.18);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--green);
  overflow-x: auto;
}

.notion-editor-canvas hr {
  border: none;
  height: 1px;
  background: rgba(226, 165, 190, 0.15);
  margin: 20px 0;
}

/* Interactive Checklists */
.notion-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0;
  user-select: text;
}

.notion-checkbox {
  width: 17px;
  height: 17px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1.5px solid rgba(226, 165, 190, 0.45);
  background: rgba(226, 165, 190, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  transition: all .15s ease;
  font-size: 11px;
  font-weight: 800;
  color: transparent;
}

.notion-checkbox:hover {
  border-color: var(--mauve);
  background: rgba(226, 165, 190, 0.18);
}

.notion-checkbox.checked {
  background: var(--mauve);
  border-color: var(--mauve);
  color: #1a1422;
}

.notion-todo-text {
  flex: 1;
  outline: none;
  min-height: 24px;
}

.notion-todo-text.checked {
  text-decoration: line-through;
  opacity: 0.55;
  color: var(--text-3);
}

/* Callout Box */
.notion-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 12px;
  background: rgba(226, 165, 190, 0.08);
  border-left: 3px solid var(--mauve);
}

.notion-callout-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.notion-callout-text {
  flex: 1;
  outline: none;
}

/* Floating Formatting Toolbar */
.notion-floating-toolbar {
  position: absolute;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  background: rgba(22, 18, 28, 0.98);
  border: 1px solid rgba(226, 165, 190, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  animation: fadeIn .12s ease;
}

.notion-floating-toolbar .toolbar-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s ease;
}

.notion-floating-toolbar .toolbar-btn:hover {
  background: rgba(226, 165, 190, 0.18);
  color: var(--text-1);
}

/* Slash Command Menu */
.notion-slash-menu {
  position: absolute;
  z-index: 350;
  background: rgba(24, 20, 31, 0.98);
  border: 1px solid rgba(226, 165, 190, 0.22);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  width: 290px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn .12s ease;
}

.slash-menu-head {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  padding: 4px 8px 6px 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.slash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: background .12s ease;
}

.slash-item:hover,
.slash-item.active {
  background: rgba(226, 165, 190, 0.16);
}

.slash-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(226, 165, 190, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mauve);
  flex-shrink: 0;
}

.slash-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slash-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.slash-item-desc {
  font-size: 11px;
  color: var(--text-3);
}

/* ================================================
   GLOBAL SEARCH RESULTS DROPDOWN
   ================================================ */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(24, 20, 30, 0.96);
  border: 1px solid rgba(226, 165, 190, 0.16);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background .15s ease;
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(226, 165, 190, 0.18);
}

.search-result-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px;
}

.search-result-icon.note {
  background: var(--mauve-soft);
  color: var(--mauve);
}

.search-result-icon.todo {
  background: var(--green-soft);
  color: var(--green);
}

.search-result-icon.goal {
  background: var(--amber-soft);
  color: var(--amber);
}

.search-result-icon.event {
  background: var(--blue-soft);
  color: var(--blue);
}

.search-result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-subtitle {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(226, 165, 190, 0.12);
  color: var(--mauve-light);
  border: 1px solid rgba(226, 165, 190, 0.22);
  flex-shrink: 0;
}

.search-empty-message {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

/* ================================================================
   Notes & Notion Editor Top Action Bar & Back Button
   ================================================================ */
.notion-editor-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 4px 0;
}

.notes-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 24, 34, 0.85);
  border: 1px solid rgba(226, 165, 190, 0.18);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px 7px 10px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes-back-btn svg {
  width: 15px;
  height: 15px;
  color: var(--mauve);
  transition: transform 0.2s ease;
}

.notes-back-btn:hover {
  background: rgba(38, 30, 48, 0.95);
  border-color: rgba(226, 165, 190, 0.4);
  transform: translateX(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(226, 165, 190, 0.15);
}

.notes-back-btn:hover svg {
  transform: translateX(-2px);
}

.notion-editor-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.crumb-section {
  color: var(--text-2);
  font-weight: 500;
}

.crumb-sep {
  color: var(--text-3);
  opacity: 0.6;
}

.crumb-title {
  color: var(--mauve-light);
  font-weight: 600;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MoltenMetal Background */
.molten-metal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: auto;
  background-color: #000000;
}

/* ============================================================
   Custom Flatpickr Calendar Styling
   ============================================================ */
.flatpickr-calendar {
  background: var(--surface-card) !important;
  border: 1px solid rgba(226, 165, 190, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  padding: 0 0 8px 0 !important;
  transform: scale(0.8) !important;
  transform-origin: top left !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  display: none !important;
}

.flatpickr-months {
  background: transparent !important;
  padding-top: 10px !important;
}

.flatpickr-prev-month, 
.flatpickr-next-month {
  display: none !important;
}

.flatpickr-current-month .numInputWrapper {
  display: none !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--surface-card) !important;
  color: var(--text-1) !important;
  font-weight: 600 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.flatpickr-day {
  color: var(--text-1) !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s ease !important;
}

.flatpickr-day.prevMonthDay, 
.flatpickr-day.nextMonthDay {
  visibility: hidden !important;
}

.flatpickr-day:hover {
  background: rgba(226, 165, 190, 0.15) !important;
  border-color: transparent !important;
  color: var(--text-1) !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
  background: var(--mauve) !important;
  border-color: var(--mauve) !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

.flatpickr-day.today {
  border-color: var(--mauve-glow) !important;
}

span.flatpickr-weekday {
  color: var(--text-2) !important;
  font-weight: 600 !important;
}

.flatpickr-month {
  color: var(--text-1) !important;
  fill: var(--text-1) !important;
}

/* ============================================================
   Mini Timer (Floating)
   ============================================================ */
.minimize-timer-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-right: 8px;
}

.minimize-timer-btn:hover {
  background: rgba(226, 165, 190, 0.08);
  border-color: rgba(226, 165, 190, 0.15);
  color: var(--mauve);
}

.minimize-timer-btn svg {
  width: 14px;
  height: 14px;
}

.mini-timer-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  height: 180px;
  background: #18151d;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 165, 190, 0.18);
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-sizing: border-box;
}

.mini-timer-floating.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-timer-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.mini-timer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 490px;
  height: 210px;
  transform-origin: center center;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.05s linear;
}

.mini-timer-floating #miniFlipClock {
  margin: 0;
  gap: 0;
  transform-origin: center center;
}

.mini-timer-floating .timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 0;
  width: auto;
}

.mini-timer-floating .timer-btn {
  padding: 10px 32px;
  min-width: 120px;
  font-size: 14.5px;
  white-space: nowrap;
}

/* ============================================================
   AUTHENTICATION OVERLAY & MODAL
   ============================================================ */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 8, 14, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

#auth-overlay.auth-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.auth-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #e2a5be, #7e4361);
  top: 15%;
  left: 20%;
}

.auth-orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #8b6cf7, #3d2380);
  bottom: 15%;
  right: 20%;
  animation-delay: -6s;
}

.auth-orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #38bdf8, #1e3a8a);
  top: 55%;
  left: 45%;
  opacity: 0.2;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -25px) scale(1.08); }
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(22, 18, 28, 0.94);
  border: 1px solid rgba(226, 165, 190, 0.24);
  border-radius: 24px;
  padding: 38px 40px;
  width: 420px;
  max-width: 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: authScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes authScaleIn {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(226, 165, 190, 0.12);
  border: 1px solid rgba(226, 165, 190, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-brand-mark .brand-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
}

.auth-tagline {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text-1);
}

.auth-tab.active {
  background: rgba(226, 165, 190, 0.16);
  color: var(--mauve-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 165, 190, 0.26);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.auth-form.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(14, 11, 18, 0.88);
  border: 1px solid rgba(226, 165, 190, 0.18);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  transition: all 0.2s ease;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(226, 165, 190, 0.2);
  background: rgba(20, 16, 26, 0.96);
}

.auth-password-wrap {
  position: relative;
  width: 100%;
}

.auth-password-wrap input {
  padding-right: 42px;
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-eye-btn:hover {
  color: var(--mauve);
}

.auth-eye-btn svg {
  width: 18px;
  height: 18px;
}

.auth-error {
  font-size: 12.5px;
  color: #ff6b81;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.25);
  padding: 9px 12px;
  border-radius: 9px;
  line-height: 1.4;
  display: none;
}

.auth-error:not(:empty) {
  display: block;
  animation: fadeIn 0.15s ease;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-accent);
  color: #09080c;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(226, 165, 190, 0.25);
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(226, 165, 190, 0.42);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #09080c;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.auth-footer-note {
  text-align: center;
  margin: 20px 0 0 0;
  font-size: 13px;
  color: var(--text-3);
}

.auth-footer-note a {
  color: var(--mauve-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-footer-note a:hover {
  color: var(--mauve);
  text-decoration: underline;
}
