/* -------------------------------------------------------------
   Perhio Premium Stylesheet
   Designed for Visual Excellence, Sleek Interactivity & Smooth Transitions
   ------------------------------------------------------------- */

/* =============================================================
   1. Design System, Resets & Google Fonts
   ============================================================= */
:root {
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-round: 50%;

  /* Shadow Design */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Priorities Colors */
  --priority-high-bg: rgba(239, 68, 68, 0.12);
  --priority-high-color: #ef4444;
  --priority-medium-bg: rgba(245, 158, 11, 0.12);
  --priority-medium-color: #f59e0b;
  --priority-low-bg: rgba(59, 130, 246, 0.12);
  --priority-low-color: #3b82f6;
}

/* --- Theme Accent Selection Configurations --- */
.theme-indigo {
  --primary-hue: 242;
  --primary-sat: 88%;
  --primary-lightness: 60%;
  --primary-rgb: 79, 70, 229;
}

.theme-emerald {
  --primary-hue: 156;
  --primary-sat: 72%;
  --primary-lightness: 42%;
  --primary-rgb: 16, 185, 129;
}

.theme-rose {
  --primary-hue: 343;
  --primary-sat: 87%;
  --primary-lightness: 60%;
  --primary-rgb: 236, 72, 153;
}

.theme-orange {
  --primary-hue: 24;
  --primary-sat: 95%;
  --primary-lightness: 53%;
  --primary-rgb: 249, 115, 22;
}

.theme-violet {
  --primary-hue: 271;
  --primary-sat: 85%;
  --primary-lightness: 60%;
  --primary-rgb: 139, 92, 246;
}

/* --- Light Mode Core Colors --- */
.light-mode {
  --primary-color: HSL(var(--primary-hue), var(--primary-sat), var(--primary-lightness));
  --primary-light: HSL(var(--primary-hue), var(--primary-sat), calc(var(--primary-lightness) + 30%));
  --primary-light-alpha: HSLA(var(--primary-hue), var(--primary-sat), var(--primary-lightness), 0.12);
  --primary-glow: HSLA(var(--primary-hue), var(--primary-sat), var(--primary-lightness), 0.35);

  --bg-app: HSL(223, 30%, 97%);
  --bg-sidebar: rgba(255, 255, 255, 0.75);
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-focus: rgba(79, 70, 229, 0.4);

  --text-main: HSL(224, 25%, 15%);
  --text-muted: HSL(220, 15%, 50%);
  --text-inverse: #ffffff;
  
  --backdrop-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* --- Dark Mode Core Colors --- */
.dark-mode {
  --primary-color: HSL(var(--primary-hue), var(--primary-sat), calc(var(--primary-lightness) + 5%));
  --primary-light: HSL(var(--primary-hue), var(--primary-sat), calc(var(--primary-lightness) - 15%));
  --primary-light-alpha: HSLA(var(--primary-hue), var(--primary-sat), var(--primary-lightness), 0.15);
  --primary-glow: HSLA(var(--primary-hue), var(--primary-sat), var(--primary-lightness), 0.45);

  --bg-app: HSL(224, 25%, 8%);
  --bg-sidebar: rgba(18, 22, 33, 0.75);
  --bg-card: rgba(28, 33, 48, 0.65);
  --bg-card-hover: rgba(36, 42, 61, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(139, 92, 246, 0.4);

  --text-main: HSL(220, 20%, 92%);
  --text-muted: HSL(220, 10%, 62%);
  --text-inverse: #0b0f19;

  --backdrop-blur: blur(20px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Global Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Utility Hidden & Formats */
.hidden {
  display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =============================================================
   2. App Layout Structure
   ============================================================= */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.app-sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--glass-shadow);
  transition: background var(--transition-normal), border var(--transition-normal), transform var(--transition-normal);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-normal);
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.05);
}

.brand h1 {
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-main), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* Sidebar Nav & Categories */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 4px;
}

.nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 8px;
}

.add-cat-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.add-cat-btn:hover {
  background: var(--primary-light-alpha);
  color: var(--primary-color);
}

/* Inline Category Creator Form */
.category-creator-inline {
  background: var(--bg-card);
  border: 1px solid var(--primary-light-alpha);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-bottom: 12px;
  animation: slideDown var(--transition-normal) forwards;
}

.category-creator-inline input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 8px;
}

.category-creator-inline input:focus {
  border-color: var(--primary-color);
}

.creator-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-cancel-sm, .btn-confirm-sm {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.btn-cancel-sm {
  color: var(--text-muted);
}
.btn-cancel-sm:hover {
  background: var(--border-color);
}

.btn-confirm-sm {
  background: var(--primary-color);
  color: #ffffff;
}
.btn-confirm-sm:hover {
  background: var(--primary-light);
}

/* Categories List */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.category-item:hover {
  background: var(--primary-light-alpha);
  color: var(--primary-color);
  padding-left: 18px;
}

.category-item.active {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.category-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.category-icon {
  display: flex;
  align-items: center;
}

.category-count {
  font-size: 11px;
  background: var(--border-color);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.category-delete-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  padding: 2px;
  border-radius: 4px;
}

.category-item:hover .category-count {
  display: none;
}
.category-item:hover .category-delete-btn {
  display: flex;
}
.category-delete-btn:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ef4444;
}
.category-item.active .category-delete-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Sidebar Preferences Footer */
.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preference-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Theme Dot Selector */
.accent-selector {
  display: flex;
  gap: 8px;
}

.accent-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-round);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.accent-dot:hover {
  transform: scale(1.15);
}

.accent-dot.active {
  border-color: var(--text-main);
  transform: scale(1.05);
}

