/* Assistant Dashboard Styles */

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-card: #18181b;
  --bg-elevated: #1f1f23;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77e;
  --accent-teal: #14b8a6;
  --accent-teal-light: #2dd4bf;
  --accent-red: #ef4444;
  --accent-blue: #6366f1;
  --accent-purple: #8b5cf6;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 1rem;
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.loading-screen i {
  font-size: 2rem;
}

/* Dashboard Layout */
.assistant-dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--text-primary);
}

.badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.saving-indicator {
  font-size: 0.75rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-info-wrapper {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .user-info-wrapper {
    display: block;
  }
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: help;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.user-email:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.subscription-tooltip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-info-wrapper:hover .subscription-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.tooltip-status.active {
  color: var(--accent-green);
}

.tooltip-status.inactive {
  color: var(--text-muted);
}

.tooltip-status i {
  font-size: 1rem;
}

.tooltip-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.tooltip-text a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.tooltip-text a:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.tooltip-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.mobile-chat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-chat-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .mobile-chat-toggle {
    display: none;
  }
}

.sign-out-btn {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.sign-out-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Main Content */
.dashboard-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Main Tabs */
.main-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 1rem 1.5rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.main-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-bottom: 3px solid transparent;
  position: relative;
}

.main-tab:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.main-tab.active {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.main-tab i {
  font-size: 1rem;
}

/* Tab Content */
.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-primary);
}

/* Checklists Grid */
.checklists-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  height: 100%;
}

@media (min-width: 640px) {
  .checklists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .checklists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Finance & Focus Wrappers */
.finance-wrapper,
.focus-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.finance-wrapper > div,
.focus-wrapper > div {
  flex: 1;
  overflow-y: auto;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.card-title i {
  color: var(--accent-gold);
  font-size: 0.9375rem;
}

/* Checklist Styles */
.checklist-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  min-height: 36px;
  transition: all 0.2s;
}

.checklist-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
}

.checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item span {
  flex: 1;
  color: var(--text-primary);
}

.checklist-item span.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Reorder buttons */
.item-reorder {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.checklist-item:hover .item-reorder {
  opacity: 1;
}

.reorder-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  font-size: 0.625rem;
  line-height: 1;
  transition: color 0.2s;
}

.reorder-btn:hover:not(:disabled) {
  color: var(--accent-gold);
}

.reorder-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Edit and delete buttons */
.checklist-item .edit-btn,
.checklist-item .delete-btn {
  opacity: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
}

.checklist-item:hover .edit-btn,
.checklist-item:hover .delete-btn {
  opacity: 1;
}

.checklist-item .edit-btn:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
}

.checklist-item .delete-btn:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
}

/* Edit mode */
.checklist-item .edit-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  outline: none;
}

.checklist-item .save-btn,
.checklist-item .cancel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.checklist-item .save-btn {
  color: var(--accent-teal);
}

.checklist-item .save-btn:hover {
  color: var(--accent-teal-light);
}

.checklist-item .cancel-btn {
  color: var(--accent-red);
}

.checklist-item .cancel-btn:hover {
  color: #f87171;
}

.empty-state {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  font-style: italic;
}

/* Add Form */
.add-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-form input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
  min-height: 36px;
  box-sizing: border-box;
  line-height: 1.2;
}

.add-form input::placeholder {
  color: var(--text-muted);
}

.add-form input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-secondary);
}

.add-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  background: var(--accent-gold-light);
  transform: translateY(-1px);
}

.add-btn:active {
  transform: translateY(0);
}

/* Finance Panel */
.finance-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.finance-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem;
  gap: 0.5rem;
  flex-shrink: 0;
  overflow-x: auto;
}

.finance-tabs button {
  flex: 1;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 36px;
}

.finance-tabs button:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.finance-tabs button.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

/* Finance Overview */
.finance-overview {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.balance-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.balance-input label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-with-prefix span {
  padding: 0.625rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-right: 1px solid var(--border-color);
}

.input-with-prefix input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
}

.input-with-prefix.small {
  font-size: 0.8125rem;
}

.input-with-prefix.small span {
  padding: 0.5rem 0.5rem;
  font-size: 0.8125rem;
}

.input-with-prefix.small input {
  padding: 0.5rem;
  font-size: 0.8125rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-card .value {
  font-size: 1.125rem;
  font-weight: 600;
}

.stat-card.income .value {
  color: var(--accent-green);
}

.stat-card.expense .value {
  color: var(--accent-red);
}

.stat-card.savings .value {
  color: var(--accent-blue);
}

.stat-card.daily .value {
  color: var(--text-primary);
}

/* Finance List */
.finance-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.add-btn-small {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.add-btn-small:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

/* Add Item Form */
.add-item-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
}

.add-item-form input,
.add-item-form select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
}

.add-item-form input::placeholder {
  color: var(--text-muted);
}

.add-item-form input:focus,
.add-item-form select:focus {
  border-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.submit-btn {
  background: var(--accent-gold);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bg-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--accent-gold-light);
}

/* Items List */
.items-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.finance-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: all 0.2s;
}

.finance-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
}

.finance-item .item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.finance-item .item-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.finance-item .name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.finance-item .meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.finance-item .item-amount {
  font-size: 0.875rem;
  font-weight: 600;
}

.finance-item.income .item-amount {
  color: var(--accent-green);
}

.finance-item.expense .item-amount {
  color: var(--accent-red);
}

.finance-item .edit-btn,
.finance-item .delete-btn {
  opacity: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
}

