﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROP STUDIES â€” Design System
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --bg: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --primary: #5B8AF0;
  --primary-dark: #3A6BD4;
  --primary-light: #EEF2FF;
  --secondary: #7EC8A4;
  --accent: #F7C948;
  --danger: #EF5350;
  --text: #2D3748;
  --text-muted: #718096;
  --text-light: #A0AEC0;
  --border: #E2E8F0;
  --shadow: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --font: 'Inter', sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #1A1D23;
  --bg-card: #242830;
  --bg-sidebar: #1E2128;
  --text: #E8EAF0;
  --text-muted: #9BA3B2;
  --text-light: #6B7280;
  --border: #2E3340;
  --shadow: 0 2px 15px rgba(0,0,0,0.3);
  --primary-light: #1E2A4A;
}

[data-theme="nature"] {
  --bg: #F0F4EE;
  --bg-card: #FAFCF8;
  --bg-sidebar: #FAFCF8;
  --primary: #5A9A6F;
  --primary-dark: #3D7A52;
  --primary-light: #E8F4EC;
  --secondary: #8BC4A5;
}

[data-theme="ocean"] {
  --bg: #EEF4FA;
  --bg-card: #FAFCFF;
  --bg-sidebar: #FAFCFF;
  --primary: #2B82C8;
  --primary-dark: #1A6BA8;
  --primary-light: #E0EEF8;
}

[data-high-contrast="true"] {
  --text: #000000;
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #000000;
  --text-muted: #333333;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* â”€â”€ Scrollbar â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* â”€â”€ Typography â”€â”€ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { color: var(--text-muted); }

.hidden { display: none !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AUTH
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.auth-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5B8AF0 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

.auth-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.auth-logo h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #2D3748; }
.auth-logo p { color: #718096; font-size: 0.9rem; margin-top: 4px; }

.auth-tabs { display: flex; gap: 4px; background: #F4F6F9; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 7px; cursor: pointer; font-size: 0.9rem; color: #718096; transition: all 0.2s; }
.auth-tab.active { background: white; color: #2D3748; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

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

.auth-error { color: #EF5350; font-size: 0.85rem; text-align: center; margin-top: 8px; min-height: 20px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LAYOUT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease, background var(--transition);
  flex-shrink: 0;
  z-index: 100;
}

.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-user span,
.sidebar.collapsed .user-bio-mini { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.sidebar-logo span:first-child { font-size: 1.4rem; }
.sidebar-title { font-family: 'Playfair Display', serif; color: var(--text); }

.sidebar-toggle { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; font-size: 1rem; }
.sidebar-toggle:hover { background: var(--primary-light); color: var(--primary); }

.nav-section { padding: 16px 10px 4px; }
.nav-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 0 6px; display: block; margin-bottom: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  background: none; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.87rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap; text-align: left;
}
.nav-item i { width: 18px; text-align: center; font-size: 0.95rem; flex-shrink: 0; }
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.sidebar-user {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500;
  flex-shrink: 0;
}

.user-avatar-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; overflow: hidden; flex-shrink: 0;
  background-size: cover; background-position: center;
}

.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  position: relative;
}

.tab-content {
  display: none; min-height: 100vh;
  padding: 32px 36px;
  animation: fadeIn 0.3s ease;
}
.tab-content.active { display: block; }
#tab-home.active { display: flex; }

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

.tab-header {
  margin-bottom: 28px;
  display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap;
}
.tab-header h2 { flex: 1; }
.tab-header p { width: 100%; margin-top: -16px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BUTTONS & FORMS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.btn-primary {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm); padding: 9px 18px;
  font-size: 0.87rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91,138,240,0.35); }

.btn-secondary {
  background: var(--primary-light); color: var(--primary);
  border: none; border-radius: var(--radius-sm); padding: 9px 18px;
  font-size: 0.87rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: var(--primary); color: white; }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 18px;
  font-size: 0.87rem; cursor: pointer; transition: all var(--transition);
}
.btn-ghost:hover { background: var(--bg); }

.btn-small {
  background: var(--primary-light); color: var(--primary);
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all var(--transition);
}
.btn-small:hover { background: var(--primary); color: white; }

.btn-icon {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
  color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger { background: var(--danger); color: white; border: none; }
.btn-danger:hover { background: #C62828; color: white; }

.btn-back {
  background: none; border: none; color: var(--primary);
  cursor: pointer; font-size: 0.87rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
}
.btn-back:hover { opacity: 0.7; }

.w-full { width: 100%; justify-content: center; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--text); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"],
input[type="datetime-local"], textarea, select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color var(--transition);
  width: 100%;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,138,240,0.12);
  background: var(--bg-card);
}

textarea { resize: vertical; min-height: 80px; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#tab-home {
  position: relative; padding: 0;
  align-items: center; justify-content: center;
  min-height: 100vh; overflow: hidden;
}
#tab-home.active { display: flex; }

.home-bg {
  position: absolute; inset: 0;
  background: var(--bg);
  background-size: cover; background-position: center;
  transition: all 0.5s ease;
  z-index: 0;
}

.home-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.05);
  z-index: 1;
}

.home-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px;
  width: 100%;
  max-width: 800px;
}

.home-greeting {
  grid-column: 1 / -1;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  text-align: center;
  opacity: 1;
  display: flex; flex-direction: column; gap: 4px;
}

.home-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="dark"] .home-card {
  background: rgba(36,40,48,0.92);
  border-color: rgba(255,255,255,0.08);
}

/* Timer */
.timer-card { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.timer-display {
  font-size: 4.5rem; font-weight: 300; letter-spacing: -2px;
  color: var(--text); font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
}

.timer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

.timer-controls { display: flex; gap: 10px; align-items: center; }
.timer-controls .btn-icon { font-size: 1rem; padding: 10px 14px; }

.timer-presets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.preset-btn {
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 0.78rem; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition);
}
.preset-btn.active, .preset-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.timer-subject input { text-align: center; border-radius: 20px; width: 100%; }
.pomodoro-count { font-size: 0.78rem; color: var(--text-muted); }

/* Goals Card */
.goals-card { grid-column: 2; grid-row: 3; }
.goals-card h3 { margin-bottom: 12px; font-size: 0.95rem; }

.goals-input { display: flex; gap: 8px; margin-bottom: 12px; }
.goals-input input { flex: 1; }

.goals-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.goal-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; background: var(--bg);
  font-size: 0.85rem;
}
.goal-item.done span { text-decoration: line-through; color: var(--text-muted); }
.goal-item input[type="checkbox"] { cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.goal-item .delete-goal { margin-left: auto; background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; }
.goal-item:hover .delete-goal { opacity: 1; }
.goal-item span { flex: 1; }

/* Music Card */
.music-card { grid-column: 2; grid-row: 2; }
.music-card h3 { margin-bottom: 12px; font-size: 0.95rem; }
.music-options { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.music-btn {
  padding: 4px 10px; border-radius: 16px; font-size: 0.78rem;
  border: 1.5px solid var(--border); background: transparent;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition);
}
.music-btn.active, .music-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.music-url-row { display: flex; gap: 8px; margin-bottom: 10px; }
.music-player { display: flex; align-items: center; gap: 10px; }
.music-player input[type="range"] { flex: 1; accent-color: var(--primary); }

/* Background Card */
.bg-card { grid-column: 1 / -1; }
.bg-card h3 { margin-bottom: 12px; font-size: 0.95rem; }
.bg-options { display: flex; gap: 6px; margin-bottom: 12px; }
.bg-opt {
  padding: 5px 12px; border-radius: 16px; font-size: 0.8rem;
  border: 1.5px solid var(--border); background: transparent;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition);
}
.bg-opt.active, .bg-opt:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.bg-controls { display: flex; gap: 10px; align-items: center; }
input[type="color"] { width: 40px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); cursor: pointer; padding: 2px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FRIENDS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.friends-lobby { max-width: 700px; }
.lobby-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.lobby-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.lobby-card h3 { margin-bottom: 4px; }

