* {margin:0;padding:0;box-sizing:border-box;}
body {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:linear-gradient(180deg, #0e7490 0%, #0891b2 20%, #06b6d4 40%, #22d3ee 60%, #67e8f9 80%, #a5f3fc 100%);
  background-attachment:fixed;
  color:#1f2937;
  line-height:1.5;
  touch-action:manipulation;
  -webkit-text-size-adjust:100%;
  min-height:100vh;
}
/* Fix gradient on mobile - iOS doesn't support background-attachment:fixed */
@media (max-width: 768px) {
  body {
    background: #0e7490; /* Fallback solid color */
  }
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(180deg, #0e7490 0%, #0891b2 20%, #06b6d4 40%, #22d3ee 60%, #67e8f9 80%, #a5f3fc 100%);
  }
}
.header {background:none;padding:16px 18px;position:relative;z-index:600;}
/* Master logo class - used everywhere */
.pd-logo {font-weight:400;letter-spacing:4px;color:#fff;white-space:nowrap;}
.pd-logo .green {color:#4ade80;}
.pd-logo .degree {display:inline-block;position:relative;top:-0.55em;margin-left:0.02em;width:0.22em;height:0.22em;}
@keyframes sheen {0%,100%{stroke-opacity:0.7;}50%{stroke-opacity:1;}}
.pd-logo .degree circle {animation:sheen 2.9s ease-in-out infinite;}
.profile-menu {position:absolute;top:8px;right:28px;}
.hamburger-btn {background:none;border:none;cursor:pointer;padding:8px;-webkit-tap-highlight-color:transparent;transition:transform 0.15s ease;}
.hamburger-btn:active {transform:scale(0.92);}
.hamburger-icon {width:22px;height:18px;}
.hamburger-icon svg {width:100%;height:100%;}
/* Hide old dropdown - replaced by slide panel */
.profile-dropdown {display:none !important;}
/* Slide-out Profile Panel */
.profile-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2999;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.profile-panel-overlay.show {
  display: block;
  opacity: 1;
}
.profile-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  /* Match header - dark teal gradient */
  background: linear-gradient(180deg, #0a5a72 0%, #0e7490 30%, #0e7490 70%, #0a5a72 100%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.profile-panel.show {
  right: 0;
}
.profile-panel-header {
  padding: 20px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-panel-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.profile-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.profile-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.profile-panel-email {
  padding: 12px 20px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.profile-panel-email strong {
  display: block;
  color: #22d3ee;
  font-size: 14px;
  margin-top: 4px;
  word-break: break-all;
}
.profile-panel-content {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.profile-panel-content::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}
.profile-panel-status {
  margin: 8px 16px 16px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.2) 0%, rgba(6,182,212,0.15) 100%);
  border: 1px solid rgba(34,211,238,0.5);
}
/* Beta: Cyan (brand) */
.profile-panel-status.beta {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #22d3ee;
}
.profile-panel-status.beta .profile-status-badge svg { fill: #22d3ee; }
.profile-panel-status.beta .profile-status-badge span { color: #22d3ee; }

/* Trial: Amber (urgency) */
.profile-panel-status.trial {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #fbbf24;
}
.profile-panel-status.trial .profile-status-badge svg { stroke: #fbbf24; fill: none; }
.profile-panel-status.trial .profile-status-badge span { color: #fbbf24; }
.profile-panel-status.trial .profile-status-progress-fill { background: #fbbf24; }
.profile-panel-status.trial .profile-status-btn { background: #fbbf24; color: #0f172a; }
.profile-panel-status.trial .profile-status-btn:hover { background: #fcd34d; }

/* Active: Light Green (success) */
.profile-panel-status.active {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #4ade80;
}
.profile-panel-status.active .profile-status-badge svg { fill: #4ade80; stroke: none; }
.profile-panel-status.active .profile-status-badge span { color: #4ade80; }
.profile-panel-status.active .profile-status-btn { 
  background: #065f46; 
  color: #4ade80; 
  border: 1px solid #4ade80; 
}
.profile-panel-status.active .profile-status-btn:hover { background: #047857; }

/* Expired: Red (danger) */
.profile-panel-status.expired {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #f87171;
}
.profile-panel-status.expired .profile-status-badge svg { stroke: #ef4444; fill: none; }
.profile-panel-status.expired .profile-status-badge span { color: #ef4444; }
.profile-panel-status.expired .profile-status-btn { background: #ef4444; color: white; }
.profile-panel-status.expired .profile-status-btn:hover { background: #f87171; }

.profile-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.profile-status-badge svg {
  width: 18px;
  height: 18px;
  fill: #22d3ee;
}
.profile-status-badge span {
  color: #22d3ee;
  font-size: 15px;
  font-weight: 700;
}
.profile-status-detail {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
}
.profile-status-progress {
  margin-top: 10px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.profile-status-progress-fill {
  height: 100%;
  background: #22d3ee;
  border-radius: 2px;
  transition: width 0.3s;
}
.profile-status-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: #22d3ee;
  border: none;
  border-radius: 8px;
  color: #0f4c5c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-status-btn:hover {
  background: #67e8f9;
  transform: translateY(-2px);
}
.profile-status-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.profile-panel-btn {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  padding: 14px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.profile-panel-btn:hover {
  background: rgba(255,255,255,0.08);
}
.profile-panel-btn svg {
  width: 22px;
  height: 22px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
}
.profile-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 8px 16px;
}
.profile-panel-footer {
  padding: 12px 0;
}
.profile-panel-btn.danger {
  color: #ffffff;
}
.profile-panel-btn.danger svg {
  stroke: #22d3ee;
}
.profile-panel-btn.danger:hover {
  background: rgba(34,211,238,0.1);
}
.profile-email {padding:16px 18px;font-size:14px;color:#ffffff;font-weight:400;background:linear-gradient(135deg,#0f4c5c 0%,#1a6b7c 100%);border-radius:16px 16px 0 0;}
.profile-email strong {font-weight:500;color:#ffffff;}
.profile-name-row {display:flex;align-items:center;gap:6px;margin-bottom:4px;}
.profile-name-row span {color:#4ade80;font-weight:500;}
.edit-name-btn {background:none;border:none;padding:2px;cursor:pointer;opacity:0.6;transition:opacity 0.15s;display:inline-flex;align-items:center;}
.edit-name-btn:hover {opacity:1;}
.edit-name-btn svg {width:14px;height:14px;stroke:#4ade80;fill:none;stroke-width:2;}
.profile-dropdown button {width:100%;background:transparent;border:none;color:#1e293b;padding:14px 18px;text-align:left;cursor:pointer;font-size:14px;transition:background 0.15s;font-weight:500;display:flex;align-items:center;}
.profile-dropdown button:hover {background:rgba(7,64,104,0.06);}
.profile-dropdown button.danger {color:#ef4444;font-weight:500;}
.profile-dropdown button.danger:hover {background:rgba(239,68,68,0.08);}
#adminPanelBtn {display:none;} /* Hidden by default, shown for admin */
.subscription-box {margin:8px 12px;padding:16px;border-radius:12px;text-align:left;border:2px solid #cbd5e1;background:#f8fafc;position:relative;overflow:hidden;}
.subscription-box::before {content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#94a3b8,#cbd5e1);}
.subscription-box.trial {background:linear-gradient(135deg,#e8f4f8 0%,#d4edee 100%);border-color:#17a2b8;}
.subscription-box.trial::before {background:linear-gradient(90deg,#17a2b8,#20c997);}
.subscription-box.warning {background:linear-gradient(135deg,#fff8e6 0%,#ffecb3 100%);border-color:#f5a623;}
.subscription-box.warning::before {background:linear-gradient(90deg,#f5a623,#ff8c00);}
.subscription-box.expired {background:linear-gradient(135deg,#fef2f2 0%,#fecaca 100%);border-color:#dc3545;}
.subscription-box.expired::before {background:linear-gradient(90deg,#dc3545,#b02a37);}
.subscription-box.active {background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 100%);border-color:#10b981;}
.subscription-box.active::before {background:linear-gradient(90deg,#10b981,#059669);}
.subscription-status {font-size:15px;font-weight:700;margin-bottom:4px;display:flex;align-items:center;gap:8px;margin-top:4px;}
.subscription-status svg {width:18px;height:18px;flex-shrink:0;}
.subscription-status.trial {color:#0d6570;}
.subscription-status.warning {color:#b86e00;}
.subscription-status.expired {color:#9b2c2c;}
.subscription-status.active {color:#065f46;}
.subscription-days {font-size:13px;color:#1e293b;margin-bottom:8px;font-weight:500;}
.subscription-subtext {font-size:13px;color:#065f46;font-weight:500;margin-bottom:10px;}
.subscription-progress {background:#b8d4d8;border-radius:4px;height:6px;margin-bottom:14px;overflow:hidden;}
.subscription-progress-fill {height:100%;border-radius:4px;transition:width 0.3s ease;}
.subscription-box.trial .subscription-progress {background:#b8d4d8;}
.subscription-box.trial .subscription-progress-fill {background:linear-gradient(90deg,#17a2b8,#20c997);}
.subscription-box.warning .subscription-progress {background:#e6d5a8;}
.subscription-box.warning .subscription-progress-fill {background:linear-gradient(90deg,#f5a623,#ff8c00);}
.subscription-btn {width:100%;background:linear-gradient(135deg,#17a2b8 0%,#138496 100%);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.2s;text-align:center;box-shadow:0 2px 8px rgba(23,162,184,0.3);}
.subscription-btn:hover {transform:translateY(-1px);box-shadow:0 4px 12px rgba(23,162,184,0.4);}
.subscription-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.subscription-btn.warning {background:linear-gradient(135deg,#f5a623 0%,#e67e00 100%);box-shadow:0 2px 8px rgba(245,166,35,0.4);}
.subscription-btn.warning:hover {box-shadow:0 4px 12px rgba(245,166,35,0.5);}
.subscription-btn.expired {background:linear-gradient(135deg,#dc3545 0%,#b02a37 100%);box-shadow:0 2px 8px rgba(220,53,69,0.35);}
.subscription-btn.expired:hover {box-shadow:0 4px 12px rgba(220,53,69,0.45);}
.subscription-btn.manage {background:linear-gradient(135deg,#10b981 0%,#059669 100%);box-shadow:0 2px 8px rgba(16,185,129,0.3);}
.subscription-btn.manage:hover {box-shadow:0 4px 12px rgba(16,185,129,0.4);}

/* Stats grid - unified auto-fit responsive */
/* ============ DASHBOARD TOGGLE ============ */
.dashboard-section {
  margin-bottom: 8px;
}
.dashboard-section.collapsed {
  margin-bottom: 0;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.dashboard-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.dashboard-chevron {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  transition: transform 0.3s ease;
}
.dashboard-header.collapsed .dashboard-chevron {
  transform: rotate(-90deg);
}
.dashboard-content {
  max-height: 1000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.dashboard-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ========== SYSTEM STATUS SECTION ========== */
.status-overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.status-dot.amber {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.status-label.green {
  color: #4ade80;
}

.status-label.amber {
  color: #fbbf24;
}

.status-chevron {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  transition: transform 0.3s ease;
}

.status-header.collapsed .status-chevron {
  transform: rotate(-90deg);
}

/* Off-Cycle Pay / YTD Adjust Pill Button */
.offcycle-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.offcycle-pill-btn:hover {
  background: #22d3ee;
  color: #074068;
  border-color: #074068;
}

.offcycle-pill-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.status-content {
  max-height: 1000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  padding: 8px 16px;
  margin: 0;
}

.status-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Primary Update Card (Yellow - elevated) */
.update-card-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #22d3ee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
}

.update-card-primary .card-title {
  font-size: 15px;
  font-weight: 700;
  color: #074068;
  margin-bottom: 10px;
}

.update-card-primary .card-body {
  font-size: 13px;
  color: #074068;
  line-height: 1.5;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  display: block;
}

.update-card-primary .card-secondary {
  font-size: 13px;
  color: #074068;
  margin-bottom: 14px;
  font-style: italic;
  opacity: 0.8;
}

.update-card-primary .card-btn {
  background: #22d3ee;
  color: #074068;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.update-card-primary .card-btn:hover {
  background: #06b6d4;
}

/* Secondary Update Card (Gray - flat) */
.update-card-secondary {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.update-card-secondary .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.update-card-secondary .card-body {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.update-card-secondary .card-btn {
  background: #64748b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.update-card-secondary .card-btn:hover {
  background: #475569;
}

/* Toggle Switch (iOS-style) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #0d9488;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.stats {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:16px;
  width:100%;
  font-size:14px;
  margin-bottom:0;
}

.stat {
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  padding:12px 16px;
  border-radius:16px;
  border:1px solid #22d3ee;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  transition:transform 0.2s,box-shadow 0.2s;
  grid-column:auto;
  min-width:0;
  width:auto;
  box-sizing:border-box;
}
.stat.maxed {
  background: linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);
  border-color: #22c55e;
}
.stat:hover {transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,0.1);}
.footer-link {color:#074068;text-decoration:none;margin:0 12px;font-weight:500;transition:transform 0.15s ease;display:inline-block;}
.footer-link:hover {transform:translateY(-2px);}
.stat {color:#074068;}
.stat strong {color:#074068;font-size:16px;font-weight:700;}
.ytd-note {font-size:12px;color:#a0aec0;margin-left:4px;font-weight:normal;}
.info-icon {cursor:pointer;margin-left:4px;color:#074068;opacity:0.8;display:inline-flex;align-items:center;padding:4px;vertical-align:middle;}
.info-icon:hover {opacity:1;}

/* Larger tap targets for info icons on mobile */
.stat-info-icon,
.pretax-info-icon,
.aftertax-info-icon,
.rotation-info-icon,
.vacation-info-icon,
.floating-info-icon,
.sick-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: -8px;
  margin-left: -2px;
}

.container {max-width:1400px;margin:0 auto;padding:0 20px 20px 20px;}
@media (max-width:480px) {.container {padding:12px;}}
.tab-content {display:none;opacity:0;}
.tab-content.active {display:block;animation:fadeIn 0.4s ease-out forwards;}
.tab-content.fade-out {display:block;animation:fadeOut 0.25s ease-out forwards;}
@keyframes fadeIn {from {opacity:0;} to {opacity:1;}}
@keyframes fadeOut {from {opacity:1;} to {opacity:0;}}
#paychecks-tab, #calendar-tab {margin-top:12px;}
#calendar-tab {padding-bottom:80px;}
.toggle-arrow {display:inline-block;transition:transform 0.3s ease;margin-left:4px;}
.toggle-arrow.expanded {transform:rotate(90deg);}

/* ============ MIDDLE NAV BAR ============ */
.middle-nav {display:none;} /* HIDDEN - replaced by bottom nav + radial menu */
/* OLD: .middle-nav {display:flex;align-items:stretch;gap:10px;padding:12px 20px;position:relative;} */
.nav-pills {flex:1;display:flex;background:rgba(255,255,255,0.95);border-radius:12px;padding:4px;box-shadow:0 4px 20px rgba(0,0,0,0.06);border:1px solid rgba(7,64,104,0.08);}
.nav-item {flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:none;background:transparent;border-radius:8px;cursor:pointer;transition:all 0.2s;color:#64748b;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:0.3px;}
.nav-item.active {background:#334155;color:#ffffff;}
.nav-item.active svg {stroke:#22d3ee;}
.nav-item svg {width:18px;height:18px;}
.nav-item span {font-size:14px;font-weight:600;letter-spacing:0.3px;}
.nav-item:not(.active):hover {background:rgba(7,64,104,0.08);color:#074068;}
.options-btn {width:44px;align-self:stretch;border-radius:10px;background:rgba(255,255,255,0.95);border:1px solid rgba(7,64,104,0.08);box-shadow:0 4px 20px rgba(0,0,0,0.06);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;color:#074068;}
.options-btn:hover {background:#334155;color:#ffffff;}
.options-btn svg {width:20px;height:20px;}
.options-btn.ai-btn {background:rgba(255,255,255,0.95);color:#0891b2;}
.options-btn.ai-btn:hover {background:#334155;color:#22d3ee;}

/* Options Panel */
.options-panel {display:none;position:absolute;top:80px;right:20px;width:280px;background:linear-gradient(180deg, #e8f4f8 0%, #f8fdfe 50%, #ffffff 100%);border-radius:16px;box-shadow:0 12px 48px rgba(7,64,104,0.18);border:1px solid rgba(7,64,104,0.12);overflow:hidden;z-index:100;}
.options-panel::before {content:'';display:block;height:8px;background:linear-gradient(135deg,#0f4c5c 0%,#1a6b7c 100%);border-radius:16px 16px 0 0;}
.options-panel.show {display:block;animation:optionsSlideIn 0.25s ease-out;}
@keyframes optionsSlideIn {from{opacity:0;transform:translateX(20px);}to{opacity:1;transform:translateX(0);}}
.options-section {padding:8px 0;}
.options-section:not(:last-child) {border-bottom:1px solid #cbd5e1;}
.options-header {display:inline-block;margin:12px 18px 8px;padding:6px 14px;font-size:11px;font-weight:700;color:#ffffff;background:#334155;border-radius:6px;letter-spacing:0.5px;}
.options-item {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:15px;font-weight:600;color:#1e293b;cursor:pointer;transition:background 0.15s;}
.options-item:hover {background:rgba(7,64,104,0.06);}
.options-item .value {font-weight:600;font-size:12px;color:#64748b;background:#e2e8f0;padding:4px 10px;border-radius:4px;}
.options-item .value.active {color:#0891b2;background:#e8f7fa;}
.options-item .arrow {color:#64748b;font-size:16px;font-weight:600;}

.section {padding:0;margin-top:16px !important;margin-bottom:16px !important;background:transparent;}
.paycheck-section {padding:0;margin-bottom:20px;background:transparent;}
@media (max-width:480px) {.section {padding:4px;}}
h2 {color:#074068;margin-bottom:16px;font-size:22px;font-weight:700;margin-top:32px;}
.grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px;}
#floatedHolidaysDetails {grid-column:1 / -1;}
.field {display:flex;flex-direction:column;gap:6px;}
.field label {font-size:12px;color:#334155;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;}
.field input,.field select {background:#F0FAFD;border:1px solid #9dd4ea;color:#1f2937;padding:8px 10px;border-radius:6px;font-size:15px;font-weight:600;transition:border 0.2s;}
.field input::placeholder {color:#1f2937;opacity:1;font-weight:600;}
.field input:focus,.field select:focus {outline:none;border-color:#4fc3f7;box-shadow:0 0 0 3px rgba(79,195,247,0.2);}
.btn {background:linear-gradient(135deg,#4fc3f7 0%,#29b6f6 100%);color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:transform 0.2s,box-shadow 0.2s;box-shadow:0 4px 12px rgba(79,195,247,0.3);}
.btn-dark-blue {background:#074068;color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 6px rgba(7,64,104,0.3);}
.btn-dark-blue:hover {background:#065C94;transform:translateY(-2px);box-shadow:0 4px 12px rgba(7,64,104,0.4);}
.btn-dark-blue:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.btn:hover {transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.15);}
.btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.btn-secondary {background:#2a4a6f;box-shadow:none;}
.btn-secondary:hover {background:#34597f;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,0.15);}
.btn-secondary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
table {width:100%;border-collapse:collapse;margin-top:20px;}
th {background:#ffffff;color:#074068;padding:12px 8px;text-align:left;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;border-bottom:2px solid #cbd5e1;}
td {padding:10px 8px;border-bottom:1px solid #e2e8f0;font-size:14px;}
td input {width:80px;background:#F0FAFD;border:1px solid #9dd4ea;color:#1f2937;padding:6px;border-radius:4px;text-align:center;font-weight:600;}
td input::placeholder {color:#1f2937;opacity:1;font-weight:600;}
td input:focus {outline:none;border-color:#4fc3f7;}
.holiday-cell {text-align:center;font-size:20px;cursor:pointer;transition:transform 0.2s;}
.holiday-cell:hover {transform:scale(1.1);box-shadow:0 2px 6px rgba(0,0,0,0.15);}
.gear-icon {cursor:pointer;font-size:16px;opacity:1;transition:all 0.2s;display:inline-block;color:#074068;}
.header-gear {cursor:pointer;font-size:20px;color:#FFB703;opacity:1;margin-left:8px;transition:all 0.2s;}
.header-gear:hover {opacity:1;transform:scale(1.15);color:#FFC933;}

.gear-icon:hover {transform:scale(1.15);color:#4FC3F7;}
.text-right {text-align:right;}
.tax-rate-cell {text-align:center;font-size:13px;font-weight:600;}
.tax-warning {color:#fbbf24;}
.tax-danger {color:#ef4444;}
.loading {text-align:center;padding:40px;font-size:18px;color:#4fc3f7;}
.spinner {width:50px;height:50px;margin:0 auto 20px;border:4px solid rgba(79,195,247,0.2);border-top:4px solid #4fc3f7;border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
#loadingText {font-size:16px;color:#e8eaed;font-weight:600;}
/* Auth Splash Screen */
#authSplash {position:fixed;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#074068 0%,#065C94 25%,#0891b2 50%,#06b6d4 75%,#22d3ee 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;}
#authSplash .splash-logo {font-size:28px;margin-bottom:16px;}
#authSplash .splash-spinner {width:40px;height:40px;border:3px solid rgba(255,255,255,0.2);border-top:3px solid #ffffff;border-radius:50%;animation:spin 1s linear infinite;}
#authSplash.fade-out {opacity:0;transition:opacity 0.3s ease;pointer-events:none;}
details {background:#f1f5f9;padding:8px !important;border-radius:6px;margin-bottom:8px !important;border:1px solid #cbd5e1;box-shadow:0 1px 3px rgba(0,0,0,0.06);}
summary {cursor:pointer;font-weight:700;color:#074068;padding:4px;user-select:none;transition:all 0.2s;}

/* Restore rounded corners */
details:not(#ytdDetails):not(#floatedHolidaysDetails),
details:not(#ytdDetails):not(#floatedHolidaysDetails) > summary,
.subsection,
.step-card,
.setup-block,
.marker-block,
.setup-section,
.marker-section {
  border-radius: 12px !important;
}

/* ============================================================================
   STEP CARD STYLES - Professional Two-Step Setup Flow
   ============================================================================ */
/* ===== Setup Card ===== */
.setup-card {
  margin-bottom: 12px !important;
  border-radius: 12px 12px 0 0 !important;
  overflow: visible;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: transparent;
  position: relative;
  max-width: fit-content;
}

/* Setup Panel - headerless version */
.setup-panel {
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #d4f6fa;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.setup-panel.collapsed {
  display: none;
}

.setup-panel .setup-content {
  display: block;
  padding: 20px 24px 24px 24px;
}

/* Close button for panels */
.panel-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
}
.panel-close-btn:hover {
  background: #334155;
  color: #22d3ee;
}
.panel-close-btn:active {
  transform: scale(0.95);
}
.panel-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Override for panel-close-btn inside setup-top-row (not absolute) */
.setup-top-row .panel-close-btn {
  position: static;
}

/* Save Changes Button - Top (appears left of X when changes detected) */
.save-btn-top {
  height: 32px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.save-btn-top:hover {
  background: #b91c1c;
}
.save-btn-top:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.save-btn-top.show {
  display: flex;
  align-items: center;
}

/* After build: dimmed state, activates on changes */
.setup-panel.build-complete .save-btn-top,
.setup-panel.build-complete .save-btn-bottom {
  display: flex;
  align-items: center;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.setup-panel.build-complete .save-btn-top.active,
.setup-panel.build-complete .save-btn-bottom.active {
  opacity: 1;
  pointer-events: auto;
  animation: subtle-pulse 2s ease-in-out infinite;
}
.setup-panel.build-complete .pending-text-top,
.setup-panel.build-complete .pending-changes-text {
  display: flex;
  align-items: center;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.setup-panel.build-complete .pending-text-top.active,
.setup-panel.build-complete .pending-changes-text.active {
  opacity: 1;
}
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3); }
}

/* Save Changes Button - Bottom */
.save-btn-bottom {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.save-btn-bottom:hover {
  background: #b91c1c;
}
.save-btn-bottom:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.save-btn-bottom.show {
  display: flex;
  align-items: center;
}

/* Pending changes text - Bottom */
.pending-changes-text {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  display: none;
  align-items: center;
}
.pending-changes-text.show {
  display: flex;
}

/* Close button - Bottom (matches top X style) */
.close-btn-bottom {
  width: 32px;
  height: 32px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}
.close-btn-bottom:hover {
  background: #334155;
  color: #22d3ee;
}
.close-btn-bottom:active {
  transform: scale(0.95);
}
.close-btn-bottom svg {
  width: 18px;
  height: 18px;
}
.close-btn-bottom.show {
  display: flex;
}

/* Pending changes text - Top */
.pending-text-top {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  height: 32px;
}
.pending-text-top.show {
  display: flex;
}

/* Setup top row - controls */
.setup-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0 16px;
}

/* Setup title row */
.setup-title {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #0e4a5c;
  margin: 0;
  padding: 4px 16px 8px 16px;
  text-align: center;
}
.setup-title strong {
  font-weight: 600;
}

/* Left accent bar */
.setup-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #4FC3F7, #0277BD);
  border-radius: 6px 0 0 0;
  opacity: 0.7;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.setup-card:hover::before,
.setup-card:not(.collapsed)::before {
  opacity: 1;
  border-radius: 6px 0 0 0;
}

.setup-header {
  padding: 6px 14px !important;
  background: #f1f5f9;
  color: #074068;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  user-select: none;
  border-radius: 0 8px 0 0 !important;
  margin-left: 6px;
}

/* When collapsed, header gets rounded top-right only, bottom stays square */
.setup-card.collapsed .setup-header {
  border-radius: 0 8px 0 0 !important;
}

.setup-header:hover {
  background: #e2e8f0;
}

.setup-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.setup-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

/* Warning state when changes are pending - shows in subtitle */
.setup-subtitle.warning {
  color: #ef4444;
  font-weight: 400;
  opacity: 1;
}

.collapse-icon {
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #074068;
}

/* Collapsed: arrow points right */
.setup-card.collapsed .collapse-icon {
  transform: rotate(0deg);
}

/* Expanded: arrow points down */
.setup-card:not(.collapsed) .collapse-icon {
  transform: rotate(90deg);
}

.setup-content {
  padding: 20px 24px 24px 24px;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 0;
  margin-top: 0;
  margin-left: 0;
}

.setup-card.collapsed .setup-content {
  display: none;
}

/* ===== Setup Content Section Headers ===== */
.setup-content .section-header {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #053847;
  background: none;
  margin: 16px 0 12px 0 !important;
  padding: 0 0 8px 0;
  border-radius: 0;
  border-bottom: none;
  position: relative;
}
.setup-content .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65%;
  height: 3px;
  background: rgba(34, 211, 238, 0.85);
}

.setup-content .section-header:first-child {
  margin-top: 0 !important;
}

/* ===== Already Earned Income & Holiday Settings - Clean iOS Style ===== */
#ytdDetails,
#floatedHolidaysDetails {
  background: #cef3f7 !important;
  border: 1px solid #a8e8f0 !important;
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Force rounded corners on YTD/Holiday */
details#ytdDetails,
details#floatedHolidaysDetails {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
}

/* Space between title and status */
#holidayStatus {
  margin-left: 6px;
}

#ytdDetails > summary,
#floatedHolidaysDetails > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #22d3ee;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: #334155;
  list-style: none;
  transition: background 0.2s;
  margin: 0;
  border-radius: 8px 8px 0 0;
}

#ytdDetails > summary:hover,
#floatedHolidaysDetails > summary:hover {
  background: #475569;
}

/* Hide default marker */
#ytdDetails > summary::-webkit-details-marker,
#floatedHolidaysDetails > summary::-webkit-details-marker {
  display: none;
}

/* Modern chevron - right aligned */
#ytdDetails > summary::after,
#floatedHolidaysDetails > summary::after {
  content: "›";
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.25s ease;
  margin-left: auto;
}

#ytdDetails[open] > summary::after,
#floatedHolidaysDetails[open] > summary::after {
  transform: rotate(90deg);
}

/* Remove old ::before arrows */
#ytdDetails > summary::before,
#floatedHolidaysDetails > summary::before {
  display: none !important;
}

/* Content area */
#ytdDetails > div,
#floatedHolidaysDetails > div {
  padding: 12px 18px;
  background: #cef3f7;
}

/* ===== FINAL SPACING FIXES ===== */

/* Fix Holiday Settings summary alignment */
#floatedHolidaysSummary {
  text-align: left !important;
}

/* Section header spacing */
/* ===== Info Box ===== */
.info-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #1e40af;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ===== Save Button ===== */
.save-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px !important;
  margin-bottom: 8px !important;
  padding-top: 8px !important;
  border-top: 2px solid #e2e8f0;
}

.save-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: not-allowed;
  transition: all 0.2s;
  background: white;
  color: #94a3b8;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.save-button.active {
  background: #ef4444;
  color: white;
  border: 2px solid #dc2626;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.save-button.active:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ===== Generate Button ===== */
.generate-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 4px 0 0 0;
  padding: 0;
}
.generate-status {
  font-size: 14px;
  font-weight: 500;
  color: #16a34a;
}
.generate-status.pending {
  color: #ef4444;
}
.generate-btn {
  padding: 12px 24px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  animation: build-pulse 2s ease-in-out infinite;
}
@keyframes build-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.3); }
}
.generate-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}
.generate-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.generate-btn:disabled {
  background: rgba(100,116,139,0.5);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  transform: none;
  animation: none;
}

#generateBtn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Static Rocket - No animations */
.rocket-simple {
  display: inline-block;
  font-size: 18px;
}

/* Refresh emoji - No animations */
.refresh-emoji {
  display: inline-block;
  font-size: 18px;
}

@media (max-width: 480px) {
  .setup-card {
    margin-bottom: 20px;
  }
  .setup-header {
    padding: 16px;
  }
  .setup-title {
    font-size: 18px;
  }
  .setup-subtitle {
    font-size: 13px;
  }
  .setup-content {
    padding: 16px 16px;
  }
  .subsection summary {
    /* NEUTRALIZED - Override Zone controls visuals */
    /* padding: 14px 16px; */
    /* font-size: 15px; */
  }
  .save-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Section Headers Within Steps */
.section-header {
  display:block;
  font-size:20px;
  font-weight:700;
  color:#053847;
  letter-spacing:0.3px;
  margin:16px 0 12px 0 !important;
  padding:0 0 8px 0;
  border-radius:0;
  border-bottom:none;
  background:none;
  position:relative;
}
.section-header::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:65%;
  height:3px;
  background:rgba(34, 211, 238, 0.85);
}
.section-header:first-child {
  margin-top:0;
}

/* Pay Frequency Card */
/* Inner cards with tint background */
.pay-frequency-card,
.setup-inner-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 16px 0;
}
.pay-frequency-title {
  font-size: 15px;
  font-weight: 700;
  color: #074068;
  margin-bottom: 14px;
}

/* Radio Card Styles for Base Hours */
.base-hours-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (max-width:768px) {
  .base-hours-options {grid-template-columns:1fr;}
  
  /* Better spacing for pay frequency config on mobile */
  #semiMonthlyConfig input[type="number"],
  #biweeklyConfig input[type="date"] {
    margin: 2px 3px !important;
  }
  
  #biweeklyConfig input[type="date"] {
    max-width: 160px !important;
    width: 100% !important;
  }
}
.radio-card {
  border: 1px solid #a8e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  min-height: 100px;
  opacity: 0.5;
}
.radio-card:hover {
  border-color: #22d3ee;
  opacity: 0.75;
}
.radio-card.selected {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px #22d3ee;
  opacity: 1;
}
.radio-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #074068;
  margin-bottom: 6px;
}
.radio-card-subtitle {
  font-size: 14px;
  color: #074068;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Generate Button */
.btn-generate {
  width:100%;
  padding:18px 24px;
  background:linear-gradient(135deg,#34d399 0%,#10b981 100%);
  color:white;
  border:none;
  border-radius:12px;
  font-size:17px;
  font-weight:600;
  letter-spacing:0.3px;
  cursor:pointer;
  transition:all 0.25s ease;
  box-shadow:0 2px 8px rgba(16,185,129,0.25), 0 1px 3px rgba(0,0,0,0.1);
}
.btn-generate:hover {
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(16,185,129,0.35), 0 2px 6px rgba(0,0,0,0.1);
  background:linear-gradient(135deg,#4ade80 0%,#22c55e 100%);
}
.btn-generate:active {
  transform:translateY(0);
  box-shadow:0 1px 4px rgba(16,185,129,0.2);
}
@media (max-width:480px) {
  .btn-generate {
    padding:16px 20px;
    font-size:16px;
  }
}

/* Success Modal Animations */
@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
@keyframes popIn {
  from {transform:scale(0.8);opacity:0;}
  to {transform:scale(1);opacity:1;}
}

/* ============================================================================ */

.shadow-paycheck-banner {background:linear-gradient(135deg,#2a4a6f 0%,#1e3a5f 100%);color:#4fc3f7;border-top:3px solid #4fc3f7;font-weight:700;padding:12px;font-size:13px;text-align:center;}
.shadow-paycheck-row {background:rgba(79,195,247,0.05);}
.current-pay-period {background:linear-gradient(90deg,rgba(79,195,247,0.15) 0%,rgba(79,195,247,0.05) 100%);border-left:4px solid #4fc3f7 !important;}

/* CALENDAR GRID - DETERMINISTIC LAYOUT */
/* Year view - fixed columns, clean breakpoints */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 420px);
  gap: 24px;
  margin-top: 16px;
  justify-content: center;
}
@media (max-width: 1400px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 420px);
  }
}
@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}
/* Month view - always centered, readable */
.calendar-grid.month-view {
  grid-template-columns: minmax(420px, 720px);
}
/* All calendar views get percentage-based pills */
.calendar-grid .pill-container {
  left: 0;
  right: 0;
  transform: none;
}
.calendar-grid .calendar-pill {
  width: 85%;
  max-width: none;
}
@media (max-width: 900px) {
  .calendar-grid.month-view {
    grid-template-columns: 1fr;
  }
}

/* CARDS ARE DUMB - Grid decides size */
.month-calendar {
  width: 100%;
  max-width: none;
  transform: none;
  background: white;
  border-radius: 12px;
  padding: 0;
  border: 1px solid #cbd5e1;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .month-calendar:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  }
}
.month-calendar.collapsed {display:none;}

.month-name {text-align:left;font-weight:600;color:#ffffff;background:linear-gradient(135deg, #0a4a5e 0%, #0c5a72 50%, #0e6680 100%);padding:12px 16px;border-radius:8px 8px 0 0;margin-bottom:0;font-size:17px;border-bottom:2px solid #22d3ee;}
.calendar-days {display:grid;grid-template-columns:repeat(7,1fr);gap:1px;min-width:0;padding:12px;overflow:visible;}
@media (max-width:480px) {.calendar-days {gap:1px;padding:6px 8px;}}
.calendar-day-header {text-align:center;font-size:14px;color:#0D2136;padding:4px;font-weight:700;text-shadow:0 0 1px #fff;}
.calendar-day {min-height:88px;min-width:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:12px;font-weight:600;border-radius:8px;cursor:pointer;position:relative;transition:box-shadow 0.2s;padding:4px 2px;overflow:hidden;}
@media (max-width:480px) {.calendar-day {min-height:76px;min-width:42px;padding:2px 0px;}}
.calendar-day:hover {box-shadow:0 4px 12px rgba(0,0,0,0.15);}
.calendar-day.empty {cursor:default;}
.calendar-day.empty:hover {box-shadow:none;}
.calendar-day.off-day {background:linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);color:rgba(0,0,0,0.8);}
.calendar-day.work-day {background:linear-gradient(to bottom, #a7f3d0 0%, #6ee7b7 100%);color:rgba(0,0,0,0.8);}
.calendar-day.vacation {background:#4150FA;border:5px solid #10b981;}
.calendar-day.floating {background:#565DA8;border:5px solid #10b981;}
.calendar-day.sick {background:#E15438;border:5px solid #10b981;}
.calendar-day.xfl {background:#AF45E0;border:5px solid #10b981;}
.calendar-day.dto-work {background:#A99902;border:5px solid #10b981;}
.calendar-day.dto-off {background:#A99902;border:5px solid #d1d5db;}
.calendar-day.overtime {background:#FFB703;border:5px solid #d1d5db;}
.calendar-day.doubletime {background:#FFB703;border:5px solid #d1d5db;}
.calendar-day.dtw-work {background:#B8B405;border:5px solid #10b981;}
.calendar-day.dtw-off {background:#B8B405;border:5px solid #d1d5db;}
.calendar-day.spt-work {background:#01D3EB;border:5px solid #10b981;}
.calendar-day.spt-off {background:#01D3EB;border:5px solid #d1d5db;}
.calendar-day.today {box-shadow:inset 0 0 0 2px #ff00ff;}
/* Calendar date number */
.calendar-date-num {position:absolute;top:3px;left:5px;font-size:15px;font-weight:700;z-index:10;color:#0D2136;text-shadow:0 0 1px #fff;}
@media (max-width:767px) {.calendar-date-num {font-size:13px;}}
/* Calendar holiday star */
.calendar-star {position:absolute;top:2px;right:4px;font-size:18px;color:#FFB703;z-index:10;line-height:1;filter:drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);}
@media (max-width:767px) {.calendar-star {top:3px;right:4px;font-size:14px;}}
/* Pill container */
.pill-container {position:absolute;bottom:5px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:2px;align-items:center;pointer-events:none;z-index:5;}
@media (max-width:767px) {.pill-container {bottom:3px;gap:1px;}}
/* Pills - locked, no scaling */
.calendar-pill {position:relative;width:50px;height:22px;border-radius:4px;font-size:13px;font-weight:700;text-align:center;line-height:22px;letter-spacing:-0.3px;white-space:nowrap;overflow:hidden;flex-shrink:0;align-self:center;margin:0 auto;left:auto;right:auto;}
@media (max-width:480px) {.calendar-pill {font-size:10.5px;padding:2px 6px;line-height:1.1;height:auto;}}
/* Overflow pill */
.calendar-pill-overflow {background:#64748b;color:#fff;opacity:0.9;}
/* Shift indicator dots - upper right corner */
.calendar-pill.shift-day::after,.calendar-pill.shift-eve::after,.calendar-pill.shift-night::after{content:'';position:absolute;top:2px;right:2px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.calendar-pill.shift-day::after{background:#FBBF24;}
.calendar-pill.shift-eve::after{background:#F97316;}
.calendar-pill.shift-night::after{background:#4B6584;}
/* Shift dots for marker preview in settings */
.marker-preview.shift-day::after,.marker-preview.shift-eve::after,.marker-preview.shift-night::after{content:'';position:absolute;top:2px;right:2px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.marker-preview.shift-day::after{background:#FBBF24;}
.marker-preview.shift-eve::after{background:#F97316;}
.marker-preview.shift-night::after{background:#4B6584;}
.marker-preview{position:relative;}
/* Shift dots for context menu buttons */
.context-menu button.shift-day::after,.context-menu button.shift-eve::after,.context-menu button.shift-night::after{content:'';position:absolute;top:3px;right:3px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.context-menu button.shift-day::after{background:#FBBF24;}
.context-menu button.shift-eve::after{background:#F97316;}
.context-menu button.shift-night::after{background:#4B6584;}
.context-menu button{position:relative;}
.context-menu-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.2);z-index:1000;display:none;}
.context-menu {position:fixed;right:16px;top:50%;transform:translateY(-50%);background:linear-gradient(135deg, #1e293b 0%, #334155 100%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:2px solid rgba(34,211,238,0.3);border-radius:10px;padding:8px;box-shadow:0 8px 32px rgba(0,0,0,0.3);z-index:1001;display:none;max-height:70vh;overflow-y:auto;min-width:56px;}
@media (orientation: landscape) and (max-height: 500px) {.context-menu {top:calc(50% + 30px);max-height:60vh;}}
.context-menu-date {color:#fff;font-size:13px;text-align:center;padding:6px 8px 10px;border-bottom:1px solid rgba(255,255,255,0.2);margin-bottom:6px;font-weight:600;}
.context-menu button {display:block;width:100%;background:rgba(255,255,255,0.15);color:#fff;border:none;padding:8px 12px;margin:3px 0;border-radius:6px;cursor:pointer;text-align:center;font-size:12px;font-weight:600;transition:all 0.15s;}
.context-menu button:hover {background:rgba(255,255,255,0.25);transform:scale(1.02);}
.context-menu-close {display:block;width:100%;background:#dc2626;border:none;border-radius:6px;color:#fff;font-size:12px;font-weight:600;padding:6px 12px;margin-bottom:6px;text-align:center;cursor:pointer;transition:all 0.15s;}
.context-menu-close:hover {background:#b91c1c;}
/* Calendar day pressed state - when menu is open for this day */
.calendar-day.pressed {box-shadow:inset 0 2px 4px rgba(0,0,0,0.25);border:2px solid #22d3ee !important;}
@media(max-width:480px){.context-menu{right:12px;min-width:60px;max-height:65vh;}}

/* OT Toast - Paycheck preview when adding OT/DT/TT markers */
.ot-toast {
  position: fixed;
  bottom: 100px;
  right: 16px;
  background: linear-gradient(135deg, #0a4a5e 0%, #0c5a72 100%);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(34, 211, 238, 0.4);
  min-width: 150px;
  z-index: 9999;
  animation: otToastSlideIn 0.3s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 14px);
}
@media (max-width: 480px) {
  .ot-toast {
    right: 12px;
    bottom: 90px;
  }
}
@keyframes otToastSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ot-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.ot-toast-close:hover { color: rgba(255,255,255,0.8); }
.ot-toast-date {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  padding-right: 20px;
}
.ot-toast-net {
  color: #4ade80;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.ot-toast-tax {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding-bottom: 2px;
}
.ot-toast-tax .flag-amber { color: #f59e0b; }
.ot-toast-tax .flag-red { color: #ef4444; }

.simple-toast {position:fixed;top:80px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#0f4c5c 0%,#0e7490 100%);color:#fff;padding:12px 24px;border-radius:8px;font-size:14px;font-weight:500;z-index:10002;animation:toastIn 0.3s ease-out;box-shadow:0 4px 12px rgba(0,0,0,0.3);border:1px solid rgba(255,255,255,0.1);}
.simple-toast.error {background:linear-gradient(135deg,#991b1b 0%,#dc2626 100%);}
.simple-toast.warning {background:linear-gradient(135deg,#b45309 0%,#f59e0b 100%);}

.custom-modal-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:10000;display:none;align-items:flex-start;justify-content:center;animation:fadeIn 0.2s;padding:20px;overflow-y:auto;}
.custom-modal-overlay.show {display:flex;}
.modal-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:10001;display:flex;align-items:center;justify-content:center;animation:fadeIn 0.2s;}
.custom-modal {
  background: linear-gradient(180deg, #0a5a72 0%, #0e7490 70%, #0e7490 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0;
  max-width: 400px;
  width: 90vw;
  margin: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  animation: slideIn 0.3s;
  position: relative;
  touch-action: manipulation;
}
.custom-modal-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,0.08);border-radius:14px 14px 0 0;margin:0;background:transparent;}
.custom-modal-header-left {display:flex;align-items:center;gap:8px;flex:1;}
.custom-modal-header-actions {display:flex;align-items:center;gap:8px;}
.custom-modal-icon {display:none;}
.custom-modal-title {font-size:15px;font-weight:500;color:#ffffff;letter-spacing:0.3px;}
.custom-modal-close {width:32px;height:32px;background:none;border:none;color:rgba(255,255,255,0.5);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;transition:color 0.15s;border-radius:50%;font-size:24px;}
.custom-modal-close:hover {color:rgba(255,255,255,0.8);}
.custom-modal-body {color:#ffffff !important;font-size:15px;line-height:1.5;padding:14px 16px;overflow-x:hidden;}
.custom-modal-body * {color:#ffffff !important;}
.custom-modal-body strong {color:#ffffff !important;font-weight:600;}
.custom-modal-body a {color:#22d3ee !important;text-decoration:none;font-weight:500;}
.custom-modal-body a:hover {text-decoration:underline;}
.custom-modal-body ul {margin:8px 0 8px 16px;}
.custom-modal-body ul li {margin:3px 0;font-size:15px;}
.custom-modal-body label {color:#fff !important;font-size:15px !important;font-weight:400 !important;}
.custom-modal-body span {color:#ffffff !important;}
.custom-modal-body div {color:#ffffff;font-size:15px;}
.custom-modal-input {width:100%;background:rgba(255,255,255,0.85) !important;border:1px solid rgba(255,255,255,0.9) !important;color:#0e4a5c !important;padding:10px 12px;border-radius:8px !important;font-size:14px;margin-top:8px;transition:all 0.2s ease;box-sizing:border-box !important;max-width:100% !important;}
.custom-modal-input:focus {outline:none;border-color:#22d3ee !important;background:rgba(255,255,255,0.95) !important;}
.custom-modal-input::placeholder {color:rgba(14,74,92,0.5) !important;}
.custom-modal-body select {width:100%;background:rgba(255,255,255,0.85) !important;border:1px solid rgba(255,255,255,0.9) !important;color:#0e4a5c !important;padding:10px 12px;border-radius:8px !important;font-size:14px;transition:all 0.2s ease;cursor:pointer;}
.custom-modal-body select option {background:#0a5a72;color:#fff;}
.custom-modal-body select:focus {outline:none;border-color:#22d3ee !important;}
.custom-modal-body input[type="text"],.custom-modal-body input[type="email"],.custom-modal-body input[type="number"],.custom-modal-body input[type="date"],.custom-modal-body input[type="password"],.custom-modal-body select,.custom-modal-body textarea {background:rgba(255,255,255,0.85) !important;border:1px solid rgba(255,255,255,0.9) !important;border-radius:8px !important;color:#0e4a5c !important;padding:10px 12px !important;font-size:14px !important;box-sizing:border-box !important;max-width:100% !important;width:100%;}
.custom-modal-body input:focus,.custom-modal-body select:focus,.custom-modal-body textarea:focus {border-color:#22d3ee !important;box-shadow:none !important;outline:none;}
.custom-modal-body input::placeholder {color:rgba(14,74,92,0.5) !important;}
.custom-modal-buttons {display:none;padding:16px;gap:12px;justify-content:flex-end;}
.custom-modal-buttons.show {display:flex;}
.modal-action-btn {width:40px;height:40px;border-radius:50%;border:none;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;flex:none;}
.modal-action-btn svg {width:18px;height:18px;stroke-width:2;}
.modal-text-btn {padding:8px 16px;border-radius:6px;border:none;cursor:pointer;transition:all 0.15s ease;font-size:13px;font-weight:600;}
.modal-text-btn.primary {background:#22d3ee;color:#074068 !important;}
.modal-text-btn.primary:hover {background:#06b6d4;}
.modal-text-btn.secondary {background:#94a3b8;color:#fff;border:none !important;}
.modal-text-btn.secondary:hover {background:#64748b;}
.modal-text-btn.danger {background:#dc2626;color:#fff;}
.modal-text-btn.danger:hover {background:#b91c1c;}
.modal-action-btn.primary {background:#22d3ee;color:#074068 !important;}
.modal-action-btn.primary svg {stroke:#074068 !important;}
.modal-action-btn.primary:hover {background:#06b6d4;transform:scale(1.05);}
.modal-action-btn.secondary {background:rgba(255,255,255,0.25);color:#fff;}
.modal-action-btn.secondary:hover {background:rgba(255,255,255,0.35);transform:scale(1.05);}
.modal-action-btn.success {background:#10b981;color:#fff;}
.modal-action-btn.success:hover {background:#059669;transform:scale(1.05);}
.modal-action-btn.danger {background:#dc2626;color:#fff;}
.custom-modal-body button.danger-text,.custom-modal-body .danger-text {color:rgba(255,255,255,0.7) !important;background:none !important;border:none !important;cursor:pointer;font-weight:500;}
.custom-modal-body button.danger-text:hover,.custom-modal-body .danger-text:hover {color:#fff !important;}
.custom-modal-body button.muted-text,.custom-modal-body .muted-text {color:rgba(255,255,255,0.7) !important;background:none !important;border:none !important;cursor:pointer;font-weight:500;}
.custom-modal-body button.muted-text:hover,.custom-modal-body .muted-text:hover {color:#fff !important;}
.ghost-btn {background:rgba(255,255,255,0.1);color:#fff;border:1px solid rgba(255,255,255,0.2);border-radius:6px;cursor:pointer;transition:all 0.15s ease;}
.ghost-btn:hover {border-color:#fff;transform:scale(1.02);}
.modal-action-btn.danger:hover {background:#b91c1c;transform:scale(1.05);}
.modal-btn-primary {background:#22d3ee;color:#074068 !important;}
.modal-btn-primary:hover {background:#06b6d4;transform:scale(1.02);}
.modal-btn-primary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-secondary {background:#94a3b8;color:#fff;}
.modal-btn-secondary:hover {background:#64748b;transform:scale(1.02);}
.modal-btn-secondary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-success {background:#10b981;color:#fff;}
.modal-btn-success:hover {background:#059669;transform:scale(1.02);}
.modal-btn-success:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-danger {background:#dc2626;color:#fff;}
.modal-btn-danger:hover {background:#b91c1c;transform:scale(1.02);}
.modal-btn-danger:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-cancel {background:#94a3b8;color:#fff;}
.modal-btn-cancel:hover {background:#64748b;transform:scale(1.02);}
.modal-btn-cancel:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
/* YTD Toggle Buttons */
.ytd-toggle-btn {transition:all 0.15s ease;}
.ytd-toggle-btn:hover {transform:scale(1.02);}
.ytd-toggle-btn:active {transform:scale(0.95) !important;box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.custom-radio {display:none;}
.custom-radio-dot {width:20px;height:20px;min-width:20px;border:2px solid rgba(255,255,255,0.3);border-radius:50%;position:relative;flex-shrink:0;transition:all 0.2s;box-sizing:border-box;}
.custom-radio:checked + .custom-radio-dot {border-color:#22d3ee;background:#22d3ee;}
.custom-radio:checked + .custom-radio-dot::after {content:'';position:absolute;top:4px;left:4px;width:8px;height:8px;background:white;border-radius:50%;}
.modal-warning-yellow {color:#fbbf24 !important;}
.modal-warning-red {color:#ef4444 !important;}
.custom-modal-divider {height:1px;background:rgba(255,255,255,0.1);margin:24px 0;}
/* Three-Position Toggle Switch */
.marker-toggle-container {display:flex;flex-direction:column;gap:8px;margin:16px 0;}
.marker-toggle-label {color:#074068;font-weight:600;font-size:13px;}
.marker-toggle-wrapper {position:relative;width:100%;height:44px;background:#e2e8f0;border-radius:22px;cursor:pointer;user-select:none;}
.marker-toggle-track {position:absolute;top:4px;left:4px;right:4px;bottom:4px;display:flex;justify-content:space-between;align-items:stretch;}
.marker-toggle-option {flex:1;text-align:center;font-size:11px;font-weight:700;color:#64748b;z-index:1;transition:color 0.3s;padding:12px 8px;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.marker-toggle-slider {position:absolute;top:4px;bottom:4px;width:calc(33.333% - 2px);background:linear-gradient(135deg,#074068 0%,#065C94 100%);border-radius:18px;transition:left 0.3s ease;box-shadow:0 2px 6px rgba(7,64,104,0.3);}
.marker-toggle-wrapper[data-position="work"] .marker-toggle-slider {left:4px;}
.marker-toggle-wrapper[data-position="both"] .marker-toggle-slider {left:calc(33.333% + 2px);}
.marker-toggle-wrapper[data-position="off"] .marker-toggle-slider {left:calc(66.666% + 4px);}
.marker-toggle-wrapper[data-position="work"] .marker-toggle-option:first-child {color:#fff;}
.marker-toggle-wrapper[data-position="both"] .marker-toggle-option:nth-child(2) {color:#fff;}
.marker-toggle-wrapper[data-position="off"] .marker-toggle-option:last-child {color:#fff;}
@keyframes fadeIn {from{opacity:0;}to{opacity:1;}}
@keyframes slideIn {from{transform:translateY(-20px);opacity:0;}to{transform:translateY(0);opacity:1;}}
@keyframes toastIn {from{transform:translateX(-50%) translateY(-20px);opacity:0;}to{transform:translateX(-50%) translateY(0);opacity:1;}}
@keyframes toastOut {from{transform:translateX(-50%) translateY(0);opacity:1;}to{transform:translateX(-50%) translateY(-20px);opacity:0;}}
@keyframes slideOut {from{transform:translateY(0);opacity:1;}to{transform:translateY(-20px);opacity:0;}}
.welcome-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,20,40,0.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:none;align-items:flex-start;justify-content:center;opacity:0;perspective:1200px;z-index:10001;overflow-y:auto;padding:20px;}
.welcome-overlay.show{display:flex;animation:welcomeFadeIn 0.4s ease forwards;}
@keyframes welcomeFadeIn{to{opacity:1;}}
.welcome-card{background:rgba(255,255,255,0.95);border-radius:24px;width:380px;max-width:90vw;padding:40px 32px 32px;text-align:center;box-shadow:0 25px 60px rgba(0,0,0,0.3),0 0 0 1px rgba(255,255,255,0.2);transform-style:preserve-3d;margin:auto;}
.welcome-check{width:72px;height:72px;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;box-shadow:0 8px 24px rgba(16,185,129,0.35);}
.welcome-check svg{width:36px;height:36px;fill:#fff;}
.welcome-title{font-size:28px;font-weight:800;color:#0c4a6e;margin-bottom:8px;opacity:0;transform:translateY(10px);animation:welcomeFadeUp 0.4s ease 0.45s forwards;}
@keyframes welcomeFadeUp{to{opacity:1;transform:translateY(0);}}
.welcome-name{font-size:18px;color:#0891b2;font-weight:600;margin-bottom:20px;height:27px;display:flex;align-items:center;justify-content:center;opacity:0;animation:welcomeFadeIn 0.1s ease 0.6s forwards;}
.welcome-name-text{display:inline-block;overflow:hidden;white-space:nowrap;border-right:2px solid #0891b2;width:0;}
@keyframes welcomeTyping{to{width:var(--typing-width);}}
@keyframes welcomeBlink{50%{border-color:transparent;}}
@keyframes welcomeHideCursor{to{border-color:transparent;}}
.welcome-message{font-size:14px;color:#64748b;line-height:1.6;margin-bottom:28px;opacity:0;}
.welcome-message a{color:#0891b2;text-decoration:none;font-weight:600;}
.welcome-btn-primary{width:100%;padding:16px;background:linear-gradient(135deg,#0c4a6e 0%,#0e7490 100%);border:none;border-radius:12px;font-size:16px;font-weight:700;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(12,74,110,0.35);margin-bottom:12px;opacity:0;transform:translateY(10px);transition:transform 0.2s,box-shadow 0.2s;}
.welcome-btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(12,74,110,0.45);}
.welcome-btn-cancel{width:100%;padding:14px;background:transparent;border:none;font-size:14px;font-weight:600;color:#64748b;cursor:pointer;opacity:0;}
.welcome-btn-cancel:hover{color:#0c4a6e;}
.welcome-subtitle{font-size:15px;color:#64748b;margin-bottom:20px;opacity:0;}
.welcome-input-group{margin-bottom:16px;text-align:left;opacity:0;}
.welcome-label{display:block;color:#0c4a6e;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px;}
.welcome-input{width:100%;padding:14px 16px;border:2px solid #e2e8f0;border-radius:10px;font-size:15px;font-family:inherit;transition:all 0.2s;background:#f8fafc;box-sizing:border-box;}
.welcome-input:focus{outline:none;border-color:#0e7490;background:#fff;box-shadow:0 0 0 4px rgba(14,116,144,0.1);}
.welcome-input.error{border-color:#ef4444;background:#fef2f2;}
.welcome-error{color:#ef4444;font-size:13px;text-align:center;margin-bottom:12px;display:none;}
.welcome-terms{font-size:13px;color:#64748b;line-height:1.6;margin-bottom:24px;opacity:0;}
.welcome-terms a{color:#0891b2;text-decoration:none;font-weight:600;}
.welcome-btn-success{width:100%;padding:16px;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border:none;border-radius:12px;font-size:16px;font-weight:700;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(16,185,129,0.4);margin-bottom:12px;opacity:0;transform:translateY(10px);transition:transform 0.2s,box-shadow 0.2s;}
.welcome-btn-success:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(16,185,129,0.5);}
.welcome-card.folding{transform-origin:center bottom;animation:welcomeFoldAway 0.6s cubic-bezier(0.4,0,0.2,1) forwards;}
@keyframes welcomeFoldAway{0%{transform:rotateX(0deg) scale(1);opacity:1;}100%{transform:rotateX(90deg) scale(0.7) translateY(50px);opacity:0;}}
.welcome-overlay.closing{animation:welcomeFadeOut 0.4s ease 0.4s forwards;}
@keyframes welcomeFadeOut{to{opacity:0;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);}}
.forecasting-bar {position:fixed;bottom:0;left:0;right:0;background:linear-gradient(135deg,#074068 0%,#065C94 25%,#0891b2 50%,#06b6d4 75%,#22d3ee 100%);padding:14px 20px;display:none;align-items:center;justify-content:center;gap:12px;font-size:17px;font-weight:500;z-index:999;box-shadow:0 -4px 12px rgba(0,0,0,0.2);color:#EAF2F6;overflow:hidden;text-shadow:0 1px 0 rgba(0,0,0,0.12);}
.forecasting-bar::before {content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(79,195,247,0.15) 50%,transparent 100%);animation:shimmer 3s ease-in-out infinite;}
.forecasting-bar::after {content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#4FC3F7 0%,#0277BD 100%);}
@keyframes shimmer {0%{left:-100%;}100%{left:100%;}}
.forecasting-bar.show {display:none !important;}
.forecast-icon {font-size:20px;}
.forecast-current {color:#EAF2F6;font-weight:500;}
.forecast-next {color:#EAF2F6;font-weight:500;}
.forecast-row {display:flex;align-items:center;gap:8px;}
.forecast-divider {display:none;}
.forecast-next {margin-left:20px;}
.holiday-settings-grid {display:grid;grid-template-columns:auto 60px 60px;gap:8px 12px;align-items:center;max-width:400px;}
@media(max-width:600px){.holiday-settings-grid{grid-template-columns:2fr 60px 60px;gap:12px 8px;max-width:none;}.holiday-settings-grid span{font-size:14px;}}
@media(max-width:768px){.grid{grid-template-columns:1fr;}.stats{grid-template-columns:1fr;}.stats + .stats{margin-top:14px;}td input{width:60px;font-size:16px;}.custom-modal{max-height:90vh;border-radius:14px;}.custom-modal-header{padding:12px 14px;border-radius:14px 14px 0 0;}.custom-modal-body{padding:12px 14px;font-size:13px;}.custom-modal-buttons{padding:12px 14px;}.custom-modal-title{font-size:14px;}.forecasting-bar{font-size:14px;padding:12px 16px;flex-direction:column;gap:6px;}}
.temp-pay-section {background:white;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,0.1);margin-bottom:20px;border-left:4px solid #C5E5F3;}
.temp-pay-section summary {padding:16px;cursor:pointer;font-size:18px;font-weight:700;color:#074068;list-style:none;user-select:none;display:flex;align-items:center;gap:10px;background:#F0FAFD;}
.temp-pay-section summary::-webkit-details-marker {display:none;}
.temp-pay-section summary::before {content:'▼';font-size:12px;transition:transform 0.2s;color:#074068;}
.temp-pay-section:not([open]) summary::before {transform:rotate(-90deg);}
.temp-pay-content {padding:16px;}
.temp-pay-grid {display:grid;grid-template-columns:1fr;gap:10px;max-width:100%;}
.temp-pay-item {display:flex;gap:8px;align-items:center;max-width:100%;}
.temp-pay-item input[type="text"] {flex:1;min-width:0;padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;}
.temp-pay-item input[type="number"] {width:80px;padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;}
.temp-pay-item button {background:#ef4444;color:white;border:none;padding:6px 10px;border-radius:4px;cursor:pointer;font-size:12px;flex-shrink:0;}
/* Paycheck Cards Grid - see fixed sizes section below */

/* Individual Paycheck Card */
.paycheck-card {background:white;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.1);overflow:hidden;transition:all 0.2s;display:flex;flex-direction:column;}
@media (hover: hover) and (pointer: fine) {
.paycheck-card:hover, .paycheck-card:active {box-shadow:0 4px 12px rgba(0,0,0,0.1);transform:translateY(-2px);}
}
.paycheck-card.collapsed {display:none;}

/* Card Header */
.card-header {background:linear-gradient(135deg, #0a4a5e 0%, #0c5a72 50%, #0e6680 100%);color:white;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:2px solid #22d3ee;}
.card-date {font-size:16px;font-weight:600;}
.card-amounts {display:flex;justify-content:flex-end;gap:16px;font-size:16px;font-weight:600;}
@media (max-width:480px) {.card-date {font-size:14px;} .card-amounts {font-size:14px;gap:12px;}}

/* Card Body */
.card-body {padding:16px;flex:1;display:flex;flex-direction:column;background:linear-gradient(180deg, #e8f7fa 0%, #fff 100%);}

/* Input Section */
.input-section {background:transparent;padding:10px;border-radius:4px;margin-bottom:10px;border:none;}
.input-row {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
.input-field {display:flex;flex-direction:column;gap:4px;}
.input-field label {font-size:11px;color:#1e293b;font-weight:600;text-transform:uppercase;}
.input-field input {padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;background:white;color:#1f2937;font-weight:600;width:100%;max-width:120px;box-shadow:0 1px 3px rgba(0,0,0,0.08);}
.input-field input::placeholder {color:#9ca3af;opacity:1;font-weight:400;}

/* Premium Pay Row */
.temppay-row {display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid #e5e7eb;}
.temppay-label {color:#1e293b;font-size:13px;display:flex;align-items:center;gap:8px;font-weight:600;}
.temppay-value {font-weight:600;color:#074068;font-size:14px;}

/* Detail Rows */
.detail-row {display:flex;justify-content:space-between;padding:8px 0;font-size:14px;}
.detail-row:last-child {border-bottom:none;}
.detail-label {color:#6b7280;}
.detail-value {font-weight:600;color:#1f2937;font-size:14px;}
.detail-value.positive {color:#10b981;}
.detail-value.negative {color:#ef4444;}

/* Card Footer */
.card-footer {background:transparent;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;margin-top:auto;}
.gross-net-summary {font-weight:600;color:#074068;}
.tax-rate-display {display:flex;align-items:center;gap:6px;font-size:12px;color:#374151;font-weight:600;}
.tax-rate-display .warning {color:#fbbf24;}

/* Badges - Soft pastels, consistent shape, fixed width */
.holiday-badge {background:#fef3c7;color:#111;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:4px;line-height:1.4;border:1px solid #fcd34d;min-width:160px;text-align:center;}
.shadow-badge {background:#e0f2fe;color:#111;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #7dd3fc;min-width:160px;text-align:center;}
.carryover-badge {background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #818cf8;min-width:160px;text-align:center;white-space:nowrap;}
.current-period-badge {background:#d1fae5;color:#111;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #6ee7b7;min-width:160px;text-align:center;}
.starting-point-badge {background:linear-gradient(135deg,#f97316,#fb923c);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #fdba74;min-width:160px;text-align:center;white-space:nowrap;}
.year-start-badge {background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #a78bfa;min-width:160px;text-align:center;white-space:nowrap;}

/* Card Action Buttons - Match marker-action-btn style */
.card-action-btn {padding:8px 18px;font-size:13px;font-weight:600;background:#e0f7f4;border:none;color:#0f4c5c;border-radius:20px;cursor:pointer;transition:all 0.2s;}
@media (hover: hover) and (pointer: fine) {
.card-action-btn:hover {background:#0f4c5c;color:#ffffff;}
}
.card-action-btn:active {background:#0f4c5c;color:#ffffff;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.card-action-btn.mark {padding:8px 18px;font-size:13px;font-weight:600;background:#e0f7f4;border:none;color:#0f4c5c;border-radius:20px;cursor:pointer;transition:all 0.2s;}
.card-action-btn.mark:hover {background:#0f4c5c;color:#ffffff;}
.card-action-btn.mark:active {background:#0f4c5c;color:#ffffff;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.card-action-btn.remove {padding:8px 18px;font-size:13px;font-weight:600;background:#f1f5f9;border:none;color:#64748b;border-radius:20px;cursor:pointer;transition:all 0.2s;}
.card-action-btn.remove:hover {background:#e2e8f0;color:#475569;}
.card-action-btn.remove:active {background:#e2e8f0;color:#475569;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}

/* Sync Edit/Reset buttons (inline styled in HTML) */
.paycheck-card button:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}

/* Shadow Paycheck Banner */
.shadow-banner {background:#074068;border:2px solid #fbbf24;padding:12px 16px;border-radius:4px;margin-bottom:16px;color:#fbbf24;font-weight:600;display:flex;justify-content:space-between;align-items:center;}
.shadow-banner-icon {cursor:pointer;opacity:0.8;padding:4px;font-size:16px;}
.shadow-banner-icon:hover {opacity:1;}


.help-text {font-size:14px;color:#074068;margin-top:4px;font-style:italic;}
.tax-info-box {background:#cef3f7;padding:12px;border-radius:6px;border:1px dashed #1a4480;margin:16px 0 24px 0;}
.tax-info-box strong {color:#1a4480;}
.stat.maxed {border:2px solid #22c55e;background:linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);}
.marker-card {background:linear-gradient(180deg, #ffffff 0%, #fefce8 100%);border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px;display:flex;align-items:center;gap:8px;transition:all 0.2s;cursor:pointer;height:42px;width:180px;position:relative;}
.marker-card:hover {background:linear-gradient(180deg, #ffffff 0%, #fef9c3 100%);border-color:#4fc3f7;}
.marker-card:hover .marker-action-icon {opacity:1;}
.marker-preview {width:36px;height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#111;font-weight:700;font-size:10px;flex-shrink:0;}
.marker-info {flex:1;min-width:0;overflow:hidden;padding-right:24px;}
.marker-info-name {font-size:12px;font-weight:600;color:#1f2937;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.marker-info-details {font-size:10px;color:#64748b;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.marker-action-icon {position:absolute;top:50%;right:6px;transform:translateY(-50%);width:22px;height:22px;border-radius:4px;border:none;background:#e2e8f0;color:#64748b;cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;opacity:0;transition:all 0.15s;}
.marker-action-icon:hover {background:#0f4c5c;color:#fff;}
.marker-list-grid {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
/* Marker Section Styles */
.marker-section {margin-bottom:16px;}
.marker-section-header {display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.marker-section-title {display:inline-block;font-size:20px;font-weight:700;color:#053847;letter-spacing:0.3px;}
.marker-section-subtitle {font-size:14px;color:#64748b;font-weight:500;}
.marker-divider {height:1px;background:#e2e8f0;margin:20px 0;}

.marker-action-btns {display:flex;gap:14px;margin-top:12px;margin-bottom:8px;}
.marker-action-btn {width:32px;height:32px;padding:0;background:transparent;border:none;color:#074068;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;justify-content:center;}
.marker-action-btn:hover {color:#0e4a5c;transform:scale(1.1);}
.marker-action-btn:active {transform:scale(0.9);}
.marker-action-btn.secondary {color:#074068;}
.marker-action-btn.secondary:hover {color:#0e4a5c;transform:scale(1.1);}
.marker-action-btn.secondary:active {transform:scale(0.9);}
.marker-action-btn svg {width:22px;height:22px;}
.color-palette {display:flex;flex-wrap:wrap;gap:0;margin-top:12px;}
.color-palette.compact {gap:2px;margin-top:4px;}
.color-palette.compact .color-square {width:22px;height:22px;border-radius:3px;}
.color-square {width:22px;height:22px;border-radius:3px;cursor:pointer;border:2px solid transparent;transition:all 0.15s;}
.color-square:hover {border-color:rgba(255,255,255,0.5);}
.color-square.selected {border-color:#fff;}
.emoji-dropdown-wrapper {position:relative;display:inline-block;width:100%;}
.emoji-dropdown-btn {width:100%;padding:10px 12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all 0.15s;}
.emoji-dropdown-btn:hover {background:rgba(255,255,255,0.15);border-color:rgba(255,255,255,0.3);}
.emoji-dropdown-btn svg {width:20px;height:20px;}
.emoji-dropdown-arrow {font-size:10px;opacity:0.7;}
.emoji-dropdown-grid {display:none;margin-top:8px;padding:10px;background:rgba(255,255,255,0.1);border-radius:8px;grid-template-columns:repeat(8, 1fr);gap:4px;}
.emoji-dropdown-grid.open {display:grid;}
.emoji-grid-item {padding:8px;text-align:center;cursor:pointer;border-radius:4px;font-size:14px;transition:background 0.15s;display:flex;align-items:center;justify-content:center;color:#fff;}
.emoji-grid-item:hover {background:rgba(255,255,255,0.15);}
.emoji-grid-item svg {width:22px;height:22px;}
.marker-toggle-wrapper.compact {height:28px;}
.marker-toggle-wrapper.compact .marker-toggle-option {font-size:11px;padding:5px 4px;}
.marker-checkbox-row {display:flex;gap:16px;margin-top:4px;}
.marker-checkbox-label {display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:#fff;}
.marker-checkbox-label input[type="checkbox"] {width:16px;height:16px;accent-color:#22d3ee;cursor:pointer;}
.marker-error {color:#ef4444;font-size:12px;margin-top:8px;display:none;}
.marker-card.disabled {opacity:0.4;}
.marker-toggle-wrapper.compact .marker-toggle-slider {border-radius:12px;}
.type-btn {transition:all 0.15s;}
.type-btn:hover:not(.selected) {border-color:#4fc3f7 !important;}
.type-btn.selected {border-color:#4fc3f7 !important;}
.type-btn:active {transform:scale(0.95);}
.shift-btn {transition:all 0.15s;}
.shift-btn:hover:not(.selected) {border-color:#4fc3f7 !important;}
.shift-btn:active {transform:scale(0.95);}
#app {padding-bottom:90px;}

/* ===============================================================
   AI INSIGHTS PANEL STYLES
   =============================================================== */
.ai-beta-badge {background:#4ade80;color:#064e3b;font-size:10px;font-weight:700;padding:3px 8px;border-radius:4px;margin-left:10px;vertical-align:middle;}
.ai-insight-btn {width:100%;background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:10px;padding:14px 16px;margin-bottom:10px;cursor:pointer;text-align:left;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,0.05);transition:all 0.15s;}
.ai-insight-btn:hover {background:#f0fdfa;border-color:#22d3ee;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.ai-insight-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.ai-insight-btn.selected {background:#f0fdfa;border-color:#0d9488;border-width:2px;}
.ai-insight-btn.dimmed {opacity:0.5;pointer-events:none;}
.ai-insight-icon {width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.ai-insight-icon.green {background:rgba(74,222,128,0.2);}
.ai-insight-icon.cyan {background:rgba(34,211,238,0.2);}
.ai-insight-icon.amber {background:rgba(251,191,36,0.2);}
.ai-insight-icon.purple {background:rgba(168,85,247,0.2);}
.ai-insight-text {flex:1;}
.ai-insight-title {color:#1e293b;font-size:14px;font-weight:600;margin-bottom:2px;}
.ai-insight-desc {color:#64748b;font-size:12px;}
.ai-insight-arrow {color:#94a3b8;font-size:20px;font-weight:300;}
.ai-response-area {background:linear-gradient(135deg,#0a4a5e 0%,#0c5a72 50%,#0e6680 100%);border-radius:12px;padding:16px;margin-top:8px;border:2px solid #22d3ee;}
.ai-response-label {color:rgba(255,255,255,0.7);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:10px;display:flex;align-items:center;gap:6px;}
.ai-response-label svg {width:14px;height:14px;color:#4ade80;}
.ai-response-text {color:#fff;font-size:14px;line-height:1.6;}
.ai-response-placeholder {color:rgba(255,255,255,0.5);font-size:13px;font-style:italic;text-align:center;padding:12px 0;}
.ai-highlight {color:#4ade80;font-weight:600;}
.ai-loading-dots {display:flex;justify-content:center;gap:6px;padding:16px 0;}
.ai-loading-dots span {width:8px;height:8px;background:#4ade80;border-radius:50%;animation:aiBounce 1.4s ease-in-out infinite;}
.ai-loading-dots span:nth-child(1) {animation-delay:0s;}
.ai-loading-dots span:nth-child(2) {animation-delay:0.2s;}
.ai-loading-dots span:nth-child(3) {animation-delay:0.4s;}
@keyframes aiBounce {0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-10px);}}
.ai-input-section {background:rgba(255,255,255,0.6);border-radius:10px;padding:14px;margin-top:12px;}
.ai-input-label {color:#334155;font-size:12px;font-weight:500;margin-bottom:8px;display:block;}
.ai-input-row {display:flex;gap:10px;align-items:center;}
.ai-input-wrapper {position:relative;flex:1;}
.ai-input-prefix {position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#64748b;font-weight:500;}
.ai-input-field {width:100%;padding:12px 14px 12px 30px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;color:#1e293b;font-size:16px;font-weight:600;}
.ai-input-field:focus {outline:none;border-color:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,0.2);}
.ai-calc-btn {background:#0d9488;color:#fff;border:none;padding:12px 20px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all 0.15s;}
.ai-calc-btn:hover {background:#0f766e;}
.ai-calc-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}

/* ===============================================================
   SETUP SECTION - CLEAN MINIMAL STYLES
   =============================================================== */

/* Setup Content padding */
.setup-content {
  padding: 20px;
  background: transparent;
}

/* ---------------------------------------------------------------
   PAYCHECK CARDS
   --------------------------------------------------------------- */
/* Cards are dumb - Grid decides size */
.paycheck-card {
    width: 100%;
    max-width: none;
    transform: none;
    position: relative;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #cbd5e1;
    margin-bottom: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .paycheck-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    }
}

.paycheck-card .paycheck-header {
    padding: 12px 20px;
    background: #ECF4FF;
    border-radius: 12px 12px 0 0;
}

.paycheck-card .paycheck-content {
    padding: 16px 20px;
}

/* ---------------------------------------------------------------
   PAYCHECK CARDS LAYOUT - MONTH/YEAR VIEW SYSTEM
   --------------------------------------------------------------- */

/* Paycheck Cards Grid - DETERMINISTIC LAYOUT */
/* Year view - fixed columns, clean breakpoints */
.paycheck-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 420px);
    gap: 24px;
    justify-content: center;
}
@media (max-width: 1400px) {
    .paycheck-cards-grid {
        grid-template-columns: repeat(2, 420px);
    }
}
@media (max-width: 900px) {
    .paycheck-cards-grid {
        grid-template-columns: 1fr;
    }
}
/* Month view - always centered, readable */
.paycheck-cards-grid.month-view {
    grid-template-columns: minmax(420px, 720px);
}
@media (max-width: 900px) {
    .paycheck-cards-grid.month-view {
        grid-template-columns: 1fr;
    }
}

/* Trial Expired Overlay */
.trial-expired-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 64, 104, 0.95);
  z-index: 500;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
.trial-expired-overlay.show {
  display: flex;
}
.trial-expired-overlay .expired-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: #f59e0b;
}
.trial-expired-overlay h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}
.trial-expired-overlay p {
  color: #a0d4f7;
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 480px;
  line-height: 1.6;
}
.trial-expired-overlay .reassurance-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
  display: inline-block;
}
.trial-expired-overlay .reassurance-list li {
  color: #d1fae5;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trial-expired-overlay .reassurance-list svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}
.trial-expired-overlay .pricing-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.trial-expired-overlay .subscribe-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trial-expired-overlay .subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.trial-expired-overlay .subscribe-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.trial-expired-overlay .subscribe-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.trial-expired-overlay .subscribe-btn.secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  box-shadow: none;
  transform: none;
}
.trial-expired-overlay .best-value {
  font-size: 11px;
  background: #f59e0b;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
.trial-expired-overlay .view-data-link {
  color: #64b5f6;
  font-size: 14px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
}
.trial-expired-overlay .view-data-link:hover {
  color: #90caf9;
}
.trial-expired-overlay .menu-note {
  color: #64748b;
  font-size: 13px;
  margin-top: 12px;
}

/* ===== TOP BAR - Phase 1A ===== */
.top-bar {
  background: none;
  padding: 16px 18px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2000;
  border-radius: 0 0 16px 16px;
}
.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Horizontal gradient - dark edges, lighter center */
  background: linear-gradient(90deg, #0a5a72 0%, #0e7490 50%, #0a5a72 100%);
  z-index: -1;
  border-radius: 0 0 16px 16px;
  border-bottom: 2px solid #22d3ee;
  animation: subtlePulse 3s ease-in-out infinite;
}
@keyframes subtlePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
/* Remove shimmer element styling */
.header-shimmer {
  display: none;
}
.top-bar-logo {
  font-size: 42px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-greeting {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  font-weight: 500;
}
.top-bar-dots {
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile top bar - compact */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 14px;
  }
  .top-bar::before {
    /* Same horizontal gradient - dark edges, lighter center */
    background: linear-gradient(90deg, #0a5a72 0%, #0e7490 50%, #0a5a72 100%);
  }
  .top-bar-logo {
    font-size: 26px;
    letter-spacing: 2px;
  }
  .top-bar-right {
    gap: 10px;
  }
  .top-bar-greeting {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .top-bar-dots {
    font-size: 1.5rem;
    padding: 2px 4px;
    font-weight: 700;
  }
}

/* Phase 1C: Hide old header elements (brand + hamburger button) */
.brand { display: none; }
.hamburger-btn { display: none; }
/* ===== END TOP BAR ===== */

/* ===== DESKTOP NAV ===== */
.desktop-nav {
  display: none; /* Hidden on mobile */
  gap: 10px;
  margin-right: 20px;
}
.desktop-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 70px;
  height: 58px;
  padding: 8px 6px 6px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.desktop-nav-btn .label {
  font-size: 9px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.desktop-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.desktop-nav-btn:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #14b8c6 100%);
  border-color: #074068;
}
.desktop-nav-btn:hover svg {
  stroke: #074068;
}
.desktop-nav-btn:hover .label {
  color: #074068;
}
.desktop-nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.desktop-nav-btn.active {
  background: #22d3ee;
  border: 2px solid #074068;
}
.desktop-nav-btn.active svg {
  stroke: #074068;
}
.desktop-nav-btn.active .label {
  color: #074068;
}

/* Show desktop nav on desktop devices only */
.desktop-device .desktop-nav {
  display: flex;
}

/* Narrow desktop - shrink logo and nav */
@media (max-width: 900px) {
  .desktop-device .top-bar-logo {
    font-size: 32px;
    letter-spacing: 2px;
  }
  .desktop-device .desktop-nav {
    gap: 6px;
    margin-right: 12px;
  }
  .desktop-device .desktop-nav-btn {
    width: 60px;
    height: 50px;
    padding: 6px 4px 4px;
  }
  .desktop-device .desktop-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  .desktop-device .desktop-nav-btn .label {
    font-size: 8px;
  }
  .desktop-device .desktop-menu {
    top: 90px;
  }
  .desktop-device .top-bar-right {
    gap: 10px;
  }
  .desktop-device .top-bar-greeting {
    font-size: 0.9rem;
  }
  .desktop-device .top-bar-dots {
    font-size: 1.4rem;
  }
}
@media (max-width: 700px) {
  .desktop-device .top-bar-logo {
    display: none;
  }
  .desktop-device .top-bar-right {
    flex: 1;
    justify-content: flex-end;
  }
}

/* ===== CONTENT NAV BAR ===== */
/* ===== CONTENT NAV - Ultra Compact Single Bar ===== */
.content-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  margin: 0 16px 20px 16px;
}
.content-nav-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.content-nav-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.content-nav-btn:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #14b8c6 100%);
  color: #074068;
  border-color: #074068;
}
.content-nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.content-nav-btn.active {
  background: #22d3ee;
  color: #074068;
  font-weight: 600;
  border: 2px solid #074068;
}
.content-nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
}
.content-nav-arrow {
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: #22d3ee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 12px;
}
.content-nav-arrow:hover {
  background: #22d3ee;
  color: #074068;
}
.content-nav-arrow:active {
  transform: scale(0.95);
}
.content-nav-label {
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
  color: #fff;
  min-width: 70px;
  text-align: center;
}

/* ===== BOTTOM NAV - Phase 2A ===== */
.bottom-nav {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  z-index: 1000;
}
.bottom-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 70px;
  height: 58px;
  padding: 8px 6px 6px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bottom-nav-btn .label {
  font-size: 9px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.bottom-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.bottom-nav-btn:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #14b8c6 100%);
  border-color: #074068;
}
.bottom-nav-btn:hover svg {
  stroke: #074068;
}
.bottom-nav-btn:hover .label {
  color: #074068;
}
.bottom-nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.bottom-nav-btn.active {
  background: #22d3ee;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
  border: 2px solid #074068;
}
.bottom-nav-btn.active svg {
  stroke: #074068;
}
.bottom-nav-btn.active .label {
  color: #074068;
}
/* Menu button active state when fan is open */
#bottomNavMenu.menu-open {
  background: #22d3ee;
  border-color: #074068;
}
#bottomNavMenu.menu-open svg {
  stroke: #074068;
}
#bottomNavMenu.menu-open .label {
  color: #074068;
}

/* Portrait phones and small tablets */
/* Show bottom nav on touch devices only */
.touch-device .bottom-nav {
  display: block;
}
.touch-device .main-content {
  padding-bottom: 100px;
}

/* Landscape phones - short height adjustment */
@media (max-height: 500px) {
  .touch-device .bottom-nav {
    bottom: 10px;
  }
  .touch-device .main-content {
    padding-bottom: 80px;
  }
  .touch-device .radial-menu {
    bottom: 70px;
  }
}
/* ===== END FLOATING NAV ===== */

/* ===== RADIAL SETTINGS MENU - ROTATION STYLE ===== */
.radial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; /* Invisible - just catches taps */
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
}
.radial-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== VERTICAL MENU STACK ===== */
/* Vertical menu fanning UP from right of nav bar */
.radial-menu {
  position: fixed;
  bottom: 90px;
  right: 20px; /* Default fallback, JS overrides */
  z-index: 1101;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.radial-menu.active {
  pointer-events: auto;
}

/* Menu buttons - rounded rectangles, vertical fan UP */
.menu-stack-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 175px;
  height: auto;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.menu-stack-btn .label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Staggered animation - Setup first (bottom), AI last (top) */
.menu-stack-btn:nth-child(1) { transition-delay: 0s; }    /* Setup - bottom */
.menu-stack-btn:nth-child(2) { transition-delay: 0.05s; } /* Markers */
.menu-stack-btn:nth-child(3) { transition-delay: 0.1s; }  /* Premium Pay */
.menu-stack-btn:nth-child(4) { transition-delay: 0.15s; } /* AI - top */

.menu-stack-btn svg {
  width: 18px;
  height: 18px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

/* When menu is active - buttons fan out */
.radial-menu.active .menu-stack-btn {
  opacity: 1;
  transform: scale(1);
}

/* Hover effect - cyan background, dark text/icon */
.menu-stack-btn:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #14b8c6 100%);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
  border-color: #074068;
}
.menu-stack-btn:hover svg {
  stroke: #074068;
}
.menu-stack-btn:hover .label {
  color: #074068;
}

/* Active/pressed state */
.menu-stack-btn:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* ===== END MENU ===== */

/* ===== DESKTOP MENU (fans DOWN from header) ===== */
.desktop-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1099;
}
.desktop-menu-overlay.show {
  display: block;
}
.desktop-menu {
  position: fixed;
  top: 105px;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  visibility: hidden;
  /* right value set by JS */
}
.desktop-menu.active {
  visibility: visible;
  pointer-events: auto;
}
.desktop-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 175px;
  height: auto;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.desktop-menu-btn .label {
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.desktop-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.desktop-menu.active .desktop-menu-btn {
  opacity: 1;
  transform: scale(1);
}
.desktop-menu-btn:nth-child(1) { transition-delay: 0s; }
.desktop-menu-btn:nth-child(2) { transition-delay: 0.05s; }
.desktop-menu-btn:nth-child(3) { transition-delay: 0.1s; }
.desktop-menu-btn:nth-child(4) { transition-delay: 0.15s; }
.desktop-menu-btn:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #14b8c6 100%);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
  border-color: #074068;
}
.desktop-menu-btn:hover svg {
  stroke: #074068;
}
.desktop-menu-btn:hover .label {
  color: #074068;
}
.desktop-menu-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Desktop menu hidden on touch devices via .desktop-device class */

/* Desktop Menu button active state when fan is open */
#desktopNavMenu.menu-open {
  background: #22d3ee;
  border-color: #074068;
}
#desktopNavMenu.menu-open svg {
  stroke: #074068;
}
#desktopNavMenu.menu-open .label {
  color: #074068;
}
/* ===== END DESKTOP MENU ===== */

/* ===== BETA UPDATES SYSTEM ===== */
.top-bar-dots-wrapper {
  position: relative;
  cursor: pointer;
}
.beta-notification-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 50%;
  border: 2px solid #0f172a;
  display: none;
  animation: betaPulse 2s ease-in-out infinite;
}
@keyframes betaPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}
.beta-updates-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22d3ee !important;
  font-weight: 500;
  position: relative;
}
.beta-updates-btn svg {
  stroke: #22d3ee;
}
.beta-updates-panel-btn {
  color: #4ade80 !important;
}
.beta-updates-panel-btn svg {
  stroke: #4ade80 !important;
}
.beta-menu-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: auto;
  display: none;
  border: 1px solid rgba(0,0,0,0.4);
  animation: betaPulse 2s ease-in-out infinite;
}
.beta-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #22d3ee;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 99999 !important;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.beta-toast.show {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.beta-toast-dot {
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 50%;
  flex-shrink: 0;
}
.beta-toast-text {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.beta-toast-text strong {
  color: #22d3ee;
}
.beta-toast-dismiss {
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  margin-left: 10px;
}
.beta-toast-dismiss:hover {
  color: #94a3b8;
}

/* Required Action pulse animation */
@keyframes requiredActionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.5); }
}
.required-action-pulse {
  animation: requiredActionPulse 1.5s ease-in-out infinite;
}
/* ===== END BETA UPDATES SYSTEM ===== */

/* ===== STAT BUBBLE HOVER LEDGER ===== */
.stat-ledger {
  position: fixed;
  background: linear-gradient(180deg, #1e3a4c 0%, #162d3a 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 200px;
  max-width: 260px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
}
.stat-ledger-header {
  font-size: 13px;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-ledger-row:last-child {
  border-bottom: none;
}
.stat-ledger-date {
  font-weight: 500;
}
.stat-ledger-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}
.stat-ledger-warning {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251,191,36,0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
.stat-ledger-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: #22d3ee;
  text-align: center;
}
.stat-ledger-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 10px 0;
}
.stat-ledger::-webkit-scrollbar {
  width: 6px;
}
.stat-ledger::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.stat-ledger::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.stat[data-ledger] {
  cursor: pointer;
}
/* ===== END STAT BUBBLE HOVER LEDGER ===== */

/* ===== HELP TOOLTIP SYSTEM ===== */
.help-label {
  cursor: pointer;
}
.help-label:hover {
  color: #22d3ee;
}
.help-label .help-q {
  font-size: inherit;
  color: #0891b2;
  margin-left: 4px;
}
.help-label:hover .help-q {
  color: #22d3ee;
}
.info-trigger {
  cursor: pointer;
}
.info-trigger:hover {
  color: #22d3ee;
}
.info-trigger .help-q {
  font-size: inherit;
  color: #7c3aed !important;
  margin-left: 4px;
}
.info-trigger:hover .help-q {
  color: #7c3aed;
}
.help-tooltip {
  position: fixed;
  background: linear-gradient(180deg, #1e3a4c 0%, #162d3a 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 200px;
  max-width: 280px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 10001;
  display: none;
}
.help-tooltip-header {
  font-size: 13px;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.help-tooltip-body {
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
}
.help-tooltip::-webkit-scrollbar {
  width: 6px;
}
.help-tooltip::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.help-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
/* ===== END HELP TOOLTIP SYSTEM ===== */