.accent-dot.indigo { background-color: #4f46e5; }
.accent-dot.emerald { background-color: #10b981; }
.accent-dot.rose { background-color: #ec4899; }
.accent-dot.orange { background-color: #f97316; }
.accent-dot.violet { background-color: #8b5cf6; }

/* Switch Toggle Styling */
.theme-mode-toggle {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-inverse);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider-round {
  background-color: var(--primary-color);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

.footer-info {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* =============================================================
   3. Main Content Styling
   ============================================================= */
.app-main {
  flex: 1;
  padding: 36px 48px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Header Component */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  background: var(--border-color);
}

.date-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: var(--radius-round);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Search Box styling */
.search-box {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-round);
  color: var(--text-main);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  width: 300px;
}

/* Dashboard Banner Card */
.dashboard-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--primary-light-alpha));
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal);
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-category-title {
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.banner-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Radial Progress Ring */
.progress-visualization {
  display: flex;
  align-items: center;
}

.progress-radial-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
  transform-origin: 50% 50%;
}

.progress-percentage-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

/* Action Panel & Filter Buttons */
.action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-controls {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.high-dot {
  width: 6px;
  height: 6px;
  background-color: var(--priority-high-color);
  border-radius: var(--radius-round);
}

/* Button UI */
.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-round);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.dark-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =============================================================
   4. Tasks Rendering
   ============================================================= */
.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Premium Task Card styling */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.task-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light-alpha);
}

.task-card.completed {
  border-color: var(--border-color);
  opacity: 0.7;
}

/* Task Header: Checkbox and Main Info */
.task-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-left-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

/* Custom Checkbox Design */
.custom-checkbox-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-top: 2px;
}

.custom-checkbox-input {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.custom-checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background-color: transparent;
}

.custom-checkbox-input:checked + .custom-checkbox-box {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.custom-checkbox-box svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.2s ease-in-out;
}

.custom-checkbox-input:checked + .custom-checkbox-box svg {
  stroke-dashoffset: 0;
}

.task-text-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Badge Layouts */
.task-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Priority Colors */
.badge.priority-high {
  background: var(--priority-high-bg);
  color: var(--priority-high-color);
}
.badge.priority-medium {
  background: var(--priority-medium-bg);
  color: var(--priority-medium-color);
}
.badge.priority-low {
  background: var(--priority-low-bg);
  color: var(--priority-low-color);
}

/* Date Badge details */
.badge.due-date-badge {
  background: var(--border-color);
  color: var(--text-muted);
  text-transform: none;
  font-weight: 500;
}

.badge.due-date-badge.urgent {
  background: var(--priority-high-bg);
  color: var(--priority-high-color);
}

.badge.due-date-badge.today {
  background: var(--priority-medium-bg);
  color: var(--priority-medium-color);
}

.badge.category-tag {
  background: var(--primary-light-alpha);
  color: var(--primary-color);
}

/* Subtask Counts indicators */
.badge.subtasks-count-badge {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  text-transform: none;
}

/* Task Operations / Actions */
.task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.task-action-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.task-action-btn.btn-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.task-action-btn.btn-expand.expanded {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Nested Checklist Subtasks Panel inside Task */
.task-subtasks-wrapper {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown var(--transition-normal) forwards;
}

.task-subtask-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.task-subtask-item:hover {
  background: var(--border-color);
}

.task-subtask-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subtask-input-hidden {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.subtask-input-hidden:checked + .task-subtask-checkbox {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.task-subtask-checkbox svg {
  width: 10px;
  height: 10px;
  color: #ffffff;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.15s ease-in-out;
}

.subtask-input-hidden:checked + .task-subtask-checkbox svg {
  stroke-dashoffset: 0;
}

.subtask-title {
  font-size: 13.5px;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.subtask-input-hidden:checked ~ .subtask-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Empty State Styling */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 14px;
  max-width: 400px;
  margin: 40px auto;
  animation: fadeIn var(--transition-slow) forwards;
}

.empty-state-illustration {
  color: var(--primary-color);
  opacity: 0.95;
  margin-bottom: 8px;
}

.empty-state-container h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.empty-state-container p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   5. Interactive Dialog / Modal Form
   ============================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

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

.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-secondary);
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* Modal Form Fields */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-group label .required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select,
.form-group input[type="date"] {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-app);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light-alpha);
  background: var(--bg-card-hover);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Dynamic subtasks inside modal form */
.subtasks-form-section {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.subtasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-add-subtask {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.btn-add-subtask:hover {
  background: var(--primary-light-alpha);
}

.form-subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.form-subtask-row {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.2s forwards;
}

.form-subtask-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px !important;
}

.btn-remove-subtask {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.btn-remove-subtask:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 8px;
}

/* =============================================================
   6. Custom Canvas Confetti & Toast Notifications
   ============================================================= */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
}

.toast {
  background: var(--bg-card);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards, toastOut 0.3s 3.5s forwards;
  min-width: 250px;
  backdrop-filter: var(--backdrop-blur);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.toast.toast-success {
  border-left-color: #10b981;
}

.toast.toast-info {
  border-left-color: var(--primary-color);
}

.toast.toast-warning {
  border-left-color: #f59e0b;
}

/* =============================================================
   6.5 AI Task Generator Layout
   ============================================================= */
.ai-generator-panel {
  width: 100%;
  animation: fadeIn var(--transition-slow) forwards;
}

.ai-input-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

.ai-input-wrapper:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.ai-spark-icon {
  font-size: 18px;
  animation: pulseSparkle 2.2s infinite ease-in-out;
  user-select: none;
}

.ai-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  padding: 8px 0;
}

.ai-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.btn-ai-submit {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-ai-submit:hover {
  background: linear-gradient(135deg, #9a6eff, #5a51fb);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-1.5px);
}

.btn-ai-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.btn-ai-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner Animations inside button */
.ai-btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-spinner {
  width: 16px;
  height: 16px;
  animation: ai-rotate 2s linear infinite;
}

.ai-spinner-path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: ai-dash 1.5s ease-in-out infinite;
}

/* AI Task Breakdown Card Button & Review Modal Styles */
.btn-card-ai {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border: 1px solid var(--primary-light-alpha);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.btn-card-ai:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

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

.btn-card-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Review Modal Subcomponents */
.review-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.review-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.review-task-title {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-light-alpha);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 12px;
}

.review-subtasks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 4px;
}

.review-subtask-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-app);
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.review-subtask-row:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.18);
  background: var(--bg-card-hover);
}

.review-subtask-row input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  padding: 0;
}

.duration-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  white-space: nowrap;
}

/* =============================================================
   7. Keyframe Animations
   ============================================================= */
@keyframes pulseSparkle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.4));
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
  }
}

