/* -------------------------------------------------------------
 * â° REMINDAI WEB DASHBOARD STYLE SHEET
 * High-End Ultra-Minimalist Notion & Slack Style Light Theme
 * ------------------------------------------------------------- */

/* Variables & Root System */
:root {
  /* Color Palette - Zyricon Dark Violet Theme */
  --bg-app: #08070b;                       /* Main background */
  --bg-surface: rgba(40, 25, 60, 0.35);    /* Lighter glass surface */
  --bg-surface-solid: rgba(60, 40, 85, 0.45); /* Lighter solid surface */
  --bg-card: rgba(30, 20, 50, 0.4);        /* Lighter glass card */
  --border-color: rgba(168, 85, 247, 0.25); /* Clearer outline border */
  --border-focus: #9896ef;                 /* primary - soft violet */
  
  /* Text Colors */
  --text-main: #ffffff;                    /* on-surface */
  --text-muted: rgba(255, 255, 255, 0.9);  /* previously grey, now white for contrast */
  --text-inverse: #08070b;                 /* on-primary */

  /* Functional Status Colors */
  --color-blue: #1da4e7;                   /* Picton Blue for highlights */
  --color-purple: #9896ef;                 /* Soft violet accent */
  --color-green: #10b981;                  /* Emerald green */
  --color-red: #f43f5e;                    /* Rose red */
  --color-orange: #f59e0b;                 /* Amber orange */
  
  /* Glassmorphism & Effects */
  --glass-bg: rgba(18, 12, 28, 0.5);
  --glass-blur: 20px;
  --glass-border: none;
  
  /* Glows & Shadows for premium dark design */
  --glow-primary: 0 0 15px rgba(152, 150, 239, 0.35);
  --glow-secondary: 0 0 15px rgba(29, 164, 231, 0.4);
  
  --shadow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-pop: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;    /* roundness layout */
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  background-image: url("ChatGPT Image 19 may 2026, 06_28_23 p.m.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
  overflow-y: scroll;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

/* Removed dark overlay as requested */

.app-layout-main,
#login-screen {
  position: relative;
  z-index: 1;
}

/* === GLASSMORPHISM GLOBAL: all main surfaces get blur === */
.card,
.card-dark,
.metric-card,
.kanban-column,
.note-card,
.habit-card,
.tab-container,
.finance-card,
.content-header,
.ai-preview-box,
.feature-card,
.prompter-card,
.suggestion-pill,
input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Scrollbar Dark Violet */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2b1f40;
  border-radius: 10px;
  border: 2px solid var(--bg-app);
}
::-webkit-scrollbar-thumb:hover {
  background: #3c2c59;
}

/* App Container */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Clean Upper Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-subtle);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-md);
  background: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-inverse);
}

.brand-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.header-status {
  display: flex;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f7f7f5;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

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

.status-indicator-dot.green { background-color: var(--color-green); }
.status-indicator-dot.blue { background-color: var(--color-blue); }

/* --- Layout & Navbar --- */
/* Floating Top Navbar */
.app-top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 32px;
  background: rgba(8, 7, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  margin: -40px -48px 24px -48px; /* Pull to edges of main-content */
  position: sticky;
  top: 0;
  z-index: 90;
}

.navbar-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  width: 100%;
  max-width: 200px;
  height: 32px;
  gap: 8px;
  transition: all var(--transition-fast);
}

.navbar-search:hover {
  background: rgba(255, 255, 255, 0.08);
}

.navbar-search:focus-within {
  background: rgba(18, 12, 28, 0.95);
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.navbar-search i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.navbar-search input,
.navbar-search input[type="text"],
.navbar-search input[type="search"] {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
  height: 100% !important;
  font-size: 0.85rem !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-main) !important;
}

.navbar-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.navbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange);
  border-radius: 50%;
  border: 2px solid var(--bg-app);
}

.theme-toggle-pill {
  display: flex;
  align-items: center;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.theme-toggle-pill .theme-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle-pill .theme-btn.active {
  background: var(--color-purple); /* Purple accent for active theme button */
  color: #ffffff;
  box-shadow: none;
}

.user-profile-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px;
  border-radius: 20px;
  transition: background var(--transition-fast);
}

.user-profile-dropdown:hover {
  background: rgba(0,0,0,0.04);
}

.user-profile-dropdown img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.user-profile-dropdown i {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Metrics Section (Notion Columns style) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
}

.metric-card:hover {
  box-shadow: none;
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.metric-card.cyan-glow .metric-icon { color: var(--color-blue); background: rgba(29, 164, 231, 0.1); border-color: rgba(29, 164, 231, 0.2); }
.metric-card.yellow-glow .metric-icon { color: var(--color-orange); background: rgba(255, 157, 0, 0.1); border-color: rgba(255, 157, 0, 0.2); }
.metric-card.green-glow .metric-icon { color: var(--color-green); background: rgba(0, 255, 149, 0.1); border-color: rgba(0, 255, 149, 0.2); }
.metric-card.purple-glow .metric-icon { color: var(--color-purple); background: rgba(11, 125, 190, 0.1); border-color: rgba(11, 125, 190, 0.2); }

.metric-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.metric-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Workspace Layout Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Workspace Left Column */
.workspace-left {
  display: flex;
  flex-direction: column;
}

/* Selector de PestaÃ±as Premium Style */
.tab-container {
  display: flex;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--text-main);
  background: var(--bg-surface-solid);
  box-shadow: var(--shadow-subtle);
  font-weight: 600;
}

/* Cards Notion Minimalist */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

