:root {
  --bg: #2d2d2d;
  --surface: #383838;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --accent: #429cf5;
  --accent-2: #3584d6;
  --primary: #66adf4;
  --secondary: #5a9fe8;
  --danger: #ff4d4f;
  --border: #444444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
a:hover {
  color: var(--accent);
}
a:visited {
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.container {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.page-shell {
  padding: 18px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(50, 50, 50, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(102, 173, 244, 0.15);
  color: var(--primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-grid {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #2a2a2a;
  color: var(--ink);
}

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(102, 173, 244, 0.1);
  border-color: var(--primary);
}

.btn-small {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #e04345;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  background: #4a4a4a;
  color: var(--ink);
}

.priority-high {
  background: rgba(255, 77, 79, 0.25);
  color: #ff6b6b;
}

.priority-medium {
  background: rgba(243, 156, 18, 0.25);
  color: #f5b942;
}

.priority-low {
  background: rgba(102, 173, 244, 0.25);
  color: var(--primary);
}

.status-backlog,
.status-open,
.status-active,
.status-online,
.status-planned {
  background: rgba(102, 173, 244, 0.2);
  color: var(--primary);
}

.status-today,
.status-in_progress,
.status-maintenance,
.status-issue_detected,
.status-on_hold,
.status-overdue {
  background: rgba(243, 156, 18, 0.2);
  color: #f5b942;
}

.status-done,
.status-completed,
.status-paid {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.status-offline {
  background: rgba(255, 77, 79, 0.2);
  color: #ff6b6b;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
  font-weight: 600;
}

.flash-success {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.flash-error {
  background: rgba(255, 77, 79, 0.2);
  color: #ff6b6b;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 8px;
  color: var(--ink);
}

.kanban-scroll {
  overflow-x: auto;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
}

.kanban-column {
  min-height: 220px;
}

.task-card {
  background: #353535;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.task-card h3 {
  margin-bottom: 6px;
}

.status-actions {
  margin-top: 8px;
}

/* Compact Board Styles */

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

.board-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.board-stats {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.board-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.board-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 100px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-count {
  background: var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-section {
  padding: 10px;
  text-align: center;
}

.tasks-list {
  display: grid;
  gap: 8px;
}

.compact-task {
  background: #353535;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.compact-task:hover {
  background: #404040;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

.task-title:hover {
  text-decoration: underline;
  color: var(--primary);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.project-badge {
  background: rgba(102, 173, 244, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-dot.priority-high {
  background: #e74c3c;
}

.priority-dot.priority-medium {
  background: #f39c12;
}

.priority-dot.priority-low {
  background: #27ae60;
}

.due-date {
  color: var(--muted);
  white-space: nowrap;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.status-form {
  all: unset;
  padding: 0;
  margin: 0;
}

.btn-status {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-status:hover {
  background: #4a4a4a;
  border-color: var(--primary);
  transform: scale(1.05);
}

.btn-status-today {
  background: rgba(243, 156, 18, 0.15);
}

.btn-status-today:hover {
  background: rgba(243, 156, 18, 0.25);
}

.btn-status-in_progress {
  background: rgba(102, 173, 244, 0.15);
}

.btn-status-in_progress:hover {
  background: rgba(102, 173, 244, 0.25);
}

.btn-status-done {
  background: rgba(46, 204, 113, 0.15);
}

.btn-status-done:hover {
  background: rgba(46, 204, 113, 0.25);
}

.btn-status-backlog {
  background: #353535;
}

.btn-status-backlog:hover {
  background: #404040;
}

@media (max-width: 799px) {
  .board-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: 0.95rem;
  }

  .compact-task {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .task-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn-status {
    width: 32px;
    height: 32px;
  }
}


.group-block {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 460px);
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Motivational Banner */
.money-banner {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.money-banner-img {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: contain;
}

/* ======================================================
   NOTE-STYLE CLEAN LAYOUT
   ====================================================== */

/* Header row */
.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.note-header h1 {
  margin: 0;
  font-style: italic;
}

.note-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
}
.btn-link:hover {
  color: var(--primary);
}

/* Legend */
.note-legend {
  margin-bottom: 24px;
  line-height: 1.8;
}
.note-legend p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

/* Section (per project category) */
.note-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.note-section:first-of-type {
  border-top: none;
}
.note-section-dash {
  padding: 16px 0;
}

/* Section divider (between major categories) */
.note-section + .note-section {
  border-top: 1px solid var(--border);
}

/* Category header */
.note-category {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.note-category em {
  font-style: italic;
}
.note-category-overdue {
  color: #e74c3c;
}

.note-done-count {
  background: var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: .8rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  margin-left: 6px;
}

/* Task list */
.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual task item */
.note-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  line-height: 1.5;
}

.note-item + .note-item {
  border-top: none;
}

/* Task link */
.note-link {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.note-link:hover {
  color: var(--primary);
}

/* Priority dots */
.note-dots {
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 2px;
}

.note-item-high .note-dots {
  color: var(--ink);
}

.note-item-normal .note-dots {
  color: var(--muted);
}

.note-item-overdue .note-link {
  color: #e74c3c;
}

.note-item-done {
  opacity: 0.45;
}
.note-item-done .note-link {
  color: var(--muted);
}

/* Light divider between •• and • within a group */
.note-divider-light {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0 8px;
  width: 80px;
}

/* Action buttons (minimal, appear on hover on desktop) */
.note-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.note-action-btn {
  all: unset;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.note-action-btn:hover {
  background: rgba(255,255,255,0.08);
}

.note-status-bezig {
  font-size: .72rem;
  color: #f39c12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.note-meta-text {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.note-footer {
  padding: 20px 0 10px;
  text-align: center;
}

/* Done section subtle */
.note-section-done {
  opacity: 0.6;
}

/* Dashboard intro */
.dash-intro {
  margin-bottom: 8px;
}
.dash-intro h1 {
  margin-bottom: 2px;
}

/* Inline form (for status buttons) */
.inline-form {
  display: inline;
}

/* Stat card variants */
.stat-danger .stat-value { color: #e74c3c; }
.stat-high .stat-value { color: #f39c12; }
.stat-normal .stat-value { color: #429cf5; }

/* Overdue styling */
.due-overdue {
  color: #e74c3c !important;
  font-weight: 700;
}
.task-overdue {
  border-left: 3px solid #e74c3c;
}
.task-done {
  opacity: 0.5;
}

/* Priority dots (legacy compat) */
.priority-dots {
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 2px;
}
.priority-dots.priority-high { color: var(--ink); }
.priority-dots.priority-normal { color: var(--muted); }

/* Task detail page */
.task-detail-grid {
  margin: 16px 0;
  line-height: 2;
}
.task-detail-grid p {
  margin: 0;
}

.task-description {
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.task-description p {
  white-space: pre-line;
  line-height: 1.6;
}

.task-status-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Tasks List Mobile Styles */

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

.tasks-header h1 {
  margin: 0;
  font-size: 1.3rem;
}

.tasks-grid {
  display: grid;
  gap: 10px;
}

.task-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.15s ease;
}

.task-item:active {
  background: #404040;
}

.task-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.task-item-title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
  flex: 1;
}

.task-item-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.task-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.project-name {
  background: rgba(102, 173, 244, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.due-date-badge {
  color: var(--muted);
  white-space: nowrap;
}

.task-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 8px 10px !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .task-item {
    padding: 14px;
  }

  .task-item-header {
    align-items: center;
  }

  .task-item-title {
    font-size: 1rem;
  }
}

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

@media (min-width: 800px) {
  .page-shell {
    padding-top: 26px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================
   Calendar
   ====================== */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cal-header h1 { margin: 0; font-size: 1.4rem; }
.cal-month-label {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 160px;
  text-align: center;
}

/* ---- Google Calendar bar ---- */
.gcal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.gcal-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
}
.gcal-bar-left svg { flex-shrink: 0; }
.gcal-connected { color: #2e7d32; }
.gcal-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gcal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.gcal-btn:hover { background: #4a4a4a; }
.gcal-btn-signin {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.gcal-btn-signin:hover { background: var(--accent-2); }
.gcal-btn-sync { color: var(--ink); }
.gcal-btn-add {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.gcal-btn-add:hover { background: var(--accent-2); }
.gcal-btn-signout { color: var(--muted); font-size: .8rem; }
.gcal-btn-setup { color: var(--muted); font-size: .8rem; }

.gcal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  margin: 14px 0 8px;
  color: var(--primary);
}

/* Google event cards in detail */
.gcal-event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(102, 173, 244, 0.1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: .85rem;
}
.gcal-event-info { display: flex; flex-direction: column; gap: 2px; }
.gcal-event-info strong { font-size: .88rem; }
.gcal-event-time { color: var(--muted); font-size: .78rem; }
.gcal-event-loc { color: var(--muted); font-size: .78rem; }
.gcal-event-actions { display: flex; gap: 4px; flex-shrink: 0; }
.gcal-btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.gcal-btn-icon:hover { background: rgba(102, 173, 244, 0.2); }
.gcal-btn-icon-del:hover { background: rgba(255, 77, 79, 0.2); }

/* Google dot in calendar grid */
.cal-dot-google { background: var(--primary); }
.cal-has-google { border-left: 2px solid var(--primary); }

/* ---- Event Modal ---- */
.gcal-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gcal-modal {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  color: var(--ink);
}
.gcal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.gcal-modal-header h3 { margin: 0; font-size: 1.1rem; }
.gcal-form-group { margin-bottom: 12px; }
.gcal-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.gcal-form-group input,
.gcal-form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: #2a2a2a;
  color: var(--ink);
  box-sizing: border-box;
}
.gcal-form-group input:focus,
.gcal-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(102,173,244,.25);
}
.gcal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.gcal-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}
.gcal-modal-actions-right {
  display: flex;
  gap: 8px;
}
.gcal-btn-save {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.gcal-btn-save:hover { background: var(--accent-2); }
.gcal-btn-cancel { color: var(--muted); }
.gcal-btn-delete {
  background: #fff;
  color: #d32f2f;
  border-color: #d32f2f;
}
.gcal-btn-delete:hover { background: rgba(255, 77, 79, 0.15); }

/* ---- Google setup ---- */
.cal-google-setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.cal-google-setup h3 { margin: 0 0 10px; }
.cal-google-setup ol { margin: 10px 0; padding-left: 20px; }
.cal-google-setup li { margin-bottom: 6px; }
.cal-google-setup pre {
  background: #2a2a2a;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .85rem;
  overflow-x: auto;
  color: var(--primary);
}
.cal-google-setup code {
  background: #2a2a2a;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: .85rem;
  color: var(--primary);
}

/* ---- Calendar grid ---- */
.cal-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-row-header {
  background: var(--accent);
  color: #fff;
}
.cal-cell {
  min-height: 70px;
  padding: 4px 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background .15s;
}
.cal-cell:last-child { border-right: none; }
.cal-cell-header {
  min-height: auto;
  padding: 8px 6px;
  font-weight: 700;
  font-size: .8rem;
  text-align: center;
  cursor: default;
}
.cal-cell-empty {
  background: #2a2a2a;
  cursor: default;
}
.cal-cell-day:hover {
  background: #4a4a4a;
}
.cal-today {
  background: rgba(66, 156, 245, 0.15) !important;
}
.cal-today .cal-day-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-day-num {
  font-size: .8rem;
  font-weight: 600;
}
.cal-has-tasks {
  background: rgba(243, 156, 18, 0.1);
}
.cal-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.priority-dot-high { background: #e74c3c; }
.priority-dot-medium { background: #f39c12; }
.priority-dot-low { background: var(--primary); }
.cal-dot-more {
  font-size: .65rem;
  color: var(--muted);
}

/* Day detail panel */
.cal-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}
.cal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cal-detail-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.cal-task-card {
  background: #353535;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.cal-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-task-header a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.cal-task-header a:hover {
  text-decoration: underline;
}
.cal-task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-task-meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Task sync to Google */
.gcal-sync-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.gcal-sync-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 10px;
}
.gcal-btn-sync-task {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.gcal-btn-sync-task:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}
.gcal-btn-sync-task:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gcal-sync-status {
  margin-top: 8px;
  font-size: .85rem;
}
.gcal-sync-task {
  font-size: .85rem;
  padding: 2px 4px;
}

/* Scheduling bar */
.schedule-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(243, 156, 18, 0.08);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: 10px;
  margin-bottom: 12px;
}
.schedule-bar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.schedule-bar-label {
  font-weight: 700;
  font-size: .95rem;
}
.schedule-bar-info {
  font-size: .8rem;
}
.schedule-bar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Scheduled task dots in calendar */
.cal-dot-scheduled {
  background: #2ecc71 !important;
}
.cal-has-scheduled {
  border-bottom: 2px solid #2ecc71 !important;
}
.cal-task-scheduled {
  border-left: 3px solid #2ecc71;
}
.cal-sched-time {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

/* Local calendar events */
.cal-has-events {
  background: rgba(66, 156, 245, 0.08);
}
.cal-section-title {
  font-size: .85rem;
  color: var(--muted);
  margin: 12px 0 6px;
  font-weight: 600;
}
.cal-event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: background .15s;
}
.cal-event-card:hover {
  background: #4a4a4a;
}
.cal-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cal-event-header strong {
  font-size: .9rem;
}
.cal-event-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.cal-event-time,
.cal-event-loc,
.cal-event-desc {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px;
}
.cal-event-desc {
  white-space: pre-line;
}
.cal-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-sm {
  font-size: .8rem;
  padding: 4px 10px;
}
.cal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-top: 24px;
  font-size: .9rem;
}
.cal-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.cal-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cal-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.cal-color-swatch:hover {
  transform: scale(1.15);
}
.cal-color-swatch.active {
  border-color: #fff;
  transform: scale(1.15);
}

/* ======================================================
   RESPONSIVE DESIGN — Mobile / Tablet / Desktop / Large
   ====================================================== */

/* --- Large screens (≥1200px) --- */
@media (min-width: 1200px) {
  .container {
    width: min(100%, 1200px);
    padding: 0 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .tasks-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .board-compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    padding: 20px;
  }

  .stat-value {
    font-size: 2.2rem;
  }

  .cal-cell {
    min-height: 90px;
    padding: 6px 8px;
  }

  .cal-day-num {
    font-size: .9rem;
  }

  .cal-detail {
    padding: 20px;
  }

  .kanban-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar-inner {
    padding: 12px 0;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 8px 14px;
    font-size: .95rem;
  }

  .page-shell {
    padding-top: 30px;
  }

  .task-item {
    padding: 16px;
  }

  .money-banner-img {
    max-height: 240px;
  }

  .suggestion-card .task-suggestion-list {
    columns: 2;
    column-gap: 24px;
  }
  .suggestion-card .task-suggestion-item {
    break-inside: avoid;
  }
}

/* --- Extra large screens (≥1600px) --- */
@media (min-width: 1600px) {
  .container {
    width: min(100%, 1440px);
  }
}

/* --- Tablet (481px – 799px) --- */
@media (min-width: 481px) and (max-width: 799px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-compact {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kanban-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: .85rem;
  }

  .row-between {
    flex-wrap: wrap;
  }

  .cal-cell {
    min-height: 60px;
  }

  .gcal-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .page-shell {
    padding: 10px 0 30px;
  }

  /* Nav: scrollable horizontal */
  .topbar-inner {
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 6px;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: .8rem;
    flex-shrink: 0;
  }

  .btn-ghost {
    padding: 6px 10px;
    font-size: .82rem;
  }

  /* Typography */
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: .9rem; }

  /* Cards */
  .card {
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
  }

  /* Stats grid: 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card h2 {
    font-size: .75rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  /* Banner */
  .money-banner {
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .money-banner-img {
    max-height: 180px;
  }

  /* Suggestion cards */
  .suggestion-card h2 {
    font-size: .95rem;
  }

  .task-suggestion-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
  }

  .task-suggestion-main {
    min-width: 0;
    width: 100%;
  }

  .task-suggestion-meta {
    width: 100%;
    justify-content: flex-start;
  }

  /* Tasks grid: single column */
  .tasks-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .task-item {
    padding: 10px;
  }

  .task-item-header {
    flex-direction: column;
    gap: 4px;
  }

  .task-item-actions {
    width: 100%;
  }

  .task-item-actions .btn-small {
    flex: 1;
    text-align: center;
  }

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

  .tasks-header h1 {
    font-size: 1.15rem;
  }

  /* Board */
  .board-compact {
    gap: 12px;
  }

  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .compact-task {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .task-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn-status {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  /* Kanban fallback */
  .kanban-grid {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-grid {
    gap: 6px;
  }

  input, select, textarea {
    padding: 10px;
    font-size: .9rem;
    border-radius: 8px;
  }

  .btn {
    padding: 10px 14px;
    font-size: .88rem;
    border-radius: 8px;
    width: 100%;
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
  }

  .inline-actions {
    flex-direction: column;
    width: 100%;
  }

  .inline-actions .btn,
  .inline-actions form {
    width: 100%;
  }

  .inline-actions form .btn {
    width: 100%;
  }

  .status-actions {
    gap: 6px;
  }

  .status-actions .btn-status {
    flex: 1;
    width: auto;
    height: auto;
    padding: 8px;
    font-size: .85rem;
  }

  /* Row layout */
  .row-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Tables */
  table {
    min-width: 500px;
  }

  th, td {
    padding: 6px;
    font-size: .82rem;
  }

  /* Calendar */
  .cal-cell {
    min-height: 46px;
    padding: 2px 3px;
  }

  .cal-day-num {
    font-size: .7rem;
  }

  .cal-dot {
    width: 5px;
    height: 5px;
  }

  .cal-dots {
    gap: 2px;
    margin-top: 2px;
  }

  .cal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cal-header h1 {
    font-size: 1.1rem;
  }

  .cal-month-label {
    min-width: auto;
    font-size: .95rem;
  }

  .cal-cell-header {
    font-size: .65rem;
    padding: 5px 2px;
  }

  .gcal-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    gap: 8px;
  }

  .gcal-bar-right {
    width: 100%;
    flex-direction: column;
  }

  .gcal-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }

  .gcal-form-row {
    grid-template-columns: 1fr;
  }

  .gcal-modal {
    padding: 16px;
    border-radius: 10px;
  }

  .gcal-modal-overlay {
    padding: 10px;
  }

  .gcal-modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .gcal-modal-actions-right {
    width: 100%;
  }

  .gcal-modal-actions-right .gcal-btn {
    flex: 1;
  }

  .cal-detail {
    padding: 12px;
    border-radius: 10px;
  }

  .cal-event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cal-event-actions {
    align-self: flex-end;
  }

  .cal-google-setup {
    padding: 14px;
  }

  /* Project show */
  .group-block {
    padding: 6px 0;
  }

  .simple-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }

  /* Auth */
  .auth-card {
    width: 100%;
    margin: 0 10px;
  }

  /* Badge sizes */
  .badge {
    font-size: .72rem;
    padding: 2px 7px;
  }

  /* Flash */
  .flash {
    font-size: .88rem;
    padding: 8px 10px;
  }

  /* Note-style mobile */
  .note-header {
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .note-item {
    padding: 10px 0;
  }

  .note-link {
    font-size: .9rem;
  }

  .note-category {
    font-size: .95rem;
  }

  .note-meta-text {
    display: none;
  }

  .note-action-btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .note-section {
    padding: 16px 0;
  }

  /* Schedule bar mobile */
  .schedule-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .schedule-bar-right {
    width: 100%;
  }
  .schedule-bar-right .btn {
    flex: 1;
  }
}

/* --- Touch-friendly improvements for all mobile/tablet --- */
@media (max-width: 799px) {
  /* Minimum tap target size */
  .btn, .btn-small, .nav-links a, .gcal-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Smooth scrolling for nav */
  .nav-links {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  /* Table horizontal scroll indicator */
  .table-wrap {
    position: relative;
  }
  .table-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
  }
}

/* --- Small mobile (≤360px, e.g. SE / older phones) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .stat-card h2 {
    font-size: .68rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .nav-links a {
    padding: 5px 6px;
    font-size: .75rem;
  }

  .brand-logo {
    height: 28px;
    width: 28px;
  }

  .money-banner-img {
    max-height: 140px;
  }

  .cal-cell {
    min-height: 38px;
    padding: 1px 2px;
  }

  .cal-day-num {
    font-size: .6rem;
  }

  .cal-dot {
    width: 4px;
    height: 4px;
  }
}

/* --- Print styles --- */
@media print {
  .topbar, .nav-links, .btn, .inline-actions,
  .status-actions, .task-actions, form { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .container { width: 100%; max-width: none; }
}

/* ============================================================
   JARVIS AI CHAT
   ============================================================ */
.jarvis-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  max-width: 860px;
  padding-bottom: 0;
}

.jarvis-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.jarvis-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47ff, #429cf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.jarvis-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.jarvis-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.jarvis-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.jarvis-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.jarvis-chat {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jarvis-msg {
  display: flex;
}

.jarvis-msg-user {
  justify-content: flex-end;
}

.jarvis-msg-bot {
  justify-content: flex-start;
}

.jarvis-bubble {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.jarvis-msg-user .jarvis-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.jarvis-msg-bot .jarvis-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.jarvis-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}

.jarvis-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: jarvisBounce 1.2s infinite;
}

.jarvis-typing span:nth-child(2) { animation-delay: 0.2s; }
.jarvis-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jarvisBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.jarvis-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  flex-shrink: 0;
}

.jarvis-input {
  flex: 1;
  resize: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
  max-height: 160px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s;
}

.jarvis-input:focus {
  border-color: var(--primary);
}

.jarvis-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.jarvis-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   PRICING CALCULATOR
   ============================================================ */
.pricing-shell {
  display: grid;
  gap: 20px;
}

.pricing-header h1 {
  margin-bottom: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.pricing-panel h2 {
  margin: 2px 0 8px;
  font-size: 1rem;
}

.pricing-panel label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-panel input,
.pricing-panel select {
  width: 100%;
  border: 1px solid var(--border);
  background: #2f2f2f;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  appearance: none;
}

.pricing-panel input::placeholder {
  color: var(--muted);
}

.pricing-panel select option,
.pricing-panel select optgroup {
  background: #2f2f2f;
  color: var(--ink);
}

.pricing-panel input:focus,
.pricing-panel select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 173, 244, 0.16);
}

.pricing-preset-card {
  margin: 4px 0 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(102, 173, 244, 0.28);
  background: linear-gradient(180deg, rgba(66, 156, 245, 0.12), rgba(66, 156, 245, 0.03));
}

.pricing-preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(102, 173, 244, 0.16);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-preset-price {
  margin: 0;
  font-weight: 700;
  color: #cce4ff;
}

.pricing-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pricing-results {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.pricing-results h2 {
  margin-bottom: 12px;
}

.pricing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pricing-kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.pricing-kpi h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-kpi p {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.pricing-breakdown {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.pricing-breakdown h3 {
  margin-bottom: 8px;
}

.pricing-breakdown ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.tiny {
  font-size: 0.8rem;
}

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

  .pricing-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-kpi-grid {
    grid-template-columns: 1fr;
  }
}