@keyframes ai-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ai-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; overflow: hidden; }
  to { opacity: 1; transform: translateY(0); max-height: 300px; }
}

@keyframes toastIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateY(-20px); opacity: 0; }
}

/* =============================================================
   8. Responsive Media Queries
   ============================================================= */
@media (max-width: 1024px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-close-btn {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .app-main {
    padding: 24px 20px;
  }

  .main-header {
    flex-direction: column-row;
    align-items: stretch;
    gap: 16px;
  }
  
  .header-left {
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
  }

  .search-box input:focus {
    width: 100%;
  }

  .dashboard-banner {
    padding: 20px 24px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .progress-visualization {
    align-self: flex-end;
  }

  .action-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-controls {
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
  }

  .btn-add-task {
    width: 100%;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-card {
    padding: 20px;
    margin: 10px;
  }
}

/* =============================================================
   7. AI Category Manager Custom Styles
   ============================================================= */
.category-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-ai-category-suggest {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.15);
}

.btn-ai-category-suggest:hover {
  background: var(--primary-light-alpha);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-ai-category-suggest:active {
  transform: translateY(0);
}

.btn-ai-category-suggest.loading {
  opacity: 0.7;
  pointer-events: none;
}

.category-suggestion-container {
  background: var(--bg-card-hover);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
  animation: slideDown var(--transition-fast) forwards;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
}

.category-suggestion-container.hidden {
  display: none;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggestion-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggestion-body {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.suggestion-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light-alpha);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin: 0 4px;
}

.suggestion-reason {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.suggestion-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-suggest-action {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-suggest-confirm {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
}

.btn-suggest-confirm:hover {
  background: rgba(var(--primary-rgb), 0.9);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

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

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

.btn-suggest-cancel {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}

.btn-suggest-cancel:hover {
  color: #ef4444;
}

.limit-warning-banner {
  background: rgba(249, 115, 22, 0.1);
  border: 1px dashed #f97316;
  color: #f97316;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* AI Task Review Proposed Category Callout */
.review-modal-proposed-category {
  background: var(--bg-card-hover);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown var(--transition-fast) forwards;
}

.proposed-category-text {
  font-size: 13.5px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proposed-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-light-alpha);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* =============================================================
   8. Smart Daily Suggestions Premium Styling
   ============================================================= */
.ai-suggestions-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.08));
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
  transition: all var(--transition-normal);
  animation: fadeIn var(--transition-slow) forwards;
}

.ai-suggestions-banner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.18), var(--shadow-glow);
}

.suggestions-banner-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  filter: blur(15px);
  pointer-events: none;
}

.suggestions-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.suggestions-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.suggestions-spark {
  font-size: 20px;
  color: #ffffff;
  animation: pulseSparkle 2.2s infinite ease-in-out;
}

.suggestions-text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggestions-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-secondary);
}

.suggestions-banner-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-suggestions-plan {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
  white-space: nowrap;
}

.btn-suggestions-plan:hover {
  background: linear-gradient(135deg, #9a6eff, #5a51fb) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45) !important;
}

.btn-arrow {
  margin-left: 6px;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.btn-suggestions-plan:hover .btn-arrow {
  transform: translateX(3px);
}

/* Modal Wide Card Profile */
.suggestions-card {
  max-width: 680px !important;
  width: 95% !important;
}

/* Pulse Loading Screen */
.suggestions-loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.suggestions-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.suggestions-pulse-container {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestions-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: suggestions-pulse-anim 2s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.suggestions-pulse-ring.ring-1 {
  animation-delay: 0s;
}

.suggestions-pulse-ring.ring-2 {
  animation-delay: 0.6s;
}

.suggestions-pulse-ring.ring-3 {
  animation-delay: 1.2s;
}

.suggestions-pulse-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.suggestions-loading-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-secondary);
}

.suggestions-loading-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 320px;
  height: 20px;
  transition: all var(--transition-fast);
}

@keyframes suggestions-pulse-anim {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-color: rgba(139, 92, 246, 0.05);
  }
}