.card-dark {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.text-purple {
  color: var(--color-purple);
}

.border-purple {
  border-color: rgba(11, 125, 190, 0.3) !important;
  background: rgba(11, 125, 190, 0.05);
  color: var(--color-purple) !important;
}

.border-purple:hover {
  background: rgba(11, 125, 190, 0.15) !important;
  color: var(--color-purple) !important;
}

/* Forms Minimalists Notion style */
.form-group {
  margin-bottom: 16px;
}

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

.col-6 {
  flex: 0 0 100%;
}

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="datetime-local"]:hover,
select:hover,
textarea:hover {
  background: var(--bg-surface);
  border-color: var(--border-focus);
}

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

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 10px rgba(65, 182, 239, 0.25);
}


/* Global Placeholder Color */
::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1 !important;
}

::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Buttons UI Sophisticated Intelligence */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 32px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn-full {
  width: 100%;
}

.btn-primary, .btn-success {
  background: var(--color-blue) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary:hover:not(:disabled), .btn-success:hover:not(:disabled) {
  background: #00a2e8 !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled), .btn-success:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none !important;
}

.btn-secondary {
  background: var(--bg-surface-solid);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
}

.btn-success:disabled, .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-spin-icon {
  display: none;
}

.btn-loading .btn-spin-icon {
  display: inline-block;
  animation: spin 1s infinite linear;
}

/* AI Preview Box */
.ai-preview-box {
  display: none;
  margin-top: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-subtle);
  animation: slideDown 0.2s ease-out;
}

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

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

.preview-header h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-success { background: rgba(0, 255, 149, 0.1); color: var(--color-green); border: 1px solid rgba(0, 255, 149, 0.2); }
.badge-error { background: rgba(255, 77, 77, 0.1); color: var(--color-red); border: 1px solid rgba(255, 77, 77, 0.2); }

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-field {
  display: flex;
  align-items: flex-start;
  font-size: 0.85rem;
}

.preview-label {
  width: 120px;
  color: var(--text-muted);
  font-weight: 500;
}

.preview-value {
  flex: 1;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.error-text {
  color: var(--color-red);
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Tabs Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Workspace Right Column (Reminders List) */
.workspace-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Filter and Search Bar Notion-style */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 280px;
}

.search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.search-box input {
  padding-left: 28px;
  height: 32px;
  font-size: 0.85rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--border-radius-md);
}

.filter-buttons {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.filter-btn.active {
  background: var(--bg-surface-solid);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

/* Reminders Grid */
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  min-height: 350px;
}

@media (max-width: 480px) {
  .reminders-grid {
    grid-template-columns: 1fr;
  }
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
}

.loading-state i {
  font-size: 1.5rem;
  color: var(--color-blue);
}

.empty-state i {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* Elegant Premium Reminder Card */
.reminder-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.reminder-card:hover {
  box-shadow: var(--shadow-pop), var(--glow-secondary);
  transform: translateY(-4px);
}

/* Status indicators are handled by badges, no left strip needed */

.rem-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rem-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface-solid);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.rem-user i {
  color: var(--color-purple);
}

.rem-status-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}
.status-pending .rem-status-badge { background: rgba(29, 164, 231, 0.1); color: var(--color-blue); border: 1px solid rgba(29, 164, 231, 0.2); }
.status-sent .rem-status-badge { background: rgba(255, 157, 0, 0.1); color: var(--color-orange); border: 1px solid rgba(255, 157, 0, 0.2); }
.status-completed .rem-status-badge { background: rgba(0, 255, 149, 0.1); color: var(--color-green); border: 1px solid rgba(0, 255, 149, 0.2); }
.status-cancelled .rem-status-badge { background: rgba(255, 77, 77, 0.1); color: var(--color-red); border: 1px solid rgba(255, 77, 77, 0.2); }

.rem-task {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-main);
  word-break: break-word;
}

.status-completed .rem-task {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

.rem-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.rem-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-blue);
  font-weight: 500;
}

.status-sent .rem-time { color: var(--color-orange); }
.status-completed .rem-time { color: var(--text-muted); }

.rem-source {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.74rem;
}

/* Card Actions - Horizontal row, 3 buttons */
.rem-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  flex-wrap: nowrap;
}

.rem-btn {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: var(--transition-fast);
  background: var(--bg-surface-solid);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
}

.rem-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.rem-btn-done {
  color: var(--color-green);
  border-color: rgba(0, 255, 149, 0.35);
  background: rgba(0, 255, 149, 0.1);
}

.rem-btn-done:hover {
  background: var(--color-green);
  color: #000000;
  border-color: var(--color-green);
  box-shadow: none;
}

.rem-btn-google {
  color: #4285F4;
  border-color: rgba(66, 133, 244, 0.3);
  background: rgba(66, 133, 244, 0.08);
}

.rem-btn-google:hover {
  background: rgba(66, 133, 244, 0.18);
  border-color: #4285F4;
  color: #4285F4;
}

.rem-btn-snooze {
  background: var(--bg-surface-solid);
}

.rem-btn-cancel {
  color: var(--color-red);
  border-color: rgba(255, 77, 77, 0.3);
  background: rgba(255, 77, 77, 0.08);
}

.rem-btn-cancel:hover {
  background: var(--color-red);
  color: #ffffff;
  border-color: var(--color-red);
  box-shadow: none;
}

.rem-btn-delete {
  color: var(--text-muted);
}

.rem-btn-delete:hover {
  color: var(--color-red);
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.3);
}

/* Date row in reminder card */
.rem-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-blue);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 4px;
}

.rem-date-text {
  color: var(--color-blue);
  font-weight: 600;
}

.status-sent .rem-date-row,
.status-sent .rem-date-text { color: var(--color-orange); }
.status-completed .rem-date-row,
.status-completed .rem-date-text { color: var(--text-muted); }

