@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --green: #004f4a;
  --green-light: #1a6b65;
  --green-pale: rgba(232, 245, 244, 0.7);
  --accent: #1a9a90;
  --bg: transparent;
  --surface: rgba(255, 255, 255, 0.6);
  --text: #1d1d1f;
  --text2: #515154;
  --border: rgba(0, 0, 0, 0.1);
  --danger: #ff3b30;
  --success: #34c759;
  --warning: #ff9500;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark {
  --surface: rgba(30, 30, 32, 0.65);
  --text: #f5f5f7;
  --text2: #a1a1a6;
  --border: rgba(255, 255, 255, 0.1);
  --green-pale: rgba(0, 79, 74, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }

/* ── Focus Visible — Keyboard Navigation ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Selection ── */
::selection { background: rgba(26,154,144,0.3); color: var(--text); }

/* ── Industrial Background ── */
body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2940&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 79, 74, 0.8) 0%, rgba(13, 18, 16, 0.9) 100%);
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 24, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader-content {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }

/* ── Toast Notification System ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s cubic-bezier(0.16,1,0.3,1);
  transition: all 0.3s ease;
  cursor: pointer;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-success { background: rgba(52,199,89,0.9); }
.toast-error { background: rgba(255,59,48,0.9); }
.toast-info { background: rgba(0,79,74,0.9); }
.toast-warning { background: rgba(255,149,0,0.9); }
@keyframes toastIn { from { opacity:0; transform:translateX(100px) scale(0.8); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes toastOut { to { opacity:0; transform:translateX(100px) scale(0.8); } }

/* ── Skeleton Shimmer ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Page Transitions ── */
.page-enter { animation: pageEnter 0.35s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes pageEnter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Ripple Effect ── */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── Input Shake Animation ── */
.input-shake { animation: inputShake 0.4s ease; }
@keyframes inputShake { 0%,100% { transform:translateX(0); } 20%,60% { transform:translateX(-6px); } 40%,80% { transform:translateX(6px); } }

/* ── Input Success Glow ── */
.input-success { border-color: var(--success) !important; box-shadow: 0 0 0 3px rgba(52,199,89,0.15) !important; }

/* ── Password Toggle ── */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--accent); }

/* ── macOS Window Container ── */
.mac-window {
  width: 98vw;
  max-width: 1800px;
  height: 94vh;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: windowAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .mac-window {
  background: rgba(40, 40, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

@keyframes windowAppear {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mac-titlebar {
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
}

body.dark .mac-titlebar {
  background: rgba(0, 0, 0, 0.2);
}

.mac-buttons {
  display: flex;
  gap: 8px;
  width: 60px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.mac-btn.close { background: #ff5f56; }
.mac-btn.min { background: #ffbd2e; }
.mac-btn.max { background: #27c93f; }

.mac-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-right: 60px; /* Balance the buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Layout inside Window ── */
.layout { 
  display: flex; 
  flex: 1; 
  min-height: 0; 
}

.sidebar {
  width: 280px; 
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.4);
  border-right: 1px solid var(--border);
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  padding: 24px 16px; 
  height: 100%;
}

body.dark .sidebar {
  background: rgba(0, 0, 0, 0.15);
}

.main { 
  flex: 1; 
  padding: 36px 48px; 
  overflow-y: auto;
}

@media(max-width:768px) {
  .mac-window { width: 100vw; height: 100vh; border-radius: 0; margin: 0; }
  .sidebar { position: absolute; left: 0; top: 48px; bottom: 0; transform: translateX(-100%); z-index: 30; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,.15); }
  .main { padding: 24px 20px; }
  .mob-menu-btn { display: block !important; }
}

.mob-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); position: absolute; left: 80px; }

/* ── Sidebar Items ── */
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 0 8px; }
.brand-badge { background: linear-gradient(135deg, var(--green), var(--green-light)); color: #fff; padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.brand-name { font-size: 15px; font-weight: 600; color: var(--text); }

.nav-section { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 8px 8px; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  font-weight: 500; color: var(--text); cursor: pointer;
  transition: all .2s ease; border: none; background: none; width: 100%;
  margin-bottom: 2px; text-align: left;
  min-height: 40px;
  position: relative;
}
.nav-link:hover { background: rgba(0,0,0,0.05); transform: translateX(2px); }
body.dark .nav-link:hover { background: rgba(255,255,255,0.05); }

.nav-link.active { background: var(--green); color: white; box-shadow: 0 2px 5px rgba(0, 79, 74, 0.3); transform: translateX(0); }
.nav-link.active svg { color: white; }
.nav-link svg { flex-shrink: 0; color: var(--green); transition: transform 0.2s; }
.nav-link:hover svg { transform: scale(1.1); }
body.dark .nav-link svg { color: var(--accent); }
body.dark .nav-link.active svg { color: white; }

.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; }

/* ── Cards & Stats ── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card { display: flex; align-items: center; gap: 16px; }
.stat-icon { padding: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; border: none; min-height: 40px; }
.btn-primary { background: linear-gradient(180deg, var(--green-light), var(--green)); color: #fff; box-shadow: 0 2px 4px rgba(0, 79, 74, 0.2), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 79, 74, 0.35); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); transform: translateY(-1px); }
body.dark .btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-danger { background: rgba(255,59,48,.1); color: var(--danger); }
.btn-danger:hover { background: rgba(255,59,48,.2); transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; min-height: 32px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Button Loading Spinner ── */
.btn-loading { pointer-events: none; position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.5);
  color: var(--text); font-size: 13px; transition: all .25s ease;
  min-height: 42px;
}
body.dark .form-control { background: rgba(0,0,0,0.2); }
.form-control:hover { border-color: rgba(0,79,74,0.3); }
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 79, 74, 0.1); background: rgba(255,255,255,0.65); }
body.dark .form-control:focus { background: rgba(0,0,0,0.3); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-control::placeholder { color: var(--text2); opacity: 0.5; transition: opacity 0.2s; }
.form-control:focus::placeholder { opacity: 0.3; }

/* ── Progress ── */
.progress-wrap { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 99px; transition: width .4s ease; }

/* ── Project Grid ── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.proj-card { cursor: pointer; display: flex; flex-direction: column; }
.proj-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.proj-icon { background: var(--green-pale); padding: 8px; border-radius: 8px; color: var(--green); }
.proj-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.proj-desc { font-size: 13px; color: var(--text2); margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Task ── */
.task-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); transition: all .2s; margin-bottom: 8px; }
.task-item:hover { border-color: var(--green); }
.task-check { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; }
.task-title { font-size: 13px; font-weight: 500; transition: all .2s; }
.task-title.done { text-decoration: line-through; color: var(--text2); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid var(--border); box-shadow: 0 25px 50px rgba(0,0,0,0.3); border-radius: 16px; padding: 32px; width: 100%; max-width: 440px; transform: scale(0.95); transition: transform .25s; }
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 24px; }