/* Suggestions Main Content layout */
.suggestions-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.suggestions-summary-block {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestions-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestions-focus-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Focus mode color states */
.suggestions-focus-badge.catch-up {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.suggestions-focus-badge.deep-work {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.suggestions-focus-badge.quick-win {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.suggestions-focus-badge.balanced {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.btn-refresh-suggestions {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-refresh-suggestions:hover {
  background: var(--border-color);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-refresh-suggestions svg {
  transition: transform 0.4s ease;
}

.btn-refresh-suggestions:hover svg {
  transform: rotate(180deg);
}

.suggestions-summary-text {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* Warnings banner */
.suggestions-warning-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
}

.suggestions-warning-banner .warning-icon {
  font-size: 14px;
  line-height: 1.2;
}

.suggestions-section-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
  margin-top: 4px;
  text-transform: uppercase;
}

.suggestions-section-title.delay-title {
  color: var(--text-muted);
}

/* Recommended Order List & Cards */
.suggestions-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.suggestion-task-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.suggestion-task-card:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
}

/* Highlight badge inside suggestion task card */
.suggestion-task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-color);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.suggestion-task-card.priority-high::before {
  background: #ef4444;
}
.suggestion-task-card.priority-medium::before {
  background: #f59e0b;
}
.suggestion-task-card.priority-low::before {
  background: #3b82f6;
}

.suggestion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.suggestion-card-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggestion-card-index-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-card-index {
  font-size: 11px;
  font-weight: 800;
  background: var(--border-color);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.suggestion-card-reason {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  font-style: italic;
  margin-top: 2px;
}

.suggestion-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.suggestion-meta-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Quick win emerald green badge */
.suggestion-meta-badge.quick-win-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Energy Level colors */
.suggestion-meta-badge.energy-low {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.suggestion-meta-badge.energy-medium {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.suggestion-meta-badge.energy-high {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.suggestion-meta-badge.duration-tag {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-transform: none;
}

.suggestion-meta-badge.category-tag {
  background: var(--primary-light-alpha);
  color: var(--primary-color);
  text-transform: none;
}

/* Buttons group for actions inside cards */
.suggestion-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 2px;
}

.btn-suggestion-action {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-suggestion-action:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-suggestion-action.btn-complete-suggestion {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-suggestion-action.btn-complete-suggestion:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.btn-suggestion-action.btn-go-to-task {
  color: var(--primary-color);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.btn-suggestion-action.btn-go-to-task:hover {
  background: var(--primary-light-alpha);
  border-color: var(--primary-color);
}

.btn-suggestion-action.btn-snooze-suggestion:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Delayed Tasks section */
.suggestions-delayed-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.suggestions-delayed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delayed-task-row {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0.85;
}

.delayed-task-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delayed-task-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.delayed-task-reason {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
}

.btn-delayed-go-task {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-delayed-go-task:hover {
  color: var(--primary-color);
  background: var(--primary-light-alpha);
}

/* Motivation Footer */
.suggestions-motivation-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.06), transparent);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
  margin-top: 10px;
}

.motivation-icon {
  font-size: 18px;
}

.motivation-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Empty suggestions screen styling */
.suggestions-empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  gap: 16px;
}

.empty-sparkle {
  font-size: 40px;
  animation: pulseSparkle 2s infinite ease-in-out;
  display: inline-block;
  margin-bottom: 8px;
}

.suggestions-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-secondary);
}

.suggestions-empty-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
}

.btn-empty-cta {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

/* Error suggestions screen styling */
.suggestions-error-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  gap: 16px;
}

.error-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.suggestions-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-secondary);
}

.suggestions-error-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
}

.btn-error-retry {
  background: var(--primary-color) !important;
}

.btn-error-retry:hover {
  background: rgba(var(--primary-rgb), 0.9) !important;
}

@media (max-width: 600px) {
  .ai-suggestions-banner-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .btn-suggestions-plan {
    width: 100%;
    justify-content: center;
  }

  .suggestions-summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-refresh-suggestions {
    width: 100%;
    justify-content: center;
  }

  .suggestion-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .suggestion-card-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .btn-suggestion-action {
    flex: 1;
    min-width: 110px;
    justify-content: center;
  }
}

/* =============================================================
   9. Upgraded "Today Plan" Confirmable Workflow Styles
   ============================================================= */

/* Today Plan Dashboard Section Wrapper */
.today-plan-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.07), rgba(79, 70, 229, 0.03));
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
  animation: fadeIn var(--transition-normal) forwards;
}

.today-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding-bottom: 10px;
}

.today-plan-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-plan-header-sparkle {
  font-size: 18px;
  color: #8b5cf6;
  animation: pulseSparkle 2s infinite ease-in-out;
}

.today-plan-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.today-plan-progress-info {
  font-size: 12.5px;
  font-weight: 700;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.today-plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Today Plan Dashboard Cards */
.today-plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15), var(--shadow-sm);
}

.today-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.today-plan-card.completed {
  opacity: 0.6;
  border-color: var(--border-color);
  box-shadow: none;
}

.today-plan-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.today-plan-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.today-plan-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.today-plan-card-index {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.today-plan-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.today-plan-card.completed .today-plan-card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.today-plan-card-reason {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.today-plan-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* Today Plan Actions Panel */
.today-plan-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Completion check for today plan */
.today-plan-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

/* Success state banner */
.today-plan-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  animation: fadeIn var(--transition-normal) forwards;
}

.today-plan-success-state .success-sparkle {
  font-size: 32px;
  margin-bottom: 8px;
  animation: pulseSparkle 2s infinite ease-in-out;
}

.today-plan-success-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 4px;
}

.today-plan-success-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Main List Highlight and Badge Styles */
.task-card.in-today-plan {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.1), var(--shadow-sm);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.02), var(--bg-card)) !important;
}

.in-today-plan-badge {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #8b5cf6 !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  font-weight: 800 !important;
}

/* Reorder and Plan Customization Controls */
.modal-add-task-container {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-add-task-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-add-task-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.active-tasks-select {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.btn-add-to-plan {
  background: var(--primary-light-alpha) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-add-to-plan:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* Up/Down Shift Button Style */
.btn-reorder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.btn-reorder:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-reorder:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--bg-card) !important;
  color: var(--text-muted) !important;
}

/* Interactive Card Customizations inside modal */
.suggestion-task-card .btn-remove-suggestion {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.suggestion-task-card .btn-remove-suggestion:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
}

/* Confirm Footer Styles in modal */
.suggestions-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 10px;
}

/* responsive refinements */
@media (max-width: 600px) {
  .today-plan-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .today-plan-card-actions {
    justify-content: flex-end;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
  }
  
  .modal-add-task-row {
    flex-direction: column;
  }
  
  .btn-add-to-plan {
    width: 100%;
    justify-content: center;
  }
}



/* =============================================================
   AUTHENTICATION — Modal, User Chip, Demo Banner, Loading Overlay
   ============================================================= */

/* ---- Header: Login button (guest state) ---- */
.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-header-login:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  opacity: 0.92;
}

/* ---- Header: User chip (authenticated state) ---- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.user-chip:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-primary);
}
.user-email {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}
.btn-signout:hover {
  background: var(--bg-card-hover);
  color: var(--primary-color);
}

/* ---- Demo Banner ---- */
.demo-banner {
  margin: 0 24px 0;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.04) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.demo-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.demo-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.demo-banner-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1px;
}
.demo-banner-text span {
  font-size: 12px;
  color: var(--text-secondary);
}
.demo-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-demo-login, .btn-demo-register {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}
.btn-demo-login {
  background: var(--primary-color);
  color: #fff;
}
.btn-demo-login:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn-demo-register {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}
.btn-demo-register:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

/* =============================================================
   20. Standalone Premium Authentication Aesthetics (Asymmetric Split Screen)
   ============================================================= */
#auth-standalone-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--perhio-bg, #FAF9F5);
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Left Panel: Showcase Visuals */
.auth-visual-panel {
  flex: 1.1;
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.03) 0%, rgba(99, 57, 240, 0.01) 90%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(124, 58, 237, 0.05);
}

.auth-visual-content {
  max-width: 520px;
  margin: auto 0;
  position: relative;
  z-index: 5;
}