/* Recurrence badge */
.rem-recurrence-badge {
  font-size: 0.68rem;
  color: var(--color-orange);
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Toast System Notion Style */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.toast-success { border-left: 3px solid var(--color-green); }
.toast.toast-error { border-left: 3px solid var(--color-red); }
.toast.toast-info { border-left: 3px solid var(--color-blue); }

.toast-icon {
  font-size: 1rem;
}

.toast-success .toast-icon { color: var(--color-green); }
.toast-error .toast-icon { color: var(--color-red); }
.toast-info .toast-icon { color: var(--color-blue); }

.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-main);
}

/* -------------------------------------------------------------
 * ðŸ“‚ LAYOUT SYSTEM (SPA WITH NOTION/SLACK SIDEBAR)
 * ------------------------------------------------------------- */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Premium Style - Zyricon Pitch Black */
.sidebar {
  width: 260px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(152, 150, 239, 0.2);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}

/* --- COLLAPSED SIDEBAR MODIFIERS --- */
.sidebar.collapsed {
  width: 80px;
  padding: 24px 10px;
}

.sidebar.collapsed .sidebar-header {
  padding-left: 0;
  justify-content: center;
}

.sidebar.collapsed .brand-info,
.sidebar.collapsed .sidebar-category-header,
.sidebar.collapsed .upgrade-banner,
.sidebar.collapsed .sidebar-user-row,
.sidebar.collapsed #google-calendar-text {
  display: none !important;
}

.sidebar.collapsed .sidebar-collapse-btn {
  display: none; /* Hide collapse btn when collapsed, or maybe keep it centered? Let's hide brand logo and keep collapse btn */
}
.sidebar.collapsed .sidebar-brand {
  display: flex;
  justify-content: center;
  width: 100%;
  cursor: pointer;
}

/* Swap logo images on collapse */
.sidebar.collapsed .brand-logo-full {
  display: none !important;
}

.sidebar.collapsed .brand-logo-icon {
  display: block !important;
}

.sidebar.collapsed .menu-item,
.sidebar.collapsed .sidebar-action-btn {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
}

.sidebar.collapsed .menu-item span,
.sidebar.collapsed .sidebar-action-btn span {
  display: block !important;
  font-size: 0.62rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
  opacity: 0.85;
}
.sidebar.collapsed ~ .main-content {
  margin-left: 112px;
}

/* Custom Tooltip for Collapsed Sidebar */
.sidebar.collapsed [data-tooltip] {
  position: relative;
}

.sidebar.collapsed [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 70px; /* Offset from the icon */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease-out forwards;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translate(-10px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

/* ---------------------------------- */

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

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-logo-full {
  display: block; /* Visible when sidebar is expanded */
}

.sidebar-brand .brand-logo-icon {
  display: none; /* Hidden when expanded, shown when collapsed */
}

.sidebar-brand .brand-info h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sidebar-brand .brand-info span {
  display: none;
}

.sidebar-collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sidebar-collapse-btn:hover {
  color: #ffffff;
}

.sidebar-close-mobile-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.sidebar-close-mobile-btn:hover {
  color: #ffffff;
}

/* Sidebar Navigation Items */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-category-header {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(154, 139, 178, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 12px 6px 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-item:hover {
  background-color: rgba(139, 92, 246, 0.08);
  color: #ffffff;
}

.menu-item.active {
  background-color: rgba(139, 92, 246, 0.15);
  font-weight: 600;
  color: #ffffff;
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.15);
}

.menu-item i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.menu-item:hover i,
.menu-item.active i {
  color: var(--color-purple);
}

/* Upgrade to Premium Banner */
.upgrade-banner {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), rgba(0, 0, 0, 0));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
}

.upgrade-banner .crown-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9896ef;
  margin-bottom: 12px;
}

.upgrade-banner h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.upgrade-banner p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.35;
}

.upgrade-banner .btn-upgrade {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.upgrade-banner .btn-upgrade:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 6px 4px;
}

.status-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Sidebar Action Buttons (Calendar / Logout) */
.sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.sidebar-action-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.sidebar-action-btn__icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.sidebar-action-btn:hover .sidebar-action-btn__icon {
  color: rgba(255,255,255,0.7);
}

.sidebar-action-btn--danger {
  color: rgba(255, 100, 100, 0.7);
}

.sidebar-action-btn--danger:hover {
  background: rgba(255, 60, 60, 0.08);
  color: #ff6b6b;
}

.sidebar-action-btn--danger .sidebar-action-btn__icon {
  color: rgba(255, 100, 100, 0.5);
}

.sidebar-action-btn--danger:hover .sidebar-action-btn__icon {
  color: #ff6b6b;
}


/* Main Content Workspace Panel */
.main-content {
  flex: 1;
  margin-left: 292px; /* Offset for Floating Sidebar (260px width + 16px left + 16px right gap) */
  padding: 40px 48px;
  background-color: transparent;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .main-content {
    padding: 30px 24px;
  }
}

/* --- Default Layout helper states --- */
.mobile-topbar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.finances-layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  align-items: start;
}