/* ── Auth Screen (Standalone Mac Window) ── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-mac-window {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
  animation: windowAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .auth-mac-window {
  background: rgba(40, 40, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-content {
  padding: 40px 32px;
}

.auth-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 20px rgba(0,79,74,0.3);
}

.alert { padding: 10px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 16px; border: 1px solid currentColor; }
.alert-error { background: rgba(255,59,48,.1); color: var(--danger); }
.alert-success { background: rgba(52,199,89,.1); color: var(--success); }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.page-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ── Admin Controls ── */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin form.admin-only { display: flex !important; }
body.is-admin div.admin-only { display: block !important; }

/* ── Tables & Badges ── */
.table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; }
th { text-align: left; padding: 14px 16px; background: rgba(0,0,0,0.03); color: var(--text2); font-weight: 600; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--border); transition: background 0.2s; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,79,74,0.04); }
body.dark tr:hover td { background: rgba(255,255,255,0.03); }
body.dark th { background: rgba(255,255,255,0.03); }

.badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-paid { background: rgba(52,199,89,0.1); color: var(--success); }
.badge-unpaid { background: rgba(255,59,48,0.1); color: var(--danger); }

/* ── Announcement Slider ── */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0,79,74,0.15) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(0,79,74,0.25);
  min-height: 180px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
  min-width: 100%;
  padding: 32px;
  box-sizing: border-box;
}

.slider-slide .slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.slider-slide .slide-badge.info { background: rgba(0,79,74,0.3); color: var(--accent); }
.slider-slide .slide-badge.danger { background: rgba(255,59,48,0.15); color: var(--danger); }
.slider-slide .slide-badge.warning { background: rgba(255,149,0,0.15); color: var(--warning); }

.slider-slide .slide-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.slider-slide .slide-content {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.slider-slide .slide-date {
  font-size: 11px;
  color: var(--text2);
  opacity: 0.6;
  margin-top: 16px;
}

.slider-nav {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  box-sizing: border-box;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.2s ease;
  font-size: 16px;
}

.slider-arrow:hover {
  background: rgba(0,79,74,0.6);
  transform: scale(1.1);
}

/* ── Welcome Hero ── */
.welcome-hero {
  background: linear-gradient(135deg, rgba(0,79,74,0.3) 0%, rgba(26,107,101,0.15) 50%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(0,79,74,0.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,79,74,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-hero p {
  font-size: 13px;
  color: var(--text2);
}

.welcome-time {
  font-size: 11px;
  color: var(--text2);
  opacity: 0.7;
  background: rgba(0,0,0,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Premium Stat Cards ── */
.stat-card-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.stat-card-premium .stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-card-premium .stat-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-premium .stat-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

/* ── Staggered Animations ── */
.stagger-1 { animation: fadeSlideUp 0.5s ease-out 0.05s both; }
.stagger-2 { animation: fadeSlideUp 0.5s ease-out 0.1s both; }
.stagger-3 { animation: fadeSlideUp 0.5s ease-out 0.15s both; }
.stagger-4 { animation: fadeSlideUp 0.5s ease-out 0.2s both; }
.stagger-5 { animation: fadeSlideUp 0.5s ease-out 0.25s both; }

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

/* ── Section Label ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 36px;
}

.section-label h2 {
  font-size: 17px;
  font-weight: 700;
}

.section-label .section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Mobile Header ── */
.mob-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(30,30,32,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
}

@media(max-width:768px) {
  .mob-header { display: flex; }
  .mac-titlebar { display: none; }
  .mac-window { margin-top: 52px; height: calc(100vh - 52px); }
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn-sm { min-height: 36px; }
  .form-control { min-height: 44px; font-size: 16px; }
  .nav-link { min-height: 44px; padding: 12px 14px; }
  .toast-container { top: auto; bottom: 20px; left: 12px; right: 12px; }
  .toast { min-width: auto; width: 100%; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Confirmation Dialog ── */
.confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.2s ease;
}
.confirm-box {
  background: var(--surface);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: windowAppear 0.3s cubic-bezier(0.16,1,0.3,1);
}
.confirm-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.confirm-box p { font-size: 13px; color: var(--text2); margin-bottom: 24px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .btn { flex: 1; }