.friends-room { height: calc(100vh - 80px); display: flex; flex-direction: column; }

.room-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.room-info { display: flex; align-items: center; gap: 12px; }
.room-code { font-size: 0.83rem; color: var(--text-muted); }
.room-controls { display: flex; gap: 8px; }

.toggle-btn.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.toggle-btn.off { background: #FFEBEE; color: var(--danger); border-color: #FFCDD2; }

.room-layout { display: flex; gap: 16px; flex: 1; overflow: hidden; }

.videos-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; overflow-y: auto; align-content: start;
}

.videos-grid.minimized {
  display: flex; flex-wrap: wrap;
  align-content: flex-start;
}
.videos-grid.minimized .video-tile {
  width: 100px; height: 75px;
}
.videos-grid.minimized .video-tile video { width: 100%; height: 100%; object-fit: cover; }

.video-tile {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #1a1a2e; aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-label {
  position: absolute; bottom: 6px; left: 8px;
  background: rgba(0,0,0,0.5); color: white;
  font-size: 0.75rem; padding: 2px 8px; border-radius: 10px;
}
.video-controls { position: absolute; top: 6px; right: 6px; }
.video-mic-icon { background: rgba(0,0,0,0.4); color: white; border-radius: 50%; padding: 4px 6px; font-size: 0.7rem; }

.room-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; }

.chat-box {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  height: 100%;
}
.chat-header { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { font-size: 0.82rem; }
.chat-msg .chat-user { font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.chat-msg .chat-text { color: var(--text); }
.chat-msg .chat-time { color: var(--text-light); font-size: 0.72rem; }
.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.global-new-post {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.post-input-area { display: flex; gap: 12px; margin-bottom: 12px; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--primary-light); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 1rem; }
.post-input-area textarea { flex: 1; border-radius: 10px; min-height: 70px; }
.post-footer { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }

.global-feed { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-header-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 0.88rem; }
.post-header-info { flex: 1; }
.post-username { font-weight: 600; font-size: 0.9rem; }
.post-time { font-size: 0.75rem; color: var(--text-light); }
.post-category-badge {
  padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}
.post-content { font-size: 0.9rem; color: var(--text); margin-bottom: 14px; white-space: pre-wrap; }
.post-actions { display: flex; gap: 12px; align-items: center; }
.post-action-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 0.83rem; display: flex; align-items: center; gap: 5px;
  transition: color var(--transition);
}
.post-action-btn:hover, .post-action-btn.liked { color: var(--primary); }
.post-delete-btn { margin-left: auto; color: var(--danger); }

.post-comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.comment-item { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.83rem; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; background-size: cover; background-position: center; }
.comment-body strong { font-size: 0.8rem; color: var(--primary); }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NOTEBOOKS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.notebooks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.notebook-card {
  border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; position: relative;
  color: white; overflow: hidden;
  aspect-ratio: 5/4;
  display: flex; flex-direction: column; justify-content: space-between;
}
.notebook-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.notebook-card h3 { font-size: 1.05rem; word-break: break-word; }
.notebook-card p { font-size: 0.78rem; opacity: 0.85; }
.notebook-card-emoji { font-size: 1.8rem; }
.notebook-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.notebook-card:hover .notebook-actions { opacity: 1; }
.notebook-actions button { background: rgba(0,0,0,0.3); border: none; color: white; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 0.75rem; }

.detail-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.detail-header h3 { flex: 1; font-size: 1.2rem; }

.detail-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; }
.detail-tab {
  padding: 7px 16px; border: none; background: transparent; border-radius: 7px;
  cursor: pointer; font-size: 0.83rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.detail-tab.active { background: var(--bg-card); color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }

.detail-section { display: none; }
.detail-section.active { display: block; }

/* Notes */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; margin-bottom: 20px; }

.note-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--border); cursor: pointer; transition: all var(--transition);
  position: relative;
}
.note-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.note-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.note-card p { font-size: 0.78rem; color: var(--text-muted); max-height: 60px; overflow: hidden; }
.note-card-date { font-size: 0.72rem; color: var(--text-light); margin-top: 8px; }
.note-card-del { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--danger); cursor: pointer; opacity: 0; font-size: 0.8rem; }
.note-card:hover .note-card-del { opacity: 1; }

#note-editor { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-top: 16px; }
.editor-header { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.editor-header input { flex: 1; border: none; background: transparent; font-size: 1rem; font-weight: 600; }
.editor-toolbar { padding: 8px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 4px; flex-wrap: wrap; }
.editor-toolbar button {
  padding: 4px 10px; border: 1px solid var(--border); background: var(--bg);
  border-radius: 6px; cursor: pointer; font-size: 0.8rem; color: var(--text);
}
.editor-toolbar button:hover { background: var(--primary-light); border-color: var(--primary); }
.editor-body { padding: 20px; min-height: 300px; outline: none; font-size: 0.92rem; line-height: 1.7; }
.editor-body:focus { outline: none; }

/* Flashcards */
.flashcards-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fc-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--border); position: relative;
}
.fc-card .front { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.fc-card .back { font-size: 0.85rem; color: var(--text-muted); padding-top: 8px; border-top: 1px dashed var(--border); }
.fc-card .review-date { font-size: 0.72rem; color: var(--text-light); margin-top: 8px; }
.fc-del { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--danger); cursor: pointer; opacity: 0; font-size: 0.75rem; }
.fc-card:hover .fc-del { opacity: 1; }