.mobile-onboarding-toggle {
  display: none;
}
/* Mobile Banner */
.mobile-only-banner {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .mobile-only-banner {
    display: block;
  }

  /* Prevent iOS input auto-zoom */
  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Increase tap targets for comfort */
  .btn, 
  .menu-item, 
  .tab-btn {
    min-height: 44px;
  }

  .mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 8, 16, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(152, 150, 239, 0.2);
    padding: 0 12px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .mobile-topbar.hidden-on-scroll {
    transform: translateY(-100%);
  }

  .mobile-topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hamburger-btn {
    display: none !important;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
  }

  .hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
  }

  .mobile-brand i {
    color: var(--color-purple);
    font-size: 1.1rem;
  }

  @media (max-width: 380px) {
    .mobile-brand span {
      display: none;
    }
  }

  .mobile-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }

  .mobile-search-container {
    position: relative;
    max-width: 180px; /* Increased from 140px */
    width: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-container input {
    width: 100%;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0 12px 0 36px; /* Increased left padding to 36px to prevent overlap with icon */
    font-size: 14px !important;
    color: var(--text-main);
    transition: var(--transition-fast);
  }

  .mobile-search-container input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-focus);
    box-shadow: 0 0 10px rgba(152, 150, 239, 0.25);
    outline: none;
    max-width: 220px; /* Allow growing more when focused */
  }

  .search-icon-mobile {
    position: absolute;
    left: 14px; /* Increased left space to give it breathing room */
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
  }

  .btn-create-mobile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), #b8b6f5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(154, 106, 255, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .btn-create-mobile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(154, 106, 255, 0.4);
  }

  .btn-create-mobile:active {
    transform: scale(0.95);
  }

  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100% !important;
    background-color: rgba(10, 8, 16, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-right: 1px solid rgba(152, 150, 239, 0.2) !important;
    border-bottom: none !important;
    padding: 24px 16px !important;
    z-index: 1100 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 80px 16px 40px 16px !important;
  }

  .content-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .content-header h1 {
    font-size: 1.4rem;
  }

  .finances-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .login-screen-wrapper {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 24px 12px !important;
  }

  .login-container-split {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    margin: 0 auto !important;
  }

  .login-card {
    padding: 32px 20px !important;
    border-bottom: none !important;
  }

  .login-onboarding-panel {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px !important;
    border-top: none !important;
    background: #fdfdfc !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .login-onboarding-panel.show {
    max-height: 1200px;
    opacity: 1;
    overflow: visible !important;
    padding: 24px 20px !important;
    border-top: 1px solid var(--border-color) !important;
    margin-top: 8px;
  }

  .mobile-onboarding-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    margin-top: 16px;
    background: #f7f7f5;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-purple);
    transition: var(--transition-fast);
  }

  .mobile-onboarding-toggle:hover {
    background: #edece9;
  }

  .mobile-onboarding-toggle.active {
    background: #fdf5ff;
    border-color: #ebd1f7;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .metric-card {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .metric-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  .metric-info h3 {
    font-size: 1.15rem !important;
  }

  .metric-info p {
    font-size: 0.72rem !important;
  }

  .kanban-board {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 16px !important;
    padding-bottom: 12px !important;
  }

  .kanban-column {
    min-width: 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start;
    min-height: 450px !important;
    padding: 12px !important;
  }

  /* Kanban cards: compact buttons (icon + short label) */
  .kanban-cards-container .rem-actions,
  #tx-list-container .rem-actions {
    gap: 4px;
  }

  .kanban-cards-container .rem-actions .rem-btn {
    padding: 5px 3px;
    font-size: 0.62rem;
    gap: 2px;
  }

  /* Tab buttons in creator: shorter text */
  .tab-btn {
    font-size: 0.78rem;
    padding: 8px 6px;
    gap: 5px;
  }
}

/* Dynamic Page Content Header */
.content-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.content-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.content-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* SPA Sections Toggler states */
.dashboard-section {
  display: none;
  animation: fadeInSection 0.2s ease-out;
}

.dashboard-section.active {
  display: block;
}

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

/* Grid layout refactoring in single page columns */
.creator-container {
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------
 * 🔑 SECURE OTP LOGIN CARD (NOTION STYLE)
 * ------------------------------------------------------------- */

.login-screen-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: none; /* Oculta por defecto */
  align-items: center;
  justify-content: center;
  z-index: 10000; /* Siempre al frente */
  padding: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.login-screen-wrapper.active {
  display: flex; /* Se muestra sólo cuando tiene la clase activa */
}

.login-container-split {
  display: grid;
  grid-template-columns: 460px 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  max-width: 940px;
  width: 100%;
  animation: loginSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-card {
  background: var(--bg-surface);
  border: none;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  padding: 48px 40px;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-onboarding-panel {
  background: var(--bg-surface-solid);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.onboarding-header {
  margin-bottom: 24px;
}

.badge-new {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-blue);
  background: rgba(29, 164, 231, 0.1);
  border: 1px solid rgba(29, 164, 231, 0.2);
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.onboarding-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.onboarding-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.onboarding-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-body code {
  background: #f1f1f0;
  color: #eb5757;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
}

.btn-telegram-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-blue);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0 16px;
  height: 32px;
  border-radius: 6px;
  transition: var(--transition-fast);
  box-shadow: none;
  border: none;
}

.btn-telegram-large:hover {
  background-color: #00a2e8;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-telegram-large i {
  font-size: 1.1rem;
}

/* Responsividad para Login */
@media (max-width: 960px) {
  .login-container-split {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  
  .login-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 36px 28px;
  }

  .login-onboarding-panel {
    padding: 36px 28px;
  }
}

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

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand-logo-large {
  width: 52px;
  height: 52px;
  background-color: var(--color-purple);
  color: #ffffff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  box-shadow: var(--shadow-subtle);
}

.login-brand h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.login-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.login-instruction {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Notion Notification boxes inside login screen */
.success-alert {
  background-color: rgba(0, 255, 149, 0.1);
  border: 1px solid rgba(0, 255, 149, 0.2);
  color: var(--color-green);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
}

.login-phase {
  display: none;
}

.login-phase.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn-link {
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: block;
}

.btn-link:hover {
  color: var(--color-purple) !important;
  text-decoration: underline !important;
}

.logout-button {
  transition: var(--transition-fast);
}

.logout-button:hover {
  background: var(--color-red) !important;
  color: #ffffff !important;
  border-color: var(--color-red) !important;
}

.logout-button:hover i {
  color: #ffffff !important;
}

/* ==========================================================================
   📋 TABLERO KANBAN PIPELINE ESTILO NOTION
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 20px;
}

.kanban-column {
  background-color: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 14px;
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.column-dot.pending { background-color: var(--color-cyan, #0ea5e9); }
.column-dot.sent { background-color: #f97316; }
.column-dot.completed { background-color: var(--color-green, #10b981); }
.column-dot.cancelled { background-color: var(--color-red, #ef4444); }

.column-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.column-count {
  font-size: 0.75rem;
  background-color: var(--bg-surface-solid);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 500;
  margin-left: auto;
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  min-height: 100px;
}

/* Tarjeta individual refinada para encajar en el Kanban */
.kanban-cards-container .reminder-card,
#tx-list-container .reminder-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  padding: 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
  margin-top: 0 !important;
  border: none;
}

.kanban-cards-container .reminder-card:hover,
#tx-list-container .reminder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop), var(--glow-secondary);
}

.kanban-cards-container .rem-task,
#tx-list-container .rem-task {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0;
  color: var(--text-main);
}