.auth-visual-logo {
  margin-bottom: 48px;
}
.auth-visual-logo img {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.auth-showcase-title {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--perhio-text-light, #0D0C15);
  margin-bottom: 16px;
}

.auth-showcase-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--perhio-text-gray, #4E4D5D);
  margin-bottom: 48px;
  font-weight: 500;
}

/* Mockup cards inside visual panel */
.auth-showcase-mockup {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.auth-mockup-card {
  background: var(--perhio-glass-bg, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--luxury-shadow, 0 10px 40px rgba(124, 58, 237, 0.02));
  max-width: 440px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-mockup-card:hover {
  transform: translateY(-2px);
}

.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mockup-card-header .emoji {
  font-size: 16px;
}
.mockup-card-header h4 {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--perhio-text-light, #0D0C15);
  margin: 0;
}

.auth-mockup-card p {
  font-size: 12.5px;
  color: var(--perhio-text-gray, #4E4D5D);
  line-height: 1.55;
  margin: 0;
}

.mockup-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.06);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 12px;
}

.mockup-chart {
  margin-top: 12px;
  background: rgba(124, 58, 237, 0.02);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-stats {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 12px;
}

.auth-visual-footer {
  font-size: 12px;
  color: var(--perhio-text-gray, #A09EAE);
  font-weight: 600;
}

/* Right Panel: Interactive forms */
.auth-forms-panel {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px;
  background: #ffffff;
  position: relative;
  z-index: 10;
}

.auth-forms-header {
  display: none;
}
.auth-mobile-logo {
  height: 32px;
}

.auth-forms-card-wrapper {
  max-width: 420px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-card {
  width: 100%;
  animation: form-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes form-slide-in {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-form-card h3 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  color: var(--perhio-text-light, #0D0C15);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  margin-top: 0;
}

.auth-card-desc {
  font-size: 14.5px;
  color: var(--perhio-text-gray, #4E4D5D);
  margin-bottom: 32px;
  line-height: 1.5;
  margin-top: 0;
}

/* Input structures */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}
.auth-field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--perhio-text-light, #0D0C15);
  font-family: var(--font-primary);
}

.auth-field-group input {
  height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1.5px solid rgba(124, 58, 237, 0.08);
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.02);
  font-family: var(--font-primary);
  font-size: 14.5px;
  color: var(--perhio-text-light, #0D0C15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.auth-field-group input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
  transform: translateY(-1px);
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.auth-sub-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-sub-link:hover {
  opacity: 0.8;
}

.password-input-container {
  position: relative;
  width: 100%;
}
.password-input-container input {
  padding-right: 52px;
}

.pwd-toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--perhio-text-gray, #A09EAE);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  transition: color 0.2s;
}
.pwd-toggle-btn:hover {
  color: var(--primary-color);
}

/* GDPR Checkboxes and Consents */
.auth-consent-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.consent-checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.02);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.consent-checkbox-label input:checked ~ .custom-checkbox {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.consent-checkbox-label input:checked ~ .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 12.5px;
  color: var(--perhio-text-gray, #4E4D5D);
  line-height: 1.5;
  font-weight: 500;
}

.consent-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}
.consent-link:hover {
  text-decoration: underline;
}

.auth-card-switch {
  font-size: 13.5px;
  color: var(--perhio-text-gray, #4E4D5D);
  text-align: center;
  margin-top: 24px;
  font-weight: 500;
}
.auth-card-switch a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}
.auth-card-switch a:hover {
  text-decoration: underline;
}

/* Warnings and error indicators */
.auth-error-banner {
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: banner-shake 0.4s ease;
}

.auth-success-banner {
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.05);
  border: 1.5px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

@keyframes banner-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.btn-auth-action {
  width: 100%;
  height: 52px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}
.btn-auth-action:active {
  transform: scale(0.98);
}

.auth-spinner-line {
  width: 20px;
  height: 20px;
  border: 2px dashed #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.auth-forms-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--perhio-text-gray, #A09EAE);
  font-size: 11.5px;
  line-height: 1.5;
  max-width: 420px;
  margin: 40px auto 0;
  font-weight: 500;
}
.auth-forms-footer .shield-icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

/* ---- App Loading Overlay ---- */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  transition: opacity 0.3s ease;
}
.app-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.app-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.app-loading-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
}
.app-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.app-loading-text {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-primary);
}

/* ---- Disabled state for guest mode ---- */
.guest-mode .btn-add-task,
.guest-mode .btn-ai-submit,
.guest-mode .btn-suggestions-plan {
  position: relative;
  overflow: hidden;
}
.guest-mode .btn-add-task::after,
.guest-mode .btn-ai-submit::after,
.guest-mode .btn-suggestions-plan::after {
  content: '🔒';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
}

/* Responsive auth adjustments */
@media (max-width: 992px) {
  .auth-visual-panel {
    display: none;
  }
  .auth-forms-panel {
    flex: 1;
    padding: 48px 24px;
    background: var(--perhio-bg, #FAF9F5);
  }
  .auth-forms-header {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }
  .auth-forms-card-wrapper {
    background: var(--perhio-glass-bg, rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: var(--luxury-shadow, 0 10px 40px rgba(124, 58, 237, 0.03));
  }
}
@media (max-width: 480px) {
  .auth-forms-panel {
    padding: 32px 16px;
  }
  .auth-forms-card-wrapper {
    padding: 24px 16px;
  }
  .demo-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-email {
    display: none;
  }
}

/* ---- App Loading Overlay ---- */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  transition: opacity 0.3s ease;
}
.app-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.app-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.app-loading-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
}
.app-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.app-loading-text {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-primary);
}

/* ---- Disabled state for guest mode ---- */
.guest-mode .btn-add-task,
.guest-mode .btn-ai-submit,
.guest-mode .btn-suggestions-plan {
  position: relative;
  overflow: hidden;
}
.guest-mode .btn-add-task::after,
.guest-mode .btn-ai-submit::after,
.guest-mode .btn-suggestions-plan::after {
  content: '🔒';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
}

/* ---- Responsive auth adjustments ---- */
@media (max-width: 480px) {
  .auth-modal-card {
    padding: 28px 20px 22px;
  }
  .demo-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-email {
    display: none;
  }
}

/* =============================================================
   19. PERHIO B2C App-Focused Public Landing Page & UI Mockups
   ============================================================= */