.finance-item:hover .edit-btn,
.finance-item:hover .delete-btn {
  opacity: 1;
}

.finance-item .edit-btn:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
}

.finance-item .delete-btn:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
}

/* Forecast View */
.forecast-view {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.forecast-toggle {
  display: flex;
  gap: 0.5rem;
}

.forecast-toggle button {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.2s;
}

.forecast-toggle button:hover {
  color: var(--text-primary);
}

.forecast-toggle button.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.chart-container {
  flex: 1;
  min-height: 200px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Daily View */
.daily-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.month-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.month-select:focus {
  border-color: var(--accent-gold);
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
  flex: 1;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .daily-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
  }
}

.daily-card {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-height: 80px;
  transition: all 0.2s;
  cursor: default;
}

.daily-card:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.daily-card.positive {
  border-left: 2px solid var(--accent-green);
}

.daily-card.negative {
  border-left: 2px solid var(--accent-red);
}

.day-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.day-name {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.day-balance {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.day-change {
  font-size: 0.625rem;
  font-weight: 500;
}

.day-change.positive {
  color: var(--accent-green);
}

.day-change.negative {
  color: var(--accent-red);
}

/* Thoughts Card (Legacy) */
.thoughts-card {
  height: 100%;
}

.thoughts-card textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  resize: none;
  outline: none;
  line-height: 1.6;
  font-family: inherit;
  min-height: 150px;
}

.thoughts-card textarea::placeholder {
  color: var(--text-muted);
}

.thoughts-card textarea:focus {
  border-color: var(--accent-gold);
}

/* Focus & Reflection Card */
.focus-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.focus-section {
  margin-bottom: 1rem;
}

.focus-section:last-child {
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.section-subtitle i {
  font-size: 0.75rem;
}

/* Focus Areas */
.focus-areas-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.focus-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.625rem;
  transition: border-color 0.2s;
}

.focus-area-item:hover {
  border-color: var(--border-hover);
}

.focus-area-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.priority-indicator {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: white;
}

.focus-text {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Reflections */
.reflections-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reflection-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.625rem;
  transition: border-color 0.2s;
}

.reflection-item:hover {
  border-color: var(--border-hover);
}

.reflection-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}

.reflection-content i {
  font-size: 0.8125rem;
  color: var(--accent-gold);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.reflection-text {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.delete-btn-small {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.delete-btn-small:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Focus Notes Textarea */
.focus-notes-textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  resize: none;
  outline: none;
  line-height: 1.6;
  font-family: inherit;
  min-height: 100px;
}

.focus-notes-textarea::placeholder {
  color: var(--text-muted);
}

.focus-notes-textarea:focus {
  border-color: var(--accent-gold);
}

/* Chat Sidebar */
.chat-sidebar {
  width: 360px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .chat-sidebar {
    display: flex;
  }
}

.chat-sidebar.mobile-open {
  display: flex;
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-header i {
  color: var(--accent-purple);
}

.close-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.close-chat:hover {
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .close-chat {
    display: none;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Subscription Loading */
.subscription-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
}

/* Subscription Paywall */
.subscription-paywall {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.paywall-content {
  text-align: center;
  max-width: 280px;
}

.paywall-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-primary);
}

.paywall-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.paywall-content > p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.paywall-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.paywall-features li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paywall-features li i {
  color: var(--accent-green);
  font-size: 0.75rem;
}

.paywall-price {
  margin-bottom: 1rem;
}

.paywall-price .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.paywall-price .period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.upgrade-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-light)
  );
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.paywall-note {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(212, 175, 55, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
    ellipse at 80% 100%,
    rgba(99, 102, 241, 0.06) 0%,
    transparent 50%
  ),
    var(--bg-primary);
}

/* Landing Nav */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-nav .logo:hover {
  color: var(--text-primary);
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-nav .nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-nav .nav-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-gold-light) 50%,
    var(--text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Sign In Card */
.signin-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

.signin-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.signin-card .form-group {
  margin-bottom: 1rem;
}

.signin-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.signin-card input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.signin-card input[type="email"]::placeholder {
  color: var(--text-muted);
}

.signin-card input[type="email"]:focus {
  border-color: var(--accent-gold);
}

.signin-card .submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-gold);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bg-primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.signin-card .submit-btn:hover:not(:disabled) {
  background: var(--accent-gold-light);
  transform: translateY(-1px);
}

.signin-card .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signin-card .signin-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.signin-card .message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.signin-card .message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.signin-card .message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card .feature-icon.checklist {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-blue);
}

.feature-card .feature-icon.finance {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.feature-card .feature-icon.thoughts {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.feature-card .feature-icon.ai {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.pricing-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-section .pricing-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-card .price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card .pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card .pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-card .pricing-features li i {
  color: var(--accent-green);
}

/* Footer */
.landing-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.landing-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Assistant Ad */
.assistant-ad {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .assistant-ad {
    padding: 0.25rem;
  }
}

/* Utility Classes */
.text-muted-gold {
  color: var(--accent-gold);
}
.text-warm-beige {
  color: var(--text-primary);
}
.text-white {
  color: white;
}
.text-white\/40 {
  color: var(--text-muted);
}
.text-white\/30 {
  color: var(--text-muted);
}
.text-green-400 {
  color: var(--accent-green);
}
.text-red-400 {
  color: var(--accent-red);
}
.bg-oreo-black {
  background-color: var(--bg-primary);
}
.min-h-screen {
  min-height: 100vh;
}