.kanban-cards-container .rem-info,
#tx-list-container .rem-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kanban-cards-container .rem-info i,
#tx-list-container .rem-info i {
  margin-right: 4px;
}

.kanban-cards-container .rem-time,
#tx-list-container .rem-time {
  font-weight: 500;
  color: var(--text-muted);
}

.kanban-cards-container .rem-source,
#tx-list-container .rem-source {
  opacity: 0.85;
}

.kanban-cards-container .rem-actions,
#tx-list-container .rem-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
}

.kanban-cards-container .rem-actions .rem-btn,
#tx-list-container .rem-actions .rem-btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-solid);
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.kanban-cards-container .rem-actions .rem-btn-done:hover,
#tx-list-container .rem-actions .rem-btn-done:hover {
  background-color: rgba(0, 255, 149, 0.12);
  border-color: rgba(0, 255, 149, 0.3);
  color: var(--color-green);
}

.kanban-cards-container .rem-actions .rem-btn-google:hover,
#tx-list-container .rem-actions .rem-btn-google:hover {
  background-color: rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.4);
  color: #4285F4;
}

.kanban-cards-container .rem-actions .rem-btn-cancel:hover,
#tx-list-container .rem-actions .rem-btn-cancel:hover {
  background-color: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.3);
  color: var(--color-red);
}

.kanban-cards-container .rem-actions .rem-btn-delete:hover,
#tx-list-container .rem-actions .rem-btn-delete:hover {
  background-color: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.3);
  color: var(--color-red);
}

/* Estado de carga y vacío elegantes dentro del Kanban */
.loading-state-kanban {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  color: #a4a4a0;
  font-size: 1.2rem;
}

.empty-state-kanban {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 24px 10px;
  background: transparent;
  color: var(--text-muted);
  text-align: center;
  gap: 8px;
  min-height: 120px;
}

.empty-state-kanban i {
  font-size: 1.4rem;
}

.empty-state-kanban p {
  font-size: 0.78rem;
  margin: 0;
  font-weight: 500;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .kanban-column {
    min-height: auto;
  }
}

/* ==========================================================================
   📋 VISTA DE LISTA - MEJORADA PARA MOBILE
   ========================================================================== */
.list-view {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.list-cards-container {
  display: flex;
  flex-direction: column;
}

/* List Item: dot | body | actions */
.list-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status dot */
.list-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Body: title + meta stacked */
.list-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.list-item-body .rem-task {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta row: date + status badge */
.list-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.list-item-date {
  font-size: 0.78rem;
  color: var(--color-blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-sent .list-item-date { color: var(--color-orange); }
.status-completed .list-item-date { color: var(--text-muted); }

.rem-status-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid currentColor;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* Actions: inline row of 3 buttons */
.list-item-actions {
  display: flex;
  flex-direction: row;
  gap: 5px;
  border-top: none !important;
  padding-top: 0 !important;
  flex-shrink: 0;
}

.list-item-actions .rem-btn {
  padding: 5px 8px;
  font-size: 0.68rem;
  border-radius: 7px;
  flex: 0 0 auto;
  min-width: 36px;
}

/* Mobile: stack layout - buttons full width below */
@media (max-width: 640px) {
  .list-item {
    grid-template-columns: 10px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 11px 12px;
  }

  .list-item-dot {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    margin-top: 4px;
  }

  .list-item-body {
    grid-row: 1;
    grid-column: 2;
  }

  .list-item-body .rem-task {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
  }

  .list-item-date {
    font-size: 0.72rem;
  }

  /* Hide status badge text on very small screens */
  .rem-status-badge-pill {
    display: none;
  }

  .list-item-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 7px;
    width: 100%;
  }

  /* Reduced size buttons on mobile */

  .list-item-actions .rem-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.67rem;
  }
}

/* Extra small: icon-only in list buttons */
@media (max-width: 400px) {
  .list-item-actions .rem-btn i + * {
    display: none;
  }
  .list-item-actions .rem-btn {
    padding: 7px 0;
  }
}

/* ==========================================================================
   🚨 MODAL DE CONFIRMACIÓN PREMIUM NOTION-STYLE (CON BLUR)
   ========================================================================== */
.confirm-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3); /* Light Web3 backdrop */
  backdrop-filter: blur(8px); /* Efecto Glassmorphic translúcido */
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.confirm-modal-wrapper.active {
  display: flex;
  opacity: 1;
}

.confirm-modal-card {
  background: var(--bg-surface);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-pop);
  width: 90%;
  max-width: 440px;
  padding: 32px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm-modal-wrapper.active .confirm-modal-card {
  transform: scale(1);
}

.confirm-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 77, 77, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.confirm-modal-icon i {
  color: var(--color-red, #ef4444);
}

#confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

#confirm-modal-message {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  max-width: 340px;
}

.confirm-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.confirm-modal-actions .btn {
  flex: 1;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--border-color);
  font-family: inherit;
}