/* Main public landing container - enforces premium B2C warm light canvas */
#public-landing-page {
  --perhio-purple: #7C3AED;
  --perhio-cyan: #0D9488;
  --perhio-bg: #FAF9F5;          /* Warm silk-white / alabaster canvas */
  --perhio-dark-gray: #FFFFFF;    /* Pure card canvas */
  --perhio-glass-bg: rgba(255, 255, 255, 0.75); /* Luxury translucent glass */
  --perhio-border: rgba(124, 58, 237, 0.05);   /* Subtly tinted border */
  --perhio-text-light: #0D0C15;  /* Bold obsidian dark */
  --perhio-text-gray: #4E4D5D;   /* Warm slate gray for descriptions */
  --luxury-shadow: 0 10px 40px rgba(124, 58, 237, 0.04), 0 50px 100px rgba(0, 0, 0, 0.03);
  --perspective-grid: radial-gradient(rgba(124, 58, 237, 0.08) 1.5px, transparent 1.5px);

  background-color: var(--perhio-bg);
  color: var(--perhio-text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Ambient glow accents */
#public-landing-page::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.14) 0%, rgba(13, 148, 136, 0.05) 50%, transparent 80%);
  z-index: 1;
  pointer-events: none;
  animation: breathe 10s ease-in-out infinite alternate;
}

/* Organic background color blobs */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}
.blob-purple {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.12);
  top: 15%;
  right: -10%;
  animation: float-blob 20s infinite alternate;
}
.blob-teal {
  width: 600px;
  height: 600px;
  background: rgba(13, 148, 136, 0.08);
  top: 45%;
  left: -15%;
  animation: float-blob 25s infinite alternate-reverse;
}

@keyframes breathe {
  0% { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.15); }
}

/* Floating Navigation Header */
.perhio-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--perhio-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  box-shadow: 0 4px 40px rgba(124, 58, 237, 0.03);
  transition: all 0.3s ease;
}

.perhio-nav-left .logo-img {
  height: 40px;
  display: block;
  transition: transform 0.3s ease;
}
.perhio-nav-left .logo-img:hover {
  transform: scale(1.03);
}

.perhio-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* B2C Dynamic CTAs */
.btn-perhio-outline {
  padding: 14px 28px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: transparent;
  color: var(--perhio-text-light);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}
.btn-perhio-outline:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: var(--perhio-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
}

.btn-perhio-glow {
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--perhio-purple) 0%, #6339F0 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-perhio-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}
.btn-perhio-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}
.btn-perhio-glow:hover::before {
  left: 100%;
}