.flashcard-review {
  max-width: 480px; margin: 20px auto;
  background: var(--bg-card); border-radius: 20px; padding: 40px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  text-align: center;
}
.fc-front { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.fc-back { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; padding: 16px; background: var(--bg); border-radius: 10px; }
.fc-quality { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.q-btn { padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.87rem; }
.q-0 { background: #FFEBEE; color: #C62828; }
.q-3 { background: #FFF8E1; color: #E65100; }
.q-4 { background: #E8F5E9; color: #2E7D32; }
.q-5 { background: #E3F2FD; color: #1565C0; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#review-progress { color: var(--text-muted); font-size: 0.85rem; }

/* Mindmap */
.mindmaps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.mindmap-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all var(--transition); text-align: center; position: relative;
}
.mindmap-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.mindmap-item i { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.mindmap-item h4 { font-size: 0.9rem; }
.mindmap-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: var(--danger); cursor: pointer; opacity: 0; font-size: 0.75rem; }
.mindmap-item:hover .mindmap-del { opacity: 1; }

.mindmap-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mindmap-instructions { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
#mindmap-canvas { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); cursor: crosshair; display: block; }

/* Quiz */
#quizzes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.quiz-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; position: relative;
}
.quiz-item h4 { margin-bottom: 6px; }
.quiz-actions { display: flex; gap: 6px; margin-top: 10px; }
.quiz-del { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--danger); cursor: pointer; opacity: 0; font-size: 0.75rem; }
.quiz-item:hover .quiz-del { opacity: 1; }

.quiz-editor-header { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.quiz-editor-header input { flex: 1; }
.question-block { background: var(--bg); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.question-block input { margin-bottom: 8px; }
.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.option-row input[type="radio"] { flex-shrink: 0; accent-color: var(--primary); }
.option-row input[type="text"] { flex: 1; }
.add-option-btn { font-size: 0.78rem; }

#quiz-runner { max-width: 600px; margin: 0 auto; }
.quiz-question { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; border: 1px solid var(--border); }
.quiz-question h4 { margin-bottom: 14px; }
.quiz-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--border); margin-bottom: 8px;
  transition: all var(--transition);
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.correct { background: #E8F5E9; border-color: #4CAF50; }
.quiz-option.wrong { background: #FFEBEE; border-color: #EF5350; }
.quiz-result { text-align: center; padding: 32px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHARTS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.charts-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center;
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-container {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.chart-container h3 { margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted); }
.chart-container canvas { max-height: 250px; }

.charts-grid .chart-container:last-child { grid-column: 1 / -1; }

.custom-charts-section { margin-top: 8px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.custom-charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.custom-chart-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow); position: relative;
}
.custom-chart-card h4 { margin-bottom: 12px; }
.custom-chart-card canvas { max-height: 200px; }
.custom-chart-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCHEDULE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.schedule-grid {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.schedule-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.schedule-table th {
  padding: 12px 10px; text-align: center; font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.schedule-table td { padding: 4px; vertical-align: top; min-width: 100px; height: 50px; border: 1px solid var(--border); position: relative; }
.time-cell { padding: 6px 10px; font-size: 0.75rem; color: var(--text-muted); text-align: right; background: var(--bg); font-weight: 600; white-space: nowrap; }

.schedule-block {
  border-radius: 6px; padding: 4px 8px; font-size: 0.75rem; font-weight: 600;
  color: white; margin: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: opacity var(--transition);
}
.schedule-block:hover { opacity: 0.85; }
.schedule-block .block-del { background: rgba(0,0,0,0.3); border: none; color: white; border-radius: 4px; padding: 0 4px; cursor: pointer; font-size: 0.7rem; margin-left: 4px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CALENDAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.calendar-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.calendar-nav h3 { min-width: 160px; text-align: center; font-size: 1.1rem; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.cal-header-day {
  text-align: center; font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); padding: 8px 0; text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 6px 4px; font-size: 0.82rem; transition: all var(--transition);
  border: 1.5px solid transparent; position: relative;
}
.cal-day:hover { background: var(--primary-light); border-color: var(--primary); }
.cal-day.today { background: var(--primary); color: white; font-weight: 700; }
.cal-day.today:hover { background: var(--primary-dark); }
.cal-day.other-month { opacity: 0.35; }
.cal-day.has-events::after {
  content: ''; position: absolute; bottom: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--secondary);
}
.cal-day.today.has-events::after { background: white; }

.day-events-panel {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--border);
}
.day-events-panel h4 { margin-bottom: 12px; }

.event-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 8px;
  border-left: 4px solid var(--primary); background: var(--bg);
  font-size: 0.85rem;
}
.event-item .event-time { font-size: 0.75rem; color: var(--text-muted); }
.event-item-actions { margin-left: auto; display: flex; gap: 6px; }
.event-item-actions button { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 0.78rem; }
.event-item-actions button:hover { color: var(--danger); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   REMINDERS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.reminders-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reminders-column h3 { margin-bottom: 14px; font-size: 0.95rem; }

.reminder-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.reminder-item.done { opacity: 0.5; }
.reminder-item.done .reminder-title { text-decoration: line-through; }
.reminder-item input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.reminder-info { flex: 1; }
.reminder-title { font-size: 0.87rem; font-weight: 500; }
.reminder-datetime { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.reminder-recurring { font-size: 0.7rem; color: var(--primary); background: var(--primary-light); padding: 1px 6px; border-radius: 8px; display: inline-block; margin-top: 3px; }
.reminder-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.8rem; opacity: 0; }
.reminder-item:hover .reminder-del { opacity: 1; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BOOKS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.books-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; margin-bottom: 24px; width: fit-content; }

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

.book-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition); cursor: pointer; position: relative;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.book-cover {
  height: 160px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background-size: cover; background-position: center;
  position: relative;
}
.book-status-badge {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 0.68rem; font-weight: 700; padding: 2px 7px;
  border-radius: 10px; background: rgba(0,0,0,0.6); color: white;
}

.book-info { padding: 12px; }
.book-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 3px; }
.book-author { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.book-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.book-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.book-progress-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

.star-rating { display: flex; gap: 4px; }
.star-rating button {
  background: none; border: none; cursor: pointer; font-size: 1.4rem;
  color: var(--border); transition: color var(--transition);
}
.star-rating button.active { color: var(--accent); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GOALS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.goals-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-filter {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; font-size: 0.82rem; color: var(--text-muted);
  transition: all var(--transition);
}
.cat-filter.active, .cat-filter:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

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

.goal-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; transition: all var(--transition);
  border-top: 4px solid var(--primary);
}
.goal-card:hover { box-shadow: var(--shadow-md); }
.goal-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.goal-emoji { font-size: 1.8rem; }
.goal-card-title { flex: 1; }
.goal-card-title h4 { font-size: 0.95rem; margin-bottom: 3px; }
.goal-category-badge { font-size: 0.72rem; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 8px; display: inline-block; }
.goal-description { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 14px; }
.goal-progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.goal-progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.goal-progress-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; }
.goal-tasks-preview { font-size: 0.8rem; margin-bottom: 12px; }
.goal-tasks-preview .task-item { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.goal-tasks-preview .task-item input[type="checkbox"] { accent-color: var(--primary); flex-shrink: 0; }
.goal-deadline { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.goal-card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; }
.goal-card:hover .goal-card-actions { opacity: 1; }
.goal-card-actions button { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; cursor: pointer; font-size: 0.75rem; color: var(--text-muted); }
.goal-card-actions button:hover { color: var(--primary); border-color: var(--primary); }

.goal-tasks-field { margin-top: 8px; }
#goal-tasks-list .task-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
#goal-tasks-list .task-row span { flex: 1; font-size: 0.85rem; }
#goal-tasks-list .task-row button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.75rem; }
.task-input-row { display: flex; gap: 8px; margin-top: 8px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SELF NOTES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.selfnotes-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.selfnotes-left, .selfnotes-right { display: flex; flex-direction: column; gap: 20px; }

.mood-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.mood-section h3 { margin-bottom: 16px; }

.mood-slider { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mood-slider input[type="range"] { accent-color: var(--primary); width: 100%; }
.mood-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.mood-display { text-align: center; font-weight: 700; font-size: 1rem; color: var(--primary); padding: 6px; background: var(--primary-light); border-radius: 8px; }

.emotions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.emotion-btn {
  padding: 7px 4px; border-radius: 8px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; font-size: 0.78rem; color: var(--text);
  transition: all var(--transition);
}
.emotion-btn.selected, .emotion-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.journal-section { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.journal-section h3 { margin-bottom: 12px; }
.journal-section textarea { margin-bottom: 12px; min-height: 160px; }

.mood-chart-container { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.mood-chart-container h3 { margin-bottom: 16px; }

.past-entries { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.past-entries h3 { margin-bottom: 14px; }

.entry-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; border-radius: 8px; background: var(--bg); margin-bottom: 8px; cursor: pointer;
  transition: background var(--transition);
}
.entry-item:hover { background: var(--primary-light); }
.entry-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.entry-mood-badge { font-size: 0.75rem; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.entry-preview { flex: 1; font-size: 0.8rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.diary-month-section { margin-bottom: 16px; }
.diary-month-label { font-size: 0.8rem; font-weight: 700; text-transform: capitalize; color: var(--primary); padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HABITS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.habits-today { background: var(--bg-card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 28px; }
.habits-today h3 { margin-bottom: 16px; }
.habits-list { display: flex; flex-direction: column; gap: 10px; }

.habit-today-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); transition: all var(--transition); cursor: pointer;
}
.habit-today-item.done { border-color: var(--secondary); background: #F0FBF5; }
[data-theme="dark"] .habit-today-item.done { background: #1a2e24; border-color: var(--secondary); }
.habit-today-item.done .habit-today-name { text-decoration: line-through; color: var(--text-muted); }
.habit-emoji { font-size: 1.4rem; }
.habit-today-name { flex: 1; font-weight: 500; }
.habit-streak { font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.habit-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0; }
.habit-today-item.done .habit-check { background: var(--secondary); border-color: var(--secondary); color: white; }

.habits-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.habit-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow); position: relative;
}
.habit-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.habit-card-title { flex: 1; }
.habit-card-title h4 { font-size: 0.9rem; }
.habit-card-title p { font-size: 0.75rem; color: var(--text-muted); }
.habit-card-streak { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.habit-heatmap { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; }
.heat-cell { width: 12px; height: 12px; border-radius: 2px; background: var(--border); transition: background var(--transition); }
.heat-cell.done { background: var(--secondary); }
.habit-card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; }
.habit-card:hover .habit-card-actions { opacity: 1; }
.habit-card-actions button { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; cursor: pointer; font-size: 0.75rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SETTINGS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }

.settings-nav {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 12px; border: 1px solid var(--border);
  height: fit-content;
}
.settings-tab {
  text-align: left; padding: 10px 14px; border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.settings-tab.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.settings-tab:hover:not(.active) { background: var(--bg); }

.settings-content { background: var(--bg-card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.settings-panel { display: none; flex-direction: column; gap: 20px; }
.settings-panel.active { display: flex; }
.settings-panel h3 { font-size: 1rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.settings-panel hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden;
  background-size: cover; background-position: center;
}

.theme-options { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-opt {
  padding: 8px 16px; border-radius: 10px; border: 2px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px; transition: all var(--transition);
}
.theme-opt.active, .theme-opt:hover { border-color: var(--primary); color: var(--primary); }

.toggle-field { flex-direction: row; align-items: center; justify-content: space-between; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 12px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%; background: white;
  left: 3px; bottom: 3px; transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MODALS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-card); border-radius: 20px; padding: 28px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 14px;
}
.modal-content.wide { max-width: 560px; }
.modal-content h3 { margin-bottom: 4px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOAST
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }

.toast {
  background: var(--text); color: white; border-radius: 12px; padding: 12px 18px;
  font-size: 0.87rem; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease; pointer-events: auto; max-width: 300px;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: #2E7D32; }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 1100px) {
  .charts-grid { grid-template-columns: 1fr; }
  .charts-grid .chart-container:last-child { grid-column: 1; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 60px; }
  .sidebar-title, .nav-label, .nav-item span, .sidebar-user span, .sidebar-user-info, .user-bio-mini { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .sidebar-toggle { display: none; }
  .tab-content { padding: 20px 16px; }
  .home-inner { grid-template-columns: 1fr; max-width: 400px; }
  .timer-card { grid-row: auto; }
  .music-card { grid-column: 1; grid-row: auto; }
  .goals-card { grid-column: 1; grid-row: auto; }
  .bg-card { grid-column: 1; }
  .charts-overview { grid-template-columns: repeat(2, 1fr); }
  .lobby-actions { grid-template-columns: 1fr; }
  .room-layout { flex-direction: column; }
  .room-sidebar { width: 100%; height: 200px; }
  .selfnotes-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .reminders-sections { grid-template-columns: 1fr; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MISC
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.loading-posts { text-align: center; color: var(--text-muted); padding: 40px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; display: block; }
.empty-state p { font-size: 0.9rem; }

.new-flashcard-form, .new-book-form { background: var(--bg); border-radius: 10px; padding: 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; background: var(--border); border-radius: 2px; border: none; padding: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; }

[data-reduce-motion="true"] * { animation: none !important; transition: none !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PASTEL PALETTE â€” Settings
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.pastel-palette {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center;
}
.pastel-swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.pastel-swatch:hover { transform: scale(1.15); }
.pastel-swatch.active { border-color: var(--text); transform: scale(1.1); }
.pastel-swatch.custom-swatch {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  position: relative; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem;
}
.pastel-swatch.custom-swatch input[type="color"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; border: none; padding: 0;
}
.pastel-swatch.custom-swatch i { pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DREAMS TAB
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.dreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 4px 0;
}
.dream-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid #D4A8E8;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.dream-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dream-emoji { font-size: 2.2rem; line-height: 1; }
.dream-body { flex: 1; }
.dream-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.dream-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.dream-progress-bar {
  width: 100%; height: 5px; background: var(--border);
  border-radius: 3px; margin-top: 10px; overflow: hidden;
}
.dream-progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.dream-progress-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.dream-deadline { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.dream-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dream-done-badge { color: var(--secondary); font-size: 0.78rem; font-weight: 700; }
.dreams-empty { grid-column: 1 / -1; }
.dreams-empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; text-align: center; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VLIBRAS WIDGET VISIBILITY
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#vlibras-widget.hidden { display: none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CUSTOM EMOTION ROW
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.custom-emotion-row {
  display: flex; gap: 8px; align-items: center; margin-top: 12px;
}
.custom-emotion-row input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 0.9rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NOTEPAD
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.notepad-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 24px; min-height: 70vh; }
@media (max-width: 700px) { .notepad-layout { grid-template-columns: 1fr; } }
.notepad-sidebar { background: var(--surface); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.notepad-folder-item { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); transition: background 0.15s; margin-bottom: 4px; }
.notepad-folder-item:hover, .notepad-folder-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.notepad-main { display: flex; flex-direction: column; gap: 16px; }
.notepad-editor { background: var(--surface); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.notepad-editor-header { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.notepad-editor-header input { flex: 1; min-width: 120px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.notepad-editor textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; }
#notepad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.notepad-note-card { background: var(--surface); border-radius: 12px; padding: 16px; border: 1px solid var(--border); cursor: pointer; transition: box-shadow 0.2s; }
.notepad-note-card:hover { box-shadow: var(--shadow-md); }
.notepad-note-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.notepad-folder-badge { background: var(--primary-light); color: var(--primary); font-size: 0.72rem; padding: 2px 8px; border-radius: 12px; white-space: nowrap; }
.notepad-note-preview { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.notepad-note-actions { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MINHA SEMANA
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; padding: 24px; overflow-x: auto; }
@media (max-width: 900px) { .week-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); } }
@media (max-width: 600px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
.week-col { background: var(--surface); border-radius: 12px; padding: 14px; border: 1px solid var(--border); min-height: 200px; }
.week-col-header { font-weight: 700; font-size: 0.88rem; color: var(--text-muted); text-align: center; padding-bottom: 10px; border-bottom: 2px solid var(--border); margin-bottom: 10px; }
.week-col-header.today { color: var(--primary); border-bottom-color: var(--primary); }
.week-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.week-item.done span { text-decoration: line-through; color: var(--text-muted); }
.week-del-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.75rem; margin-left: auto; opacity: 0; transition: opacity 0.15s; }
.week-item:hover .week-del-btn { opacity: 1; }
.week-add-row { display: flex; gap: 6px; margin-top: 10px; }
.week-input { flex: 1; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 0.82rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   IMPORTANTE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.important-container { padding: 24px; max-width: 700px; }
.important-add { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.important-add input, .important-add select { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.important-add input { flex: 1; }
.important-list { display: flex; flex-direction: column; gap: 10px; }
.important-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--border); transition: opacity 0.2s; }
.important-item.priority-alta { border-left-color: #EF5350; }
.important-item.priority-normal { border-left-color: #F7C948; }
.important-item.priority-baixa { border-left-color: #7EC8A4; }
.important-item.done { opacity: 0.5; }
.important-item.done .important-text { text-decoration: line-through; }
.important-home-card { grid-column: 1; }
.important-home-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.important-home-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text); }
.important-text { flex: 1; font-size: 0.95rem; }
.important-del-btn { color: var(--text-muted); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BLOG
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.blog-editor { background: var(--surface); border-radius: 12px; padding: 24px; margin: 16px 24px; border: 1px solid var(--border); }
.blog-editor input[type="text"] { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.blog-visibility { margin-bottom: 12px; color: var(--text-muted); font-size: 0.88rem; }
.blog-editor textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; font-size: 0.95rem; }
#blog-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.blog-post-card { background: var(--surface); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.blog-post-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.blog-post-header h3 { font-size: 1.05rem; }
.blog-visibility-badge { font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.blog-visibility-badge.public { background: #E8F5E9; color: #388E3C; }
.blog-visibility-badge.private { background: #FFF3E0; color: #E65100; }
.blog-category-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; background: var(--primary-light); color: var(--primary); white-space: nowrap; }
.blog-editor-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-editor-meta input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 0.9rem; }
.blog-post-preview { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.blog-post-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ALIMENTAÃ‡ÃƒO
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.food-container { padding: 24px; max-width: 700px; }
.food-add { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.food-add select, .food-add input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.food-add input { flex: 1; }
.food-section { margin-bottom: 20px; }
.food-section h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.food-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 6px; font-size: 0.9rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EXERCÃCIOS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.exercise-container { padding: 24px; max-width: 700px; }
.exercise-add { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.exercise-add input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.exercise-add input:first-child { flex: 1; }
.exercise-summary { font-weight: 700; color: var(--primary); padding: 10px 0; }
.exercise-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 12px 16px; border: 1px solid var(--border); margin-bottom: 8px; }
.exercise-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.exercise-name { font-size: 0.95rem; }
.exercise-notes { font-size: 0.78rem; color: var(--text-muted); }
.exercise-duration { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.exercise-chart-wrap { background: var(--surface); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ABOUT / PROP STUDIES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.about-container { padding: 32px 24px; max-width: 900px; margin: 0 auto; }
.about-hero { text-align: center; padding: 40px 0 32px; }
.about-logo { font-size: 4rem; display: block; margin-bottom: 12px; }
.about-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.about-tagline { font-size: 1.1rem; color: var(--text-muted); }
.about-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 32px; }
.about-card { background: var(--surface); border-radius: 16px; padding: 24px; border: 1px solid var(--border); }
.about-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.about-card p, .about-card ul { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.about-card ul { padding-left: 0; list-style: none; }
.about-card ul li { margin-bottom: 6px; }
.about-footer { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding-top: 16px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DIARY TAB (reutiliza .journal-section e .entry-item)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR USER CARD (top position)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; }
#user-name-mini { font-size: 0.87rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-bio-mini { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sidebar.collapsed .sidebar-user-info { display: none; }
.sidebar.collapsed .sidebar-user { justify-content: center; }

/* â”€â”€ Greeting two-line â”€â”€ */
.greeting-name { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--text); display: block; }
.greeting-phrase { font-size: 0.92rem; font-weight: 400; color: var(--text-muted); display: block; }

/* â”€â”€ Timer display â€” weight 500 (menos negrito, mais elegante) â”€â”€ */
.timer-display { font-weight: 500 !important; font-family: 'Inter', monospace !important; letter-spacing: 0.03em; }

/* â”€â”€ Nav emoji icons â”€â”€ */
.nav-item .nav-emoji { width: 18px; text-align: center; font-size: 1rem; flex-shrink: 0; line-height: 1; }

/* â”€â”€ Ambiente minimize â”€â”€ */
.bg-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.bg-card-header h3 { margin-bottom: 0; }
.btn-minimize-bg { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px 6px; border-radius: 6px; font-size: 0.8rem; }
.btn-minimize-bg:hover { background: var(--primary-light); color: var(--primary); }
.bg-card-body { margin-top: 14px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ABOUT EXPANDED PAGES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.about-section-block { margin-bottom: 28px; }
.about-section-block h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.about-section-block p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.about-section-block ul { padding-left: 20px; }
.about-section-block ul li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.about-section-block a { color: var(--primary); }

.about-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.about-feature { background: var(--surface); border-radius: 12px; padding: 14px; border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
.about-feature span { font-size: 1.4rem; flex-shrink: 0; }
.about-feature p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Criadores */
.criadores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.criador-card { background: var(--surface); border-radius: 16px; padding: 28px; border: 1px solid var(--border); text-align: center; }
.criador-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.criador-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.criador-role { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.criador-bio { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.criador-contacts { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.criador-contacts span { display: flex; align-items: center; gap: 6px; }

/* Suporte */
.suporte-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 20px 0; }
.suporte-card { background: var(--surface); border-radius: 16px; padding: 28px; border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.suporte-card i { font-size: 2rem; color: var(--primary); }
.suporte-card h3 { font-size: 1.1rem; font-weight: 700; }
.suporte-card p { font-size: 0.87rem; color: var(--text-muted); }
.suporte-card a { text-decoration: none; }

/* Planos */
.plano-card { background: var(--surface); border-radius: 20px; padding: 32px; border: 2px solid var(--border); max-width: 480px; margin: 20px auto; text-align: center; }
.plano-card.destaque { border-color: var(--primary); }
.plano-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.plano-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.plano-preco { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin: 8px 0; }
.plano-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.plano-features { list-style: none; padding: 0; text-align: left; }
.plano-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.plano-features li i { color: var(--primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-size: 0.93rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: 'âˆ’'; }
.faq-item p { padding: 0 20px 16px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

#tab-diary textarea { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; font-size: 0.95rem; line-height: 1.6; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FRASE DIÃRIA â€” sidebar
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.daily-quote-mini {
  font-size: 0.68rem;
  color: var(--primary);
  font-style: italic;
  white-space: normal;
  line-height: 1.3;
  margin-top: 2px;
  opacity: 0.9;
}
.sidebar.collapsed .daily-quote-mini { display: none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STUB TABS â€” em breve
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.stub-coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center; max-width: 500px; margin: 0 auto;
  gap: 16px;
}
.stub-icon { font-size: 4rem; line-height: 1; }
.stub-coming-soon h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stub-coming-soon p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }
.stub-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 5px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--primary);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FAQ â€” blocos organizados
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.faq-block { margin-bottom: 36px; }
.faq-block-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px; padding: 10px 16px;
  background: var(--primary-light); border-radius: 10px;
  border-left: 4px solid var(--primary);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ABOUT â€” accent lilÃ¡s na pÃ¡gina Sobre
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#tab-about .about-section-block h2 { color: #7C3AED; }
#tab-about .about-hero h1 { color: #7C3AED; }
#tab-futuro .about-hero h1 { color: var(--primary); }
#tab-nosso-compromisso .about-hero h1 { color: #7C3AED; }
#tab-beneficios .about-section-block h2 { color: var(--primary); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   USER PROFILE POPUP
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.user-profile-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.user-profile-popup.hidden { display: none; }
.user-profile-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); }
.user-profile-box {
  position: relative; background: var(--bg-card); border-radius: 20px;
  padding: 40px 32px 32px; max-width: 340px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); z-index: 1;
  animation: popupIn 0.25s ease;
}
@keyframes popupIn { from { opacity:0; transform:scale(0.88) translateY(16px); } to { opacity:1; transform:scale(1) translateY(0); } }
.user-profile-close {
  position: absolute; top: 14px; right: 14px; background: var(--border);
  border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  font-size: 0.85rem; transition: background 0.2s;
}
.user-profile-close:hover { background: var(--danger); color: #fff; }
.user-profile-avatar-lg {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; font-weight: 700;
  background-size: cover; background-position: center;
  border: 3px solid var(--primary-light);
}
.user-profile-popup-name { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.user-profile-popup-email { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.user-profile-popup-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; font-style: italic; }
.sidebar-user { cursor: pointer; transition: background 0.2s; border-radius: 10px; }
.sidebar-user:hover { background: var(--primary-light); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME â€” MODE BAR (Focus / Reading modes)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-mode-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; justify-content: center;
}
.mode-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.mode-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.mode-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mode-btn i { font-size: 0.78rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME â€” CARD MINIMIZE BUTTONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.card-header-minimizable {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-header-minimizable h3 { margin: 0; }
.btn-minimize-card {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 0.85rem; padding: 4px 6px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.btn-minimize-card:hover { color: var(--primary); background: var(--primary-light); }
.card-body-collapsible { transition: opacity 0.25s; }
.card-body-collapsible.collapsed { display: none; opacity: 0; }

/* Focus modes â€” hide cards */
.home-inner.mode-foco .goals-card,
.home-inner.mode-foco .bg-card,
.home-inner.mode-foco .home-daily-card { display: none; }

.home-inner.mode-foco-total .goals-card,
.home-inner.mode-foco-total .bg-card,
.home-inner.mode-foco-total .home-daily-card,
.home-inner.mode-foco-total .music-card { display: none; }

.home-inner.mode-leitura .goals-card,
.home-inner.mode-leitura .bg-card,
.home-inner.mode-leitura .home-daily-card,
.home-inner.mode-leitura .music-card { display: none; }
.home-inner.mode-leitura { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect fill='%23f9f4ef' width='100' height='100'/%3E%3C/svg%3E") repeat; }
.home-inner.mode-leitura .timer-card { max-width: 400px; margin: 0 auto; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME â€” DAILY CARD (Lembretes + Quote)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-daily-card { padding: 0 !important; overflow: hidden; }
.home-daily-inner { display: flex; gap: 0; }
.home-compromi-widget { flex: 1.4; padding: 18px 18px 16px; border-right: 1px solid var(--border); min-width: 0; }
.home-quote-widget {
  flex: 1; padding: 18px 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--primary-light), rgba(124,58,237,0.07));
  gap: 8px;
}
.home-quote-icon { font-size: 1.5rem; }
.home-quote-text {
  font-size: 0.85rem; color: var(--primary); font-style: italic;
  line-height: 1.5; font-weight: 500;
}
.home-quote-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.home-compromi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.home-compromi-header h3 { margin: 0; font-size: 0.92rem; }
.home-compromi-section { margin-bottom: 10px; }
.compromi-section-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px;
}
.compromi-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.compromi-list li { font-size: 0.82rem; color: var(--text); padding: 3px 6px; border-radius: 6px; }
.compromi-list li.compromi-empty { color: var(--text-muted); font-style: italic; }
@media (max-width: 600px) {
  .home-daily-inner { flex-direction: column; }
  .home-compromi-widget { border-right: none; border-bottom: 1px solid var(--border); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECURITY TAB â€” grid cards
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.security-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin: 24px 0;
}
.security-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s; box-shadow: var(--shadow);
}
.security-card:hover { box-shadow: var(--shadow-md); }
.security-card-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem;
}
.security-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.security-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NOSSO COMPROMISSO â€” MVV grid
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mvv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin: 24px 0;
}
.mvv-card {
  border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mvv-missao { background: linear-gradient(135deg, #EEF2FF, #F0E6FF); border-color: #C4B5FD; }
.mvv-visao { background: linear-gradient(135deg, #ECFDF5, #E0F2FE); border-color: #86EFAC; }
.mvv-valores { background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border-color: #FCD34D; }
[data-theme="dark"] .mvv-missao { background: #1e1a2e; border-color: #5B21B6; }
[data-theme="dark"] .mvv-visao { background: #0d2118; border-color: #065F46; }
[data-theme="dark"] .mvv-valores { background: #1c1a0d; border-color: #92400E; }
.mvv-icon { font-size: 1.8rem; }
.mvv-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.mvv-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.mvv-values-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mvv-values-list li { font-size: 0.85rem; color: var(--text-muted); padding-left: 12px; border-left: 2px solid var(--primary); line-height: 1.5; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LIVROS â€” genre filter + genre tag
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.books-genre-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.genre-filter-btn {
  padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.genre-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.genre-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.book-genre-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; margin-top: 4px;
  font-weight: 500;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HOME PAIR â€” Ambiente ao lado do Daily Card
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-pair {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.home-pair .home-card {
  flex: 1;
  min-width: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CALENDÃRIO â€” minimize toggle
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.calendar-grid.calendar-mini .calendar-cell:not(.has-events) .cal-day-num {
  display: none;
}
.calendar-grid.calendar-mini {
  --cell-h: 28px;
}
.calendar-grid.calendar-mini .calendar-cell {
  min-height: 28px !important;
  padding: 2px 4px !important;
}
.calendar-grid.calendar-mini .event-dot-label {
  display: none;
}
.btn-cal-size {
  margin-left: auto;
  font-size: 0.85rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CRONOGRAMA â€” time config bar
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.schedule-time-config {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 0.88rem; color: var(--text-muted);
}
.schedule-time-config input[type="time"] {
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.88rem; background: var(--bg); color: var(--text);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MINHA EVOLUÃ‡ÃƒO
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.evolucao-container {
  display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto;
}
.evolucao-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 700px) { .evolucao-stats { grid-template-columns: repeat(2, 1fr); } }
.evo-stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px 16px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.evo-stat-card:hover { transform: translateY(-2px); }
.evo-stat-icon { font-size: 1.8rem; margin-bottom: 6px; }
.evo-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.evo-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.evo-chart-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.evo-chart-card h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 14px; }
.evo-chart-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.evo-select {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.82rem; background: var(--bg); color: var(--text);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   METAS DA SEMANA
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.metas-semana-container {
  max-width: 700px; margin: 0 auto; padding: 0 4px;
}
.metas-semana-add-bar {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.metas-semana-add-bar input {
  flex: 1; min-width: 180px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 0.95rem;
}
.metas-semana-add-bar select {
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text);
}
.metas-semana-progress-bar {
  height: 8px; background: var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 6px;
}
.metas-progress-fill {
  height: 100%; background: var(--primary); border-radius: 20px;
  transition: width 0.4s ease;
}
.metas-progress-label {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px;
}
.metas-semana-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.meta-semana-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 12px 14px; border-left: 4px solid var(--border);
  transition: opacity 0.2s;
}
.meta-semana-item.done { opacity: 0.55; }
.meta-semana-item.done .meta-title { text-decoration: line-through; }
.meta-semana-item.priority-alta { border-left-color: #EF5350; }
.meta-semana-item.priority-normal { border-left-color: var(--accent); }
.meta-semana-item.priority-baixa { border-left-color: var(--secondary); }
.meta-title { flex: 1; font-size: 0.95rem; }
.meta-del-btn {
  border: none; background: none; color: var(--text-muted); cursor: pointer;
  opacity: 0; transition: opacity 0.2s; padding: 4px;
}
.meta-semana-item:hover .meta-del-btn { opacity: 1; }
.metas-empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 24px 0; text-align: center; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COMPROMISSOS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.comprom-filter-bar {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.comprom-filter {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.comprom-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.comprom-list { display: flex; flex-direction: column; gap: 6px; }
.comprom-date-header {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  padding: 12px 0 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.comprom-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 12px 14px; border-left: 4px solid var(--border);
  transition: box-shadow 0.2s;
}
.comprom-item:hover { box-shadow: var(--shadow-md); }
.comprom-item.done { opacity: 0.55; }
.comprom-item.done .comprom-title { text-decoration: line-through; }
.comprom-item.urgency-alta { border-left-color: #EF5350; }
.comprom-item.urgency-normal { border-left-color: var(--primary); }
.comprom-item.urgency-baixa { border-left-color: var(--secondary); }
.comprom-info { flex: 1; }
.comprom-title { font-weight: 600; font-size: 0.95rem; }
.comprom-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px; font-size: 0.8rem; color: var(--text-muted); align-items: center;
}
.urgency-badge {
  background: #FEE2E2; color: #EF5350; border-radius: 10px;
  padding: 1px 8px; font-size: 0.75rem; font-weight: 600;
}
.comprom-edit-btn {
  border: none; background: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; opacity: 0; transition: opacity 0.2s;
}
.comprom-item:hover .comprom-edit-btn { opacity: 1; }
.comprom-desc { font-style: italic; }

/* Home widget compromisso */
.compromi-home-item {
  padding: 3px 0; font-size: 0.84rem; display: flex; align-items: center; gap: 6px;
}
.compromi-time { font-size: 0.78rem; font-weight: 600; color: var(--primary); }
.compromi-home-item.urgency-alta .compromi-time { color: #EF5350; }

/* Comprom modal helpers */
.modal-form-row { display: flex; gap: 12px; }
.modal-form-row .modal-form-group { flex: 1; }
.modal-check-row { flex-direction: row; align-items: center; gap: 8px; }
.btn-danger {
  background: var(--danger); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: filter 0.2s;
}
.btn-danger:hover { filter: brightness(0.9); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOCUS MODE â€” simplified (only normal + foco)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.home-inner.mode-foco .goals-card,
.home-inner.mode-foco .home-pair { display: none; }
.home-inner.mode-foco .music-card { display: none; }
.home-inner.mode-foco .home-goals-music-col { display: none; }

/* Goals + Music right column */
.home-goals-music-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Modo Foco + MÃºsica: hide goals, keep music */
.home-inner.mode-foco-musica .goals-card,
.home-inner.mode-foco-musica .home-pair { display: none; }

/* Ambiente card customization sections */
.bg-custom-section { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.bg-custom-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.bg-custom-section input[type=text], .bg-custom-section input[type=number] {
  width: 100%; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); margin-bottom: 6px; box-sizing: border-box;
}
.bg-custom-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.bg-custom-row select { flex: 1; padding: 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }

/* Week: add area with priority/time */
.week-add-area { margin-top: 8px; }
.week-add-area .week-input {
  width: 100%; box-sizing: border-box; padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); margin-bottom: 6px;
  font-size: 0.88rem;
}
.week-add-options { display: flex; gap: 4px; margin-bottom: 6px; }
.week-add-options select, .week-add-options input[type=time] {
  flex: 1; padding: 5px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.82rem;
}
.week-add-btn { width: 100%; font-size: 0.85rem; padding: 7px; }
.week-item { display: flex; gap: 6px; align-items: flex-start; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.week-item-body { flex: 1; min-width: 0; }
.week-item-text { display: block; font-size: 0.88rem; word-break: break-word; }
.week-item-meta { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.week-item-time { font-size: 0.75rem; color: var(--primary); }
.week-priority-dot { font-size: 0.7rem; }
.week-del-btn { background: none; border: none; cursor: pointer; opacity: 0.5; color: var(--danger); padding: 2px 4px; }
.week-del-btn:hover { opacity: 1; }
.week-item.done .week-item-text { text-decoration: line-through; opacity: 0.55; }
.week-item.priority-alta .week-item-text { color: #EF5350; }
.week-item.priority-baixa .week-item-text { color: var(--secondary, #7EC8A4); }

/* Cursos */
.cursos-stats { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.curso-stat { background: var(--bg-card); border-radius: var(--radius-sm, 8px); padding: 12px 20px; text-align: center; box-shadow: var(--shadow); }
.curso-stat span { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; }
.curso-stat small { font-size: 0.78rem; color: var(--text-muted); }
.cursos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.curso-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s; }
.curso-card:hover { transform: translateY(-2px); }
.curso-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; padding-left: 8px; }
.curso-name { font-weight: 600; font-size: 0.95rem; }
.curso-status-badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.curso-platform { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.curso-progress-bar { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.curso-progress-bar > div { height: 100%; border-radius: 10px; transition: width 0.4s; }
.curso-progress-info { font-size: 0.78rem; color: var(--text-muted); }
.curso-deadline { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* MatÃ©rias */
.materias-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.materia-cat { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.82rem; cursor: pointer; transition: all 0.2s; }
.materia-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.materias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.materia-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s; }
.materia-card:hover { transform: translateY(-2px); }
.materia-name { font-weight: 600; margin-bottom: 4px; }
.materia-cat-badge { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.materia-progress-bar { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; margin: 6px 0 2px; }
.materia-progress-bar > div { height: 100%; border-radius: 10px; }
.materia-progress-label { font-size: 0.78rem; color: var(--text-muted); }
.materia-topics { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* Trabalhos */
.trabalhos-list { display: flex; flex-direction: column; gap: 12px; }
.trabalho-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.trabalho-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.trabalho-title { font-weight: 600; font-size: 0.95rem; }
.trabalho-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.trabalho-status-badge { padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; }
.trabalho-progress-bar { height: 5px; background: var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.trabalho-progress-bar > div { height: 100%; border-radius: 10px; }
.trabalho-checklist { display: flex; flex-direction: column; gap: 4px; }
.trabalho-check-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 2px 0; cursor: pointer; }
.trabalho-check-item.done { text-decoration: line-through; opacity: 0.6; }

/* FinanÃ§as */
.financas-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.fin-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.fin-val { font-size: 1.3rem; font-weight: 700; }
.fin-card.receita .fin-val { color: var(--secondary, #7EC8A4); }
.fin-card.despesa .fin-val { color: var(--danger, #EF5350); }
.fin-card.saldo .fin-val { color: var(--primary); }
.fin-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.financas-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.fin-filter { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.82rem; cursor: pointer; }
.fin-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.financas-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.fin-item { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border-radius: var(--radius-sm, 8px); padding: 10px 14px; }
.fin-cat-icon { font-size: 1.2rem; }
.fin-item-info { flex: 1; }
.fin-item-desc { font-weight: 500; font-size: 0.9rem; }
.fin-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.fin-item-val { font-weight: 700; font-size: 0.95rem; }
.fin-item-val.receita { color: var(--secondary, #7EC8A4); }
.fin-item-val.despesa { color: var(--danger, #EF5350); }

/* Sono */
.sono-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sono-stat { background: var(--bg-card); border-radius: var(--radius-sm, 8px); padding: 12px 20px; text-align: center; box-shadow: var(--shadow); flex: 1; min-width: 80px; }
.sono-stat span { font-size: 1.4rem; font-weight: 700; color: var(--primary); display: block; }
.sono-stat small { font-size: 0.78rem; color: var(--text-muted); }
.sono-list { display: flex; flex-direction: column; gap: 8px; }
.sono-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--radius-sm, 8px); padding: 10px 14px; }
.sono-item-date { font-size: 0.8rem; color: var(--text-muted); min-width: 80px; }
.sono-item-info { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; align-items: center; }
.sono-dur { color: var(--primary); }

/* Calendar mini fix */
#calendar-grid.calendar-mini .cal-day {
  min-height: 32px !important;
  padding: 2px 3px !important;
  font-size: 0.72rem;
}
#calendar-grid.calendar-mini .cal-event-label { display: none; }

/* Modal wide */
.modal-wide { max-width: 600px !important; }

/* Fix daily quote dark mode */
.home-quote-text { color: var(--text) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.home-daily-card { background: rgba(255,255,255,0.85); }
[data-theme="dark"] .home-daily-card { background: rgba(30,30,40,0.85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-daily-card { background: rgba(30,30,40,0.85); }
}

/* BG presets */
.bg-presets { margin-top: 10px; }
.bg-preset-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; }
.bg-preset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.bg-preset-btn { aspect-ratio: 1; border-radius: 6px; border: 2px solid var(--border); background: var(--bg); cursor: pointer; font-size: 0.75rem; transition: border-color 0.2s, transform 0.15s; }
.bg-preset-btn:hover { border-color: var(--primary); transform: scale(1.08); }

/* Prazos */
.prazos-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.prazo-filter { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.82rem; cursor: pointer; }
.prazo-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.prazos-urgency-row { display: flex; flex-direction: column; gap: 20px; }
.prazos-urgency-group { display: flex; flex-direction: column; }
.prazos-urgency-label { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.urgency-expired { color: #EF5350; }
.urgency-urgent { color: #F7C948; }
.urgency-soon { color: var(--primary); }
.urgency-future { color: var(--text-muted); }
.prazos-urgency-list { display: flex; flex-direction: column; gap: 8px; }
.prazo-item { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.prazo-item.prazo-expired { border-left: 3px solid #EF5350; }
.prazo-item.prazo-urgent { border-left: 3px solid #F7C948; }
.prazo-item.prazo-soon { border-left: 3px solid var(--primary); }
.prazo-item.prazo-future { border-left: 3px solid var(--border); }
.prazo-cat-icon { font-size: 1.2rem; }
.prazo-info { flex: 1; }
.prazo-title { font-weight: 600; font-size: 0.92rem; }
.prazo-meta { display: flex; gap: 10px; align-items: center; margin-top: 3px; font-size: 0.8rem; color: var(--text-muted); }
.prazo-diff { font-weight: 600; }
.prazo-diff-expired { color: #EF5350; }
.prazo-diff-urgent { color: #F7C948; }
.prazo-diff-soon { color: var(--primary); }
.prazo-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.prazo-actions { display: flex; gap: 4px; }
.prazo-empty { color: var(--text-muted); font-size: 0.85rem; padding: 8px 0; }

/* Modo Leitura */
.leitura-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.leitura-nav-btn { padding: 8px 18px; border-radius: 20px; border: none; background: var(--bg-card); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.leitura-nav-btn.active { background: var(--primary); color: #fff; }
.leitura-panel { display: block; }
.leitura-panel.hidden { display: none; }
.leitura-pomodoro-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; max-width: 480px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); }
.leitura-book-title input { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); margin-bottom: 20px; box-sizing: border-box; font-size: 0.95rem; }
.leitura-timer-display { font-size: 3.5rem; font-weight: 300; color: var(--primary); margin: 20px 0; letter-spacing: 4px; }
.leitura-timer-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.leitura-presets { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.leitura-preset { padding: 6px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); cursor: pointer; font-size: 0.82rem; }
.leitura-preset.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.leitura-session-log { text-align: left; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
.leitura-session-log h4 { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.leitura-session-item { font-size: 0.82rem; color: var(--text-muted); padding: 3px 0; }
.fichamento-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.fichamento-type-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.fich-type-btn { padding: 6px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-size: 0.82rem; }
.fich-type-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.fichamento-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fichamento-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); position: relative; }
.fichamento-card-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.fichamento-card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.fichamento-card-content { font-size: 0.82rem; color: var(--text); }
.fichamento-del { position: absolute; top: 8px; right: 8px; }
.resumo-header { margin-bottom: 16px; }
.resumo-list { display: flex; flex-direction: column; gap: 10px; }
.resumo-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); }
.resumo-card-title { font-weight: 600; margin-bottom: 6px; }
.resumo-card-content { font-size: 0.85rem; color: var(--text-muted); }
.resumo-card-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.diario-bordo-list { display: flex; flex-direction: column; gap: 10px; }
.diario-bordo-entry { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); position: relative; }
.diario-bordo-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.diario-bordo-livro { font-size: 0.8rem; color: var(--primary); margin-bottom: 6px; }
.diario-bordo-content { font-size: 0.88rem; }
.diario-bordo-del { position: absolute; top: 8px; right: 8px; }

/* ═══════════════════════════════════════════════════
   ROUND F FIXES
═══════════════════════════════════════════════════ */

/* Fix: sidebar toggle bars não ficarem cortadas */
.sidebar-toggle { overflow: visible !important; }
.sidebar-toggle i { font-size: 1rem; }

/* Friends: chat minimizado */
.room-chat.chat-hidden, .chat-panel.chat-hidden { display: none !important; }

/* Week observations */
.week-obs-container { margin-top: 16px; background: var(--bg-card); border-radius: var(--radius); padding: 14px; }
.week-obs-header { font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.week-obs-container textarea { width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; }
.week-obs-container .btn-small { margin-top: 8px; }

/* Dark mode: daily quote stronger contrast */
.home-daily-card { backdrop-filter: blur(6px); }
[data-theme="dark"] .home-daily-card,
:root:not([data-theme="light"]) .home-daily-card { background: rgba(20,20,30,0.88) !important; }
[data-theme="dark"] .home-quote-text,
:root:not([data-theme="light"]) .home-quote-text { color: #f0f0f0 !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-daily-card { background: rgba(20,20,30,0.88) !important; }
  :root:not([data-theme="light"]) .home-quote-text { color: #f0f0f0 !important; }
}

/* Screen share maximize button */
#maximize-screen { background: rgba(0,0,0,0.5); color: #fff; border: none; }

/* ═══════════════════════════════════════════════════
   ROUND G — Novos estilos
═══════════════════════════════════════════════════ */

/* Sidebar toggle bars fix — stronger */
.sidebar-toggle, .sidebar-toggle i { overflow: visible !important; display: flex; align-items: center; justify-content: center; }
.sidebar-toggle { width: 36px; height: 36px; padding: 0; }

/* ── Ambiente Tabs ── */
.amb-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1.5px solid var(--border); padding-bottom: 10px; }
.amb-tab { padding: 6px 14px; border-radius: 20px; border: none; background: var(--bg); color: var(--text-muted); font-size: 0.82rem; cursor: pointer; transition: all 0.2s; }
.amb-tab.active { background: var(--primary); color: #fff; }
.amb-panel { display: block; }
.amb-panel.hidden { display: none; }
.amb-sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.amb-sub-tab { padding: 5px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.amb-sub-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.amb-sub-panel { display: block; }
.amb-sub-panel.hidden { display: none; }
.amb-sub-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

/* ── Gradients ── */
.gradient-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.grad-opt { width: 100%; aspect-ratio: 1.6; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, border-color 0.2s; }
.grad-opt:hover { transform: scale(1.08); border-color: var(--primary); }

/* ── Livros Grid ── */
.livros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.livro-card { background: var(--bg-card); border-radius: var(--radius-sm); box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.livro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.livro-capa { width: 100%; aspect-ratio: 0.68; background: var(--primary-light); overflow: hidden; }
.livro-capa img { width: 100%; height: 100%; object-fit: cover; }
.livro-capa-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2rem; }
.livro-card-info { padding: 10px; }
.livro-card-nome { font-weight: 600; font-size: 0.82rem; line-height: 1.3; }
.livro-card-autor { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.livro-card-meta { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
.livro-edit-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 6px; width: 26px; height: 26px; display: none; align-items: center; justify-content: center; cursor: pointer; }
.livro-card:hover .livro-edit-btn { display: flex; }

/* ── Livro Detail ── */
.livro-detail { padding: 4px 0; }
.livro-detail-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.livro-detail-capa { width: 80px; height: 120px; object-fit: cover; border-radius: 6px; }
.livro-detail-capa-ph { width: 80px; height: 120px; background: var(--primary-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.livro-acoes-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.livro-acao-btn { padding: 7px 18px; border-radius: 20px; border: none; background: var(--bg-card); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.livro-acao-btn.active { background: var(--primary); color: #fff; }
.livro-acao-panel { display: block; }
.livro-acao-panel.hidden { display: none; }
.livro-text-panel { display: flex; flex-direction: column; gap: 8px; }
.livro-text-panel label.livro-text-label { font-weight: 600; font-size: 0.88rem; color: var(--text-muted); }
.livro-text-panel textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); resize: vertical; font-family: inherit; font-size: 0.9rem; line-height: 1.6; }

/* ── Diários de Bordo ── */
.db-entrada-form { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.db-entrada-form input, .db-entrada-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem; }
.db-month-header { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); padding: 10px 0 6px; display: flex; align-items: center; gap: 6px; text-transform: capitalize; border-top: 1.5px solid var(--border); margin-top: 8px; }
.db-entry { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); margin-bottom: 8px; position: relative; }
.db-entry-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.db-entry-date { font-size: 0.75rem; color: var(--text-muted); }
.db-entry-livro { font-size: 0.78rem; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.db-entry-content { font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; }
.db-del { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.2s; }
.db-entry:hover .db-del { opacity: 1; }

/* ── Modo Leitura new nav ── */
.leitura-panel { display: block; }
.leitura-panel.hidden { display: none !important; }