.btn-danger {
  background-color: var(--color-red, #ef4444);
  color: #ffffff !important;
  border: none !important;
}

.btn-danger:hover {
  background-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.confirm-modal-actions .btn-secondary {
  background-color: var(--bg-surface-solid);
  color: var(--text-main);
}

.confirm-modal-actions .btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
}

/* -------------------------------------------------------------
 * 📌 NOTAS RÁPIDAS & 🎯 HÁBITOS - ESTILOS PREMIUM
 * ------------------------------------------------------------- */

.note-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: none;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-card:hover {
  box-shadow: var(--shadow-pop), var(--glow-secondary);
  transform: translateY(-4px);
}

.note-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.note-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-purple);
  background: rgba(11, 125, 190, 0.1);
  border: 1px solid rgba(11, 125, 190, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   🎯 HABIT CARDS — LIST STYLE PREMIUM
   ========================================================================== */
.habit-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.habit-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-green);
  border-radius: 3px 0 0 3px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.habit-card.completed::before {
  opacity: 1;
}

.habit-card.completed {
  background: rgba(16, 185, 129, 0.05);
}

.habit-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}

/* Status icon: left circle */
.habit-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  background: var(--bg-surface-solid);
  transition: all 0.2s ease;
}

.habit-status-icon.done {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-green);
  color: var(--color-green);
}

/* Info block: title + meta chips */
.habit-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.habit-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-card.completed .habit-title {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

/* Meta row: frequency + streak + times */
.habit-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.habit-freq-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-purple);
  background: rgba(152, 150, 239, 0.1);
  border: 1px solid rgba(152, 150, 239, 0.2);
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.habit-times-badge {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0.8;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 157, 0, 0.1);
  color: var(--color-orange);
  border: 1px solid rgba(255, 157, 0, 0.2);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.68rem;
}

.streak-pill.fire {
  background: rgba(255, 77, 77, 0.1);
  color: var(--color-red);
  border-color: rgba(255, 77, 77, 0.2);
}

/* Action buttons: compact row */
.habit-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.habit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-surface-solid);
  color: var(--text-main);
  white-space: nowrap;
}

.habit-btn-done {
  color: var(--color-green);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.habit-btn-done:hover {
  background: var(--color-green);
  color: #000;
  border-color: var(--color-green);
}

.habit-btn-undo {
  color: var(--text-muted);
  border-color: var(--border-color);
  background: var(--bg-surface-solid);
}

.habit-btn-undo:hover {
  background: var(--bg-surface);
}

.habit-btn-delete {
  color: var(--color-red);
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.06);
  padding: 7px 10px;
}

.habit-btn-delete:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

/* Mobile: COMPACT — icon-only buttons, no times badge, single-row layout */
@media (max-width: 640px) {
  .habit-card {
    padding: 11px 12px;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .habit-status-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .habit-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide times badge on mobile to save space */
  .habit-times-badge {
    display: none;
  }

  .habit-meta {
    gap: 5px;
  }

  .habit-freq-badge,
  .streak-pill {
    font-size: 0.62rem;
    padding: 1px 5px;
  }

  /* Actions: icon-only buttons, no text */
  .habit-actions {
    flex-shrink: 0;
    gap: 4px;
  }

  .habit-btn span {
    display: none;
  }

  .habit-btn {
    padding: 7px 9px;
    flex: 0 0 auto;
    min-width: 32px;
    justify-content: center;
  }

  .habit-btn-delete {
    padding: 7px 9px;
  }
}



/* --- Estilos: Grid de Horarios de Hábitos --- */
.habit-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.habit-time-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.habit-time-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.habit-time-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-surface-solid);
  transition: var(--transition-fast);
  cursor: pointer;
}

.habit-time-input:hover {
  border-color: var(--color-green);
}

.habit-time-input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(15, 123, 78, 0.1);
}

/* Full-width chat section overrides */
.dashboard-section.chat-fullscreen {
  margin: -40px -48px !important;
  padding: 0 !important;
  width: calc(100% + 96px) !important;
  max-width: none !important;
}

@media (max-width: 1024px) {
  .dashboard-section.chat-fullscreen {
    margin: -30px -24px !important;
    width: calc(100% + 48px) !important;
  }
}

/* --- CHAT WEB (Askk AI Style) --- */
.chat-container-card {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  background: transparent;
}

/* Top Bar */
.chat-topbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.topbar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.topbar-btn--upgrade {
  background: #9896ef;
  border-color: #9896ef;
  color: #ffffff;
}

.topbar-btn--upgrade:hover {
  background: #6d28d9;
}

.topbar-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

.topbar-icon-btn:hover {
  color: rgba(255,255,255,0.9);
}

/* Messages Scroll Area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 100px 40px 0 40px;
  display: flex;
  flex-direction: column;
}

/* Welcome / Greeting Screen */
#chat-greeting-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 32px;
  animation: fadeIn 0.4s ease;
}

.greeting-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gradient-text-dumbo {
  background: linear-gradient(135deg, #7b5ef0 0%, #e8485c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.greeting-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 30px;
  max-width: 480px;
  line-height: 1.5;
}

/* New Greeting Input Area */
.greeting-input-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px auto;
  animation: fadeIn 0.5s ease 0.2s both;
}