/* Widescreen Asymmetric Hero Section */
.perhio-hero-section {
  padding: 160px 60px 120px;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 4.5fr 6.5fr; /* Asymmetric split */
  gap: 80px;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--perhio-purple);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--perhio-purple), var(--perhio-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline::before {
  content: '✦';
  font-size: 14px;
  background: linear-gradient(90deg, var(--perhio-purple), var(--perhio-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: 64px; /* Bold statement */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--perhio-text-light);
  margin-bottom: 24px;
}

.hero-headline span {
  background: linear-gradient(135deg, var(--perhio-purple) 30%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 18px;
  color: var(--perhio-text-gray);
  margin-bottom: 44px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Layered, Perspective Rich Product Composition */
.hero-composition {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 580px;
  transform-style: preserve-3d;
}

.hero-grid-bg {
  position: absolute;
  width: 130%;
  height: 130%;
  background-image: var(--perspective-grid);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  z-index: 1;
  transform: perspective(1200px) rotateX(45deg) translateY(-20px);
}

/* Interactive 3D Perspective CSS Mockup Board */
.layered-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateY(-14deg) rotateX(10deg);
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: perspective(1400px) rotateY(-14deg) rotateX(10deg) translateY(0); }
  100% { transform: perspective(1400px) rotateY(-12deg) rotateX(8deg) translateY(-15px); }
}

/* Glassmorphic Mockup Cards with rich layers and shadows */
.mockup-card {
  position: absolute;
  background: var(--perhio-glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--luxury-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-card-1 {
  width: 390px;
  top: 30px;
  left: -20px;
  z-index: 10;
  border-color: rgba(124, 58, 237, 0.15);
}
.mockup-card-1:hover {
  transform: translateY(-5px) translateZ(15px);
  border-color: rgba(124, 58, 237, 0.3);
}

.mockup-card-2 {
  width: 330px;
  bottom: 40px;
  right: -10px;
  z-index: 30;
  border-color: rgba(13, 148, 136, 0.12);
}
.mockup-card-2:hover {
  transform: translateY(-5px) translateZ(25px);
  border-color: rgba(13, 148, 136, 0.25);
}

/* Floating Statistics Chart Widget (Card 3) */
.mockup-card-3 {
  width: 200px;
  top: 130px;
  right: 60px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.5);
  animation: float-widget 4s ease-in-out infinite alternate;
}
.mockup-card-3:hover {
  transform: translateY(-3px) translateZ(35px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
}

@keyframes float-widget {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.mockup-card-4 {
  position: absolute;
  background: var(--perhio-glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--luxury-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 250px;
  bottom: -40px;
  left: 30px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  border-color: rgba(13, 148, 136, 0.1);
  animation: float-widget-delayed 5s ease-in-out infinite alternate;
}
.mockup-card-4:hover {
  transform: translateY(-4px) translateZ(45px);
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.06);
}

@keyframes float-widget-delayed {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Focus Wave Graph Styles */
.focus-wave-svg {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  overflow: visible;
}
.wave-path {
  fill: url(#wave-gradient);
  stroke: url(#wave-line-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.wave-dot {
  fill: #0D9488;
  stroke: #ffffff;
  stroke-width: 2;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { r: 4px; stroke-width: 2; }
  50% { r: 6px; stroke-width: 3; }
  100% { r: 4px; stroke-width: 2; }
}

/* AI Focus & Routine Flow Timeline */
.planning-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 30px;
  text-align: left;
}
.planning-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--perhio-purple) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-left: 2px dashed rgba(124, 58, 237, 0.15);
}

.timeline-node {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--perhio-border);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.timeline-node::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--perhio-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.05);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-node:hover {
  transform: translateX(4px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.03);
}
.timeline-node:hover::before {
  background: var(--perhio-purple);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.timeline-node.active::before {
  background: var(--perhio-cyan);
  border-color: var(--perhio-cyan);
  box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.12);
}

.timeline-content {
  display: flex;
  flex-direction: column;
}
.timeline-time {
  font-size: 11px;
  font-weight: 800;
  color: var(--perhio-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--perhio-text-light);
}
.timeline-desc {
  font-size: 12px;
  color: var(--perhio-text-gray);
  margin-top: 3px;
}

/* Mobile Focus Session Widget */
.phone-focus-widget {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(13, 148, 136, 0.02) 100%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.phone-focus-circle-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
}
.phone-focus-svg {
  transform: rotate(-90deg);
}
.phone-focus-circle-bg {
  fill: none;
  stroke: rgba(124, 58, 237, 0.05);
  stroke-width: 6;
}
.phone-focus-circle-progress {
  fill: none;
  stroke: url(#phone-gradient-accent);
  stroke-width: 6;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2; /* fully empty by default */
  transition: stroke-dashoffset 1s linear;
}
.phone-focus-time-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 800;
  color: var(--perhio-text-light);
}

.btn-phone-focus {
  background: var(--perhio-purple);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-phone-focus:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
}
.btn-phone-focus.active {
  background: var(--perhio-cyan);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Calming breathing background light for Focus session */
.phone-screen.focus-active {
  animation: focus-breath 8s ease-in-out infinite alternate;
}
@keyframes focus-breath {
  0% { background-color: var(--perhio-bg); }
  100% { background-color: #F5F2FF; }
}

/* Mockup Elements Styling */
.mockup-header {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  color: var(--perhio-purple);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Typing Prompt Simulator */
.mockup-prompt {
  font-size: 13.5px;
  color: var(--perhio-text-light);
  background: rgba(124, 58, 237, 0.03);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--perhio-border);
  min-height: 48px;
  position: relative;
  display: flex;
  align-items: center;
}
.typing-text {
  border-right: 2px solid var(--perhio-purple);
  white-space: nowrap;
  overflow: hidden;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--perhio-purple); }
}

.mockup-task-title {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 800;
  color: var(--perhio-text-light);
  margin-bottom: 8px;
}

.mockup-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mockup-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.mockup-pill.purple { background: rgba(124, 58, 237, 0.08); color: var(--perhio-purple); border: 1px solid rgba(124, 58, 237, 0.15); }
.mockup-pill.red { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.mockup-pill.cyan { background: rgba(13, 148, 136, 0.08); color: var(--perhio-cyan); border: 1px solid rgba(13, 148, 136, 0.15); }

.mockup-subtasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-subtask {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--perhio-text-gray);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.mockup-subtask:hover {
  color: var(--perhio-text-light);
}

.mockup-cb {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  border-radius: 5px;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}
.mockup-subtask:hover .mockup-cb {
  border-color: var(--perhio-purple);
  box-shadow: 0 0 5px rgba(124, 58, 237, 0.15);
}

.mockup-cb.checked {
  background: var(--perhio-purple);
  border-color: var(--perhio-purple);
}
.mockup-cb.checked::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

.mockup-subtask.checked span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Glowing Radial Progress Ring for Dashboard Widget */
.odak-skoru-radial {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}
.radial-svg {
  transform: rotate(-90deg);
}
.radial-bg {
  fill: none;
  stroke: rgba(124, 58, 237, 0.05);
  stroke-width: 10;
}
.radial-progress {
  fill: none;
  stroke: url(#purple-gradient);
  stroke-width: 10;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 37.68; /* Starts at 85% */
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  stroke-linecap: round;
}
.radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 900;
  color: var(--perhio-text-light);
}

/* Core AI Immersive Features Grid Section */
.perhio-features-section {
  padding: 120px 60px;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 900;
  color: var(--perhio-text-light);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-header p {
  font-size: 18px;
  color: var(--perhio-text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 120px;
}

/* Immersive Bleeding Feature Cards */
.feature-card {
  background: var(--perhio-glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--perhio-border);
  border-radius: 28px;
  padding: 48px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--luxury-shadow);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.05);
}

.feature-info h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  color: var(--perhio-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-info p {
  font-size: 15px;
  color: var(--perhio-text-gray);
  line-height: 1.7;
}

/* Feature Preview Visual panels (B2C Visual-First) */
.feature-visual {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--perhio-border);
  border-radius: 18px;
  padding: 24px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(124, 58, 237, 0.02);
}

.feature-visual-prompt-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-visual-prompt {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--perhio-purple);
  width: max-content;
  max-width: 90%;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.04);
}

.feature-visual-result {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--perhio-border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--perhio-text-light);
  width: max-content;
  max-width: 90%;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.04);
}

/* Smart Daily Planning Flow Section */
.perhio-planning-section {
  padding: 80px 60px 120px;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.planning-wrapper {
  background: var(--perhio-glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--perhio-border);
  border-radius: 36px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* Asymmetric */
  gap: 80px;
  align-items: center;
  box-shadow: var(--luxury-shadow);
}

.planning-mockup-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--perhio-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.01);
}

.planning-mode-card {
  background: #ffffff;
  border: 1px solid var(--perhio-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.02);
}

.planning-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mode-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-badge.deep-work {
  background: rgba(124, 58, 237, 0.12);
  color: var(--perhio-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05);
}

.mode-badge.catch-up {
  background: rgba(239, 68, 68, 0.12);
  color: #ff4d4d;
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
}

.mode-badge.quick-win {
  background: rgba(13, 148, 136, 0.12);
  color: var(--perhio-cyan);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.05);
}

.planning-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.planning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--perhio-border);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.02);
  transition: all 0.3s ease;
}
.planning-item:hover {
  transform: translateX(5px);
  border-color: rgba(124, 58, 237, 0.15);
}

.planning-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.planning-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--perhio-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planning-item-title {
  font-size: 14px;
  color: var(--perhio-text-light);
  font-weight: 600;
}

.planning-item-reason {
  font-size: 12px;
  color: var(--perhio-text-gray);
  margin-top: 3px;
}