.greeting-glass-input {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.15); /* Removed solid background color */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.greeting-glass-input .icon-btn-left,
.greeting-glass-input .icon-btn-sparkle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.greeting-glass-input .icon-btn-left:hover,
.greeting-glass-input .icon-btn-sparkle:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.greeting-glass-input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  padding: 12px 20px;
}

.greeting-glass-input input::placeholder {
  color: rgba(255,255,255,0.3);
}

.greeting-glass-input .generate-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.greeting-glass-input .generate-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* Feature Cards 4-Column Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 820px;
}

/* Sparkle decorations */
.feature-card-sparkles {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  line-height: 1;
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle-lg {
  font-size: 1.4rem;
  top: 14px;
  right: 18px;
  animation-delay: 0s;
}

.sparkle-sm {
  font-size: 0.85rem;
  top: 32px;
  right: 42px;
  color: rgba(255,255,255,0.3);
  animation-delay: 0.8s;
}

.sparkle-xs {
  font-size: 0.55rem;
  top: 50px;
  right: 22px;
  color: rgba(255,255,255,0.2);
  animation-delay: 1.5s;
}

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

.feature-card-icon {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* Chat Messages Bubbles */
.chat-message {
  display: flex;
  margin-bottom: 8px;
  animation: fadeIn 0.25s ease-out;
}

.chat-message.user-message { justify-content: flex-end; }
.chat-message.assistant-message { justify-content: flex-start; }

.chat-bubble {
  max-width: 75%;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-message .chat-bubble {
  background: #9896ef;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  padding: 8px 14px;
}

.assistant-message .chat-bubble {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
  padding: 8px 14px;
}

/* Suggestion Pills Row */
.suggestion-pills-row {
  display: flex;
  gap: 8px;
  padding: 16px 40px 10px 40px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.suggestion-pills-row::-webkit-scrollbar { display: none; }

.suggestion-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
}

.suggestion-pill:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.15);
}

/* Prompter Area */
.prompter-wrapper {
  padding: 6px 40px 20px 40px;
  flex-shrink: 0;
}

.prompter-card {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.prompter-card:focus-within {
  border-color: rgba(255,255,255,0.15);
}

.prompter-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.prompter-card textarea,
.prompter-card textarea:hover,
.prompter-card textarea:focus {
  flex: 1;
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.9) !important;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  line-height: 24px;
  height: 40px;
  min-height: 40px;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
}

.prompter-card textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.send-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.attach-btn-inline {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.attach-btn-inline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.send-btn i { font-size: 0.75rem; }

/* Prompter Toolbar (bottom row) */
.prompter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.tool-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.tool-btn:hover { color: rgba(255,255,255,0.8); }
.tool-btn i { font-size: 0.8rem; }
.tool-btn--right { margin-left: auto; }

/* --- Barra de Navegación Inferior Móvil --- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 8, 16, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(152, 150, 239, 0.2);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .bottom-nav-item i {
    font-size: 1.2rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bottom-nav-item.active {
    color: #9896ef;
    text-shadow: 0 0 10px rgba(152, 150, 239, 0.3);
  }

  .bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    color: #9896ef;
  }

  @keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .bottom-nav-logo {
    transform: translateY(-16px);
    z-index: 10;
    flex: 0 0 auto !important;
  }

  .glow-circle-wrapper {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0a0810;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
  }

  .glow-circle-border {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 60%, #7b5ef0 80%, #e8485c 100%);
    animation: rotateGlow 2.5s linear infinite;
    z-index: -1; 
  }

  .dumbo-mobile-logo {
    width: 36px; 
    height: 36px; 
    object-fit: contain; 
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  }

  /* Adjust Main Content to not get clipped by bottom nav */
  .main-content {
    margin-left: 0 !important;
    padding: 76px 22px 90px 22px !important; /* Increased side padding to 22px */
    overflow-x: hidden !important;
  }

  /* Grid Layout Restructure */
  .workspace-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important; /* Increased gap */
  }

  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important; /* Add gap between cards */
  }

  /* Chat full-screen dynamic height adjustments */
  .chat-container-card {
    height: calc(100dvh - 64px - 64px) !important; /* Topbar 64px + Bottomnav 64px */
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }

  .chat-topbar {
    display: none !important; /* Hide redundant secondary topbar to clean up vertical space */
  }

  .greeting-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    margin-top: 10px !important;
    padding: 0 8px !important; /* Add slight padding */
  }

  .greeting-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 24px !important;
    padding: 0 8px !important; /* Add slight padding */
  }

  .chat-messages-area {
    padding: 90px 20px 0 20px !important; /* Increased padding to avoid topbar overlap */
    flex: 1 !important;
    overflow-y: auto !important;
  }

  .suggestion-pills-row {
    padding: 12px 20px 8px 20px !important; /* Increased padding */
  }

  /* Force List View for Reminders on Mobile */
  .view-toggles {
    display: none !important;
  }
  
  #kanban-board {
    display: none !important;
  }
  
  #list-view {
    display: block !important;
  }

  .prompter-wrapper {
    padding: 8px 20px 16px 20px !important; /* Increased padding */
  }

  /* Elements sizing for mobile comfort */
  .card, .note-card, .habit-card, .finance-card {
    border-radius: var(--border-radius-md) !important;
    padding: 20px !important; /* Increased padding inside cards */
    margin-bottom: 16px !important; /* Increased margin below cards */
  }

  .tab-container {
    padding: 4px !important;
    border-radius: var(--border-radius-md) !important;
  }

  .tab-btn {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
  }

  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .form-group {
    margin-bottom: 12px !important;
  }

  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea {
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }

  /* Hide redundant desktop items on mobile to keep app interface clean */
  .app-header,
  .app-top-navbar,
  .upgrade-banner,
  .sidebar-collapse-btn {
    display: none !important;
  }

  .sidebar-close-mobile-btn {
    display: block !important;
  }
}

/* --- Fin de Estilos --- */

/* ==========================================================================
   📋 MODAL DETALLE DE RECORDATORIO — PREMIUM GLASSMORPHISM
   ========================================================================== */

.rem-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;    /* Bottom sheet on mobile */
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rem-detail-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* The card itself */
.rem-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 28px 24px 32px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.rem-detail-overlay.active .rem-detail-card {
  transform: translateY(0);
}

/* Pull handle */
.rem-detail-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
}

/* Close button */
.rem-detail-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-solid);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.rem-detail-close:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

/* Header: status + source */
.rem-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: 8px;
}

.rem-detail-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rem-detail-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Title */
.rem-detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 20px 0;
  padding-right: 24px;
}

/* Info rows */
.rem-detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rem-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rem-detail-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rem-detail-row-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.rem-detail-row-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: capitalize;
}

/* Original text */
.rem-detail-original {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(152, 150, 239, 0.07);
  border-left: 3px solid var(--color-purple);
  border-radius: 0 10px 10px 0;
}

.rem-detail-original-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.rem-detail-original p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Action buttons row */
.rem-detail-actions {
  display: flex;
  gap: 8px;
}

.rem-detail-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-surface-solid);
  color: var(--text-main);
}

.rem-detail-btn-done {
  color: var(--color-green);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}
.rem-detail-btn-done:hover {
  background: var(--color-green);
  color: #000;
  border-color: var(--color-green);
}

.rem-detail-btn-calendar {
  color: #4285F4;
  border-color: rgba(66, 133, 244, 0.3);
  background: rgba(66, 133, 244, 0.08);
}
.rem-detail-btn-calendar:hover {
  background: rgba(66, 133, 244, 0.18);
  border-color: #4285F4;
}

.rem-detail-btn-cancel {
  color: var(--color-red);
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
}
.rem-detail-btn-cancel:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.rem-detail-btn-reopen {
  color: var(--color-orange);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.rem-detail-btn-reopen:hover {
  background: var(--color-orange);
  color: #000;
}

.rem-detail-btn-delete {
  color: var(--color-red);
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
}
.rem-detail-btn-delete:hover {
  background: var(--color-red);
  color: #fff;
}

/* Desktop: centered dialog, not bottom sheet */
@media (min-width: 641px) {
  .rem-detail-overlay {
    align-items: center;
  }
  .rem-detail-card {
    border-radius: 20px;
    max-width: 480px;
    transform: scale(0.95) translateY(8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
  .rem-detail-overlay.active .rem-detail-card {
    transform: scale(1) translateY(0);
  }
  .rem-detail-card::before {
    display: none;
  }
}

/* ==========================================================================
   📈 FINANCE CHARTS LAYOUT
   ========================================================================== */
.finance-charts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.finance-chart-area {
  padding: 24px;
  width: 100%;
}

.finance-pie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.finance-pie-card {
  padding: 24px;
}

.finance-chart-header {
  margin-bottom: 20px;
}

.finance-chart-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 4px 0;
}

.finance-pie-canvas-wrap {
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .finance-pie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .finance-pie-card {
    padding: 16px 12px;
  }
  .finance-chart-area {
    padding: 16px 12px;
  }
  .finance-pie-canvas-wrap {
    height: 150px;
  }
  .finance-chart-header h2.card-title {
    font-size: 0.9rem !important;
  }
  .finance-chart-label {
    font-size: 0.65rem;
  }
}

/* =========================================================
   WEB3 LANDING PAGE DESIGN (LOGIN SCREEN)
   ========================================================= */

.login-screen-wrapper {
  background: linear-gradient(270deg, #07041D, #000000, #07041D);
  background-size: 600% 600%;
  -webkit-animation: LandingAnimation 30s ease infinite;
  -moz-animation: LandingAnimation 30s ease infinite;
  animation: LandingAnimation 30s ease infinite;
  background-color: #0b0710;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
}

/* Navbar */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-landing-login {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s;
}

.btn-landing-login:hover {
  color: #fff;
}

.btn-landing-demo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-landing-demo:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 80px;
  margin-top: 0;
}

.hero-container {
  background-image: url("ChatGPT Image 19 may 2026, 06_28_23 p.m.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-badge img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  padding: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.hero-badge span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.btn-hero-cta {
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
  color: #000;
  border: none;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.hero-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s;
}

.hero-hint:hover {
  color: #fff;
}

/* Trusted By */
.landing-trusted {
  text-align: center;
  padding: 40px 20px 80px;
}

.landing-trusted p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trusted-logos span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 24px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modal */
.landing-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
  overflow: hidden;
}

.landing-modal-card {
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: #fff;
}

.landing-modal-card h2 {
  margin-bottom: 8px;
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.landing-modal-card p.login-instruction {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.landing-modal-card label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.landing-modal-card input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  width: 100% !important;
  font-size: 1rem !important;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.landing-modal-card input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.landing-modal-card input:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none !important;
  box-shadow: none !important;
}

.landing-modal-card .btn-primary {
  background: #DE4968 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px !important;
  font-weight: 700 !important;
  font-size: 1rem;
  width: 100%;
  margin-top: 12px;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.landing-modal-card .btn-primary:hover {
  background: #c73d5a !important;
  color: #fff !important;
  transform: translateY(-2px);
  opacity: 1;
}

.landing-modal-card .btn-primary:active {
  background: #b8354f !important;
  color: #fff !important;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .nav-links { display: none; }
  .landing-nav { padding: 20px; }
  .trusted-logos { gap: 16px; }
  .trusted-logos span { padding: 8px 16px; font-size: 0.9rem; }
}

@-webkit-keyframes LandingAnimation {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes LandingAnimation {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes LandingAnimation {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