/* Large Realistic Mobile Showcase Section */
.perhio-mobile-section {
  padding: 80px 60px 120px;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.mobile-showcase-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  position: relative;
}

/* Elegant High-Fidelity Smartphone Silhouette */
.phone-mockup {
  width: 310px; /* Wider and more realistic */
  height: 620px;
  border: 14px solid #d1d1db; /* Matte silver */
  border-radius: 46px;
  background: #ffffff;
  box-shadow: 0 40px 80px rgba(124, 58, 237, 0.08), inset 0 0 12px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  padding: 12px;
  z-index: 10;
}

/* Phone notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #d1d1db;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--perhio-bg);
  border-radius: 34px;
  overflow-y: auto;
  padding: 34px 18px 24px;
  text-align: left;
  position: relative;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

.phone-logo {
  height: 24px;
  margin-bottom: 24px;
  display: block;
}

.phone-section-title {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  color: var(--perhio-purple);
  margin-bottom: 14px;
}

.phone-task-card {
  background: #ffffff;
  border: 1px solid var(--perhio-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.02);
  transition: all 0.3s ease;
}

.phone-task-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--perhio-text-light);
  font-weight: 700;
}

.phone-task-desc {
  font-size: 11px;
  color: var(--perhio-text-gray);
  margin-top: 4px;
  margin-left: 26px;
}

/* Floating Push Notifications Overlays */
.floating-notification {
  position: absolute;
  width: 260px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.06);
  z-index: 20;
  text-align: left;
  display: flex;
  gap: 12px;
  animation: float-notif 6s ease-in-out infinite alternate;
}
.notif-left {
  top: 120px;
  left: calc(50% - 300px);
}
.notif-right {
  bottom: 140px;
  right: calc(50% - 300px);
  animation-delay: 1.5s;
}

@keyframes float-notif {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.notif-icon {
  font-size: 20px;
}
.notif-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--perhio-text-light);
  margin-bottom: 2px;
}
.notif-desc {
  font-size: 11px;
  color: var(--perhio-text-gray);
  line-height: 1.3;
}

/* Product-Oriented final CTA Banner */
.perhio-cta-section {
  padding: 80px 60px 120px;
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(13, 148, 136, 0.04) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 36px;
  padding: 100px 48px;
  text-align: center;
  box-shadow: var(--luxury-shadow);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-primary);
  font-size: 52px;
  font-weight: 900;
  color: var(--perhio-text-light);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1.15;
}

.cta-banner p {
  font-size: 18px;
  color: var(--perhio-text-gray);
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.cta-banner .btn-perhio-glow {
  position: relative;
  z-index: 2;
}

/* Editorial Footer styling */
.perhio-footer {
  margin-top: auto;
  border-top: 1px solid var(--perhio-border);
  padding: 60px 48px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-quote {
  font-size: 15px;
  color: var(--perhio-text-gray);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.25);
}

/* Responsive Public Landing Layouts */
@media (max-width: 1200px) {
  .hero-headline {
    font-size: 52px;
  }
  .hero-composition {
    height: 520px;
  }
  .mockup-card-1 {
    width: 360px;
  }
  .mockup-card-2 {
    width: 300px;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-headline {
    font-size: 48px;
  }
  .hero-subheadline {
    margin: 0 auto 40px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-composition {
    height: 520px;
    max-width: 580px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .planning-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .floating-notification {
    display: none; /* Hide floating alerts on smaller desktop viewports */
  }
}

@media (max-width: 768px) {
  .perhio-hero-section {
    padding: 180px 24px 80px;
  }
  .perhio-features-section,
  .perhio-planning-section,
  .perhio-mobile-section,
  .perhio-cta-section {
    padding: 80px 24px;
  }
  .section-header h2 {
    font-size: 34px;
  }
  .hero-headline {
    font-size: 40px;
  }
  .perhio-nav {
    padding: 0 24px;
    height: 60px;
  }
  .perhio-nav-left .logo-img {
    height: 30px;
  }
  .cta-banner {
    padding: 80px 24px;
  }
  .cta-banner h2 {
    font-size: 36px;
  }
}

/* Premium Shimmer Pulse for simulated AI Task Generation */
.shimmer-pulse {
  position: relative !important;
  overflow: hidden !important;
  animation: card-pulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.shimmer-pulse::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -150% !important;
  width: 150% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.12),
    rgba(13, 148, 136, 0.12),
    transparent
  ) !important;
  transform: skewX(-20deg) !important;
  animation: shine 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1;
  z-index: 10 !important;
  pointer-events: none !important;
}

@keyframes card-pulse {
  0% { transform: perspective(1400px) rotateY(-14deg) rotateX(10deg) scale(1) translateY(0); box-shadow: var(--luxury-shadow); }
  50% { transform: perspective(1400px) rotateY(-12deg) rotateX(8deg) scale(1.03) translateY(-8px); box-shadow: 0 40px 85px rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.45); }
  100% { transform: perspective(1400px) rotateY(-14deg) rotateX(10deg) scale(1) translateY(0); box-shadow: var(--luxury-shadow); }
}

@keyframes shine {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* =============================================================
   21. Verify Email Screen Aesthetics (Premium Notion/Linear Style)
   ============================================================= */
#verify-email-screen {
  background-color: var(--perhio-bg, #FAF9F5);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}

.verify-email-card {
  background: var(--perhio-glass-bg, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 32px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--luxury-shadow, 0 10px 40px rgba(124, 58, 237, 0.04));
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: card-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-appear {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.verify-email-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(124, 58, 237, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.02);
}

.verify-email-card h2 {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 800;
  color: var(--perhio-text-light, #0D0C15);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.verify-email-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--perhio-text-gray, #4E4D5D);
  margin-bottom: 32px;
}
.verify-email-desc strong {
  color: var(--perhio-text-light, #0D0C15);
}

.verify-email-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.verify-email-actions .btn {
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 13.5px;
}

#btn-verify-logout:hover {
  color: var(--primary-color) !important;
}

/* Subtle checking progress bar animations */
.verify-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.verify-progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--perhio-purple) 0%, var(--perhio-cyan) 100%);
  border-radius: 10px;
  animation: loading-bar 1.5s infinite linear;
}

@keyframes loading-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(330%); }
}


