/* ===== Cupido Agency - SFS Manager v6.0 ===== */
/* Ultra Professional PWA - iPhone 13-17 Optimized - Premium Design */
/* Supports: Dynamic Island, ProMotion, Face ID sensors */

:root {
  /* Cupido Brand Colors */
  --cupido-blue: #2AABEE;
  --cupido-blue-dark: #1E96D4;
  --cupido-blue-light: #5BC4F5;
  --cupido-gradient: linear-gradient(135deg, #2AABEE 0%, #1E96D4 100%);
  --cupido-gradient-hover: linear-gradient(135deg, #1E96D4 0%, #1785C0 100%);
  
  /* Neutral Palette - Apple-inspired */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d2d2d7;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-600: #1d1d1f;
  
  /* Semantic Colors */
  --success: #30D158;
  --success-bg: rgba(48, 209, 88, 0.12);
  --warning: #FF9F0A;
  --warning-bg: rgba(255, 159, 10, 0.12);
  --danger: #FF453A;
  --danger-bg: rgba(255, 69, 58, 0.12);
  --info: #0A84FF;
  --info-bg: rgba(10, 132, 255, 0.12);
  --purple: #BF5AF2;
  --purple-bg: rgba(191, 90, 242, 0.12);
  --cyan: #64D2FF;
  --cyan-bg: rgba(100, 210, 255, 0.12);
  
  /* Primary */
  --primary: var(--cupido-blue);
  --primary-bg: rgba(42, 171, 238, 0.12);
  
  /* Typography - SF Pro inspired */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  
  /* Spacing - 8pt grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  
  /* Border Radius - Apple style */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Shadows - Premium depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16), 0 8px 16px rgba(0,0,0,0.08);
  
  /* Layout - iPhone 13-17 optimized */
  --header-h: 60px;
  --nav-h: 88px;
  --safe-bottom: env(safe-area-inset-bottom, 34px);
  --safe-top: env(safe-area-inset-top, 47px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  
  /* Dynamic Island detection (iPhone 14 Pro+) */
  --dynamic-island-height: 0px;
  
  /* Touch targets - Apple HIG minimum 44pt */
  --touch-target: 44px;
  --touch-target-lg: 48px;
  
  /* Container widths */
  --max-width: 1200px;
  --content-width: 640px;
  
  /* Animation - ProMotion 120Hz optimized */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Timing */
  --duration-instant: 50ms;
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
}

/* ===== iPhone Model Support ===== */
/* iPhone 13/14 (notch) */
@supports (padding: max(0px)) {
  :root {
    --safe-top: max(env(safe-area-inset-top, 47px), 47px);
    --safe-bottom: max(env(safe-area-inset-bottom, 34px), 34px);
  }
}

/* iPhone 14 Pro/15/16/17 (Dynamic Island) */
@media screen and (device-width: 393px) and (device-height: 852px),
       screen and (device-width: 430px) and (device-height: 932px) {
  :root {
    --dynamic-island-height: 37px;
    --safe-top: 59px;
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-600);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:active {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent zoom on iOS */
@supports (-webkit-touch-callout: none) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ===== Utilities ===== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Splash Screen ===== */
.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--cupido-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  padding: var(--space-5);
}

.splash-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-6);
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  animation: pulse 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.splash-content h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.splash-content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-8);
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: dot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== App Container ===== */
.app-container {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Login Page ===== */
.page {
  display: none;
  height: 100%;
}

.page.active {
  display: flex;
  flex-direction: column;
}

.login-page {
  background: var(--gray-100);
}

.login-header-bar {
  background: var(--cupido-gradient);
  padding: calc(var(--safe-top) + var(--space-8)) var(--space-5) var(--space-10);
  text-align: center;
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.login-header-bar::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  backdrop-filter: blur(10px);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-header-bar h1 {
  color: white;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: var(--space-1);
}

.login-header-bar p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}

.login-container {
  flex: 1;
  padding: var(--space-8) var(--space-5);
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding-left: var(--space-1);
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.input-wrapper input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) 48px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s var(--ease-out);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.input-wrapper input:focus + i,
.input-wrapper:focus-within i {
  color: var(--primary);
}

.input-wrapper input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease-out);
  min-height: 48px;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--cupido-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.35);
}

.btn-primary:hover {
  background: var(--cupido-gradient-hover);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.45);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #28C84D;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

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

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  padding: var(--space-2);
  min-height: auto;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  background: transparent;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

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

.login-footer {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  margin-top: var(--space-6);
}

.login-footer p {
  color: var(--gray-500);
  font-size: 14px;
}

.login-footer a {
  font-weight: 600;
}

/* ===== Main App ===== */
.main-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
}

/* ===== Header ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--safe-top) + var(--space-3));
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  min-height: calc(var(--header-h) + var(--safe-top));
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  width: 36px;
  height: 36px;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: -0.3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.notification-btn {
  position: relative;
}

.notification-btn::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
  display: none;
}

.notification-btn.has-notifications::after {
  display: block;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cupido-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.user-avatar:active {
  transform: scale(0.95);
}

/* ===== Side Menu ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: calc(100vw - 60px);
  background: var(--white);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.side-menu.open {
  transform: translateX(0);
}

.menu-header {
  padding: calc(var(--safe-top) + var(--space-4)) var(--space-4) var(--space-4);
  background: var(--cupido-gradient);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.menu-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#menu-user-name {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-header .btn-icon {
  color: white;
}

.menu-header .btn-icon:hover {
  background: rgba(255,255,255,0.15);
}

.menu-items {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  overflow-y: auto;
  list-style: none;
}

.menu-items li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.menu-items li i {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.menu-items li:hover {
  background: var(--gray-50);
  color: var(--gray-600);
}

.menu-items li.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.menu-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Role-based menu visibility */
body.role-model .admin-only,
body.role-model .admin-employee,
body.role-employee .admin-only,
body.role-employee .model-only,
body.role-admin .model-only,
body.role-admin .employee-only {
  display: none !important;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--space-4));
}

.section {
  display: none;
  max-width: var(--content-width);
  margin: 0 auto;
  animation: fadeIn 0.3s var(--ease-out);
}

.section.active {
  display: block;
}

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

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-out);
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: var(--space-3);
}

.stat-icon.blue { background: var(--primary-bg); color: var(--primary); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
  color: var(--gray-600);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ===== Quick Stats Row ===== */
.quick-stats-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.quick-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--cupido-gradient);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: white;
  box-shadow: var(--shadow-sm);
}

.quick-stat i {
  font-size: 20px;
  opacity: 0.9;
  width: 24px;
  text-align: center;
}

.quick-stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.quick-stat-label {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: -0.3px;
}

.link-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== Section Actions ===== */
.section-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box i {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 44px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  color: var(--gray-600);
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm), 0 0 0 4px var(--primary-bg);
}

.search-box input::placeholder {
  color: var(--gray-400);
}

/* ===== Tabs ===== */
.tabs-container {
  margin-bottom: var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: calc(var(--space-4) * -1);
  margin-right: calc(var(--space-4) * -1);
  padding: 0 var(--space-4);
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tabs {
  display: inline-flex;
  background: var(--white);
  padding: var(--space-1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  gap: var(--space-1);
}

.tab {
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}

.tab:hover {
  color: var(--gray-600);
  background: var(--gray-50);
}

.tab.active {
  background: var(--cupido-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.3);
}

/* ===== Filter Selects ===== */
.filter-selects {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.filter-group label i {
  font-size: 12px;
}

.filter-group select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 var(--space-3);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

/* ===== Promo Stats Summary ===== */
.promo-stats-summary {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--cupido-gradient);
  border-radius: var(--radius);
  color: white;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
}

.mini-stat {
  flex: 1;
  text-align: center;
}

.mini-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.mini-stat-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Cards ===== */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.card:active {
  transform: scale(0.98);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 2px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  color: var(--gray-400);
}

.card-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Status badges */
.badge-draft { background: var(--gray-200); color: var(--gray-500); }
.badge-pending, .badge-pending_review, .badge-pending_approval { background: var(--warning-bg); color: #B45309; }
.badge-payment, .badge-pending_payment { background: var(--purple-bg); color: #7C3AED; }
.badge-publish, .badge-pending_publish { background: var(--info-bg); color: #1D4ED8; }
.badge-scheduled { background: var(--cyan-bg); color: #0891B2; }
.badge-approved { background: var(--info-bg); color: #1D4ED8; }
.badge-active { background: var(--primary-bg); color: var(--cupido-blue-dark); }
.badge-completed { background: var(--success-bg); color: #15803D; }
.badge-cancelled, .badge-rejected { background: var(--danger-bg); color: #B91C1C; }

.card-badge.large {
  padding: var(--space-2) var(--space-4);
  font-size: 12px;
}

.card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}

.card-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}

/* ===== Member Cards ===== */
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  margin-bottom: var(--space-3);
}

.member-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.member-card:active {
  transform: scale(0.98);
}

.member-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.member-avatar.role-admin { background: var(--cupido-gradient); }
.member-avatar.role-employee { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.member-avatar.role-model { background: linear-gradient(135deg, #EC4899, #DB2777); }

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-400);
}

.member-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.member-role-badge.admin { background: var(--primary-bg); color: var(--cupido-blue-dark); }
.member-role-badge.employee { background: var(--purple-bg); color: #7C3AED; }
.member-role-badge.model { background: rgba(236, 72, 153, 0.12); color: #BE185D; }

/* ===== Promo Items (Dashboard) ===== */
.promo-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.promo-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.promo-item:hover {
  box-shadow: var(--shadow-sm);
}

.promo-item:active {
  transform: scale(0.98);
}

.promo-date {
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-date-day {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-600);
  line-height: 1;
}

.promo-date-month {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
}

.promo-info {
  flex: 1;
  min-width: 0;
}

.promo-model {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-time {
  font-size: 12px;
  color: var(--gray-400);
}

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

.promo-status.pending_review,
.promo-status.pending_approval,
.promo-status.pending { background: var(--warning); }
.promo-status.pending_payment { background: var(--purple); }
.promo-status.pending_publish { background: var(--info); }
.promo-status.scheduled { background: var(--cyan); }
.promo-status.approved { background: var(--info); }
.promo-status.active { background: var(--cupido-blue); }
.promo-status.completed { background: var(--success); }
.promo-status.rejected,
.promo-status.cancelled { background: var(--danger); }

/* ===== Payment Summary ===== */
.payment-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.summary-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.summary-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: -0.5px;
}

.summary-value.pending {
  color: var(--warning);
}

/* ===== Payments List ===== */
.payments-list {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.payment-item {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

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

.payment-item:active {
  background: var(--gray-50);
}

.payment-info {
  min-width: 0;
}

.payment-model {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.payment-date {
  font-size: 13px;
  color: var(--gray-400);
}

.payment-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}

/* ===== Payments By Person ===== */
.payments-by-person {
  margin-bottom: var(--space-5);
}

.person-payment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.person-payment-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.person-payment-card:active {
  transform: scale(0.98);
}

.person-payment-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.person-payment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.person-payment-avatar.role-model { background: linear-gradient(135deg, #EC4899, #DB2777); }
.person-payment-avatar.role-employee { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.person-payment-avatar.role-admin { background: var(--cupido-gradient); }

.person-payment-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.person-payment-details span {
  font-size: 12px;
  color: var(--gray-400);
}

.person-payment-amount {
  text-align: right;
}

.person-payment-amount .amount {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 2px;
}

.person-payment-amount .count {
  font-size: 11px;
  color: var(--gray-400);
}

/* ===== Calendar ===== */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.calendar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-600);
}

.calendar-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  padding: var(--space-2) 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  cursor: default;
  transition: all 0.2s;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.today {
  background: var(--primary-bg);
  color: var(--cupido-blue);
  font-weight: 700;
}

.calendar-day.has-promos {
  background: var(--cupido-gradient);
  color: white;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.3);
}

.calendar-day.has-promos:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.calendar-day .day-number {
  line-height: 1;
}

.calendar-day .promo-count {
  position: absolute;
  bottom: 3px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.9;
}

/* Upcoming promos */
.upcoming-promos {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-200);
}

.upcoming-promos h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: var(--space-3);
}

.upcoming-promo-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: all 0.2s;
}

.upcoming-promo-item:hover {
  background: var(--primary-bg);
}

.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
  padding: var(--space-2) var(--space-3);
  background: var(--cupido-gradient);
  border-radius: var(--radius-xs);
  color: white;
}

.upcoming-date .day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.upcoming-date .month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.upcoming-info {
  flex: 1;
}

.upcoming-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.upcoming-detail {
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Settings ===== */
.settings-group {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.settings-group h3 {
  padding: var(--space-3) var(--space-4);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.setting-item {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}

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

.setting-item.clickable {
  cursor: pointer;
  transition: background 0.2s;
}

.setting-item.clickable:active {
  background: var(--gray-50);
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.setting-desc {
  font-size: 13px;
  color: var(--gray-400);
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s var(--ease-out);
}

.toggle input:checked + .toggle-slider {
  background: var(--cupido-gradient);
}

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

.toggle input:focus + .toggle-slider {
  box-shadow: 0 0 0 4px var(--primary-bg);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(4px);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - var(--safe-top) - 40px);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  padding-bottom: var(--safe-bottom);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-large {
  max-height: calc(100vh - var(--safe-top) - 20px);
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
    padding: var(--space-5);
  }
  
  .modal-content {
    border-radius: var(--radius-xl);
    max-height: calc(100vh - 80px);
    padding-bottom: 0;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-600);
}

.modal-body {
  padding: var(--space-5);
}

.modal-form {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Form elements in modal */
.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--gray-600);
  transition: all 0.2s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: var(--gray-400);
}

.modal-form textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.input-readonly {
  background: var(--gray-50) !important;
  color: var(--gray-500) !important;
}

/* Form Error States */
.input-error,
.modal-form input.input-error,
.modal-form select.input-error,
.modal-form textarea.input-error {
  border-color: var(--danger) !important;
  background: var(--danger-bg) !important;
}

.input-error:focus {
  box-shadow: 0 0 0 4px var(--danger-bg) !important;
}

.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  animation: shake 0.3s var(--ease-out);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Skeleton card styles */
.skeleton-card {
  padding: var(--space-4);
  pointer-events: none;
}

.skeleton-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

/* Dynamic Island support */
body.has-dynamic-island .app-header {
  padding-top: calc(59px + var(--space-3));
}

body.has-dynamic-island .login-header-bar {
  padding-top: calc(59px + var(--space-8));
}

body.has-dynamic-island .side-menu .menu-header {
  padding-top: calc(59px + var(--space-4));
}

.form-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.form-help {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: var(--space-1);
}

.role-fields {
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-top: var(--space-2);
}

/* Admin-only form fields */
.admin-only-form {
  display: none;
}

body.role-admin .admin-only-form {
  display: block;
}

/* ===== Profile Modal ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.profile-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.profile-section {
  margin-bottom: var(--space-5);
}

.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

/* OF Account Items */
.of-accounts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.of-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.of-account-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.of-account-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00AFF0, #009BD6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.of-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.of-account-url {
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Detail Sections ===== */
.detail-section {
  margin-bottom: var(--space-5);
}

.detail-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
}

.detail-value.large {
  font-size: 20px;
  font-weight: 700;
}

.detail-value.success { color: var(--success); }
.detail-value.warning { color: var(--warning); }

.detail-notes {
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.progress-fill {
  height: 100%;
  background: var(--cupido-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}

/* Status timeline */
.status-timeline {
  display: flex;
  justify-content: center;
  margin: var(--space-3) 0;
}

/* Publish date display */
.publish-date-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--primary-bg);
  border-radius: var(--radius);
  color: var(--cupido-blue);
  font-size: 16px;
  font-weight: 600;
}

.publish-date-display i {
  font-size: 24px;
}

/* Payment proof images */
.payment-proof-images {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.payment-proof-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: all 0.2s;
}

.payment-proof-images img:hover {
  border-color: var(--cupido-blue);
  transform: scale(1.05);
}

/* Promo actions in modal */
.promo-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + var(--space-4));
  left: var(--space-4);
  right: var(--space-4);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  opacity: 0;
  animation: toastIn 0.3s var(--ease-out) forwards;
  pointer-events: auto;
}

.toast.hiding {
  animation: toastOut 0.3s var(--ease-out) forwards;
}

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

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

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast.error .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast.warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast.info .toast-icon { background: var(--info-bg); color: var(--info); }

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.toast-message {
  font-size: 13px;
  color: var(--gray-400);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  padding: var(--space-2) var(--space-3);
  padding-bottom: calc(var(--space-2) + var(--safe-bottom));
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-2);
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  min-height: 56px;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.2s var(--spring);
}

.nav-item:active {
  background: var(--gray-100);
}

.nav-item:active i {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: scale(1.1);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-5);
}

.empty-state i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.empty-state p {
  color: var(--gray-400);
  font-size: 15px;
  margin-bottom: var(--space-5);
}

/* ===== Desktop Styles ===== */
@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
  
  .main-content {
    padding-bottom: var(--space-6);
  }
  
  .side-menu {
    transform: translateX(0);
    box-shadow: none;
    border-right: 1px solid var(--gray-200);
  }
  
  .menu-overlay {
    display: none;
  }
  
  .main-app {
    margin-left: 280px;
  }
  
  .app-header {
    margin-left: 280px;
  }
  
  #menu-toggle {
    display: none;
  }
}

/* ===== DARK MODE ===== */
body.dark-mode {
  --gray-50: #0d1117;
  --gray-100: #161b22;
  --gray-200: #21262d;
  --gray-300: #30363d;
  --gray-400: #8b949e;
  --gray-500: #b1bac4;
  --gray-600: #f0f6fc;
  
  --success: #3fb950;
  --success-bg: rgba(63, 185, 80, 0.15);
  --warning: #d29922;
  --warning-bg: rgba(210, 153, 34, 0.15);
  --danger: #f85149;
  --danger-bg: rgba(248, 81, 73, 0.15);
  --info: #58a6ff;
  --info-bg: rgba(88, 166, 255, 0.15);
  --purple: #a371f7;
  --purple-bg: rgba(163, 113, 247, 0.15);
  --cyan: #79c0ff;
  --cyan-bg: rgba(121, 192, 255, 0.15);
  
  --primary-bg: rgba(42, 171, 238, 0.2);
  
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(42, 171, 238, 0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(42, 171, 238, 0.1);
  --shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 1px rgba(42, 171, 238, 0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(42, 171, 238, 0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.7), 0 0 40px rgba(42, 171, 238, 0.15);
}

body.dark-mode {
  background: var(--gray-100);
}

/* Dark mode - Splash & Login */
body.dark-mode .splash-screen {
  background: linear-gradient(135deg, var(--gray-100) 0%, #0a0d12 100%);
}

body.dark-mode .splash-logo {
  background: rgba(42, 171, 238, 0.2);
  box-shadow: 0 0 40px rgba(42, 171, 238, 0.4);
}

body.dark-mode .login-page {
  background: var(--gray-100);
}

body.dark-mode .login-header-bar {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

body.dark-mode .login-logo {
  background: rgba(42, 171, 238, 0.2);
  box-shadow: 0 0 30px rgba(42, 171, 238, 0.3);
}

/* Dark mode - Header */
body.dark-mode .app-header {
  background: rgba(13, 17, 23, 0.85);
  border-bottom-color: rgba(42, 171, 238, 0.1);
}

body.dark-mode .user-avatar {
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.4);
}

/* Dark mode - Menu */
body.dark-mode .side-menu {
  background: var(--gray-50);
  box-shadow: var(--shadow-xl);
}

body.dark-mode .menu-header {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.15) 0%, rgba(30, 150, 212, 0.2) 100%);
}

body.dark-mode .menu-avatar {
  background: rgba(42, 171, 238, 0.3);
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.3);
}

body.dark-mode .menu-items li:hover {
  background: var(--gray-200);
}

body.dark-mode .menu-items li.active {
  background: rgba(42, 171, 238, 0.15);
}

body.dark-mode .menu-footer {
  border-top-color: var(--gray-300);
}

body.dark-mode .menu-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Dark mode - Quick Stats */
body.dark-mode .quick-stat {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.25) 0%, rgba(30, 150, 212, 0.35) 100%);
  border: 1px solid rgba(42, 171, 238, 0.3);
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.15);
}

/* Dark mode - Cards */
body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .summary-card,
body.dark-mode .member-card,
body.dark-mode .promo-item,
body.dark-mode .person-payment-card {
  background: var(--gray-50);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
}

body.dark-mode .card:hover,
body.dark-mode .member-card:hover,
body.dark-mode .person-payment-card:hover {
  border-color: var(--cupido-blue);
  box-shadow: var(--shadow), 0 0 20px rgba(42, 171, 238, 0.1);
}

/* Dark mode - Inputs */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-600);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  background: var(--gray-100);
  border-color: var(--cupido-blue);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.2);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--gray-400);
}

body.dark-mode .search-box input {
  background: var(--gray-200);
}

/* Dark mode - Filter selects */
body.dark-mode .filter-group select {
  background-color: var(--gray-200);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Dark mode - Tabs */
body.dark-mode .tabs {
  background: var(--gray-200);
}

body.dark-mode .tab {
  color: var(--gray-400);
}

body.dark-mode .tab:hover {
  background: var(--gray-300);
  color: var(--gray-500);
}

body.dark-mode .tab.active {
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.4);
}

/* Dark mode - Promo stats */
body.dark-mode .promo-stats-summary {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.2) 0%, rgba(30, 150, 212, 0.3) 100%);
  border: 1px solid rgba(42, 171, 238, 0.3);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.2);
}

/* Dark mode - Badges glow */
body.dark-mode .card-badge {
  box-shadow: 0 0 10px currentColor;
}

/* Dark mode - Stat icons glow */
body.dark-mode .stat-icon {
  box-shadow: 0 0 15px currentColor;
}

/* Dark mode - Avatars glow */
body.dark-mode .member-avatar,
body.dark-mode .person-payment-avatar {
  box-shadow: 0 0 15px currentColor;
}

/* Dark mode - Buttons */
body.dark-mode .btn-outline {
  border-color: var(--gray-300);
  color: var(--gray-500);
}

body.dark-mode .btn-outline:hover {
  border-color: var(--cupido-blue);
  color: var(--cupido-blue);
  box-shadow: 0 0 15px rgba(42, 171, 238, 0.3);
}

body.dark-mode .btn-primary {
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4);
}

body.dark-mode .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(42, 171, 238, 0.5);
}

body.dark-mode .btn-icon:hover {
  background: var(--gray-200);
}

/* Dark mode - Settings */
body.dark-mode .settings-group {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
}

body.dark-mode .settings-group h3 {
  background: var(--gray-200);
}

body.dark-mode .setting-item {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .setting-item.clickable:hover {
  background: var(--gray-200);
}

body.dark-mode .toggle-slider {
  background: var(--gray-300);
}

/* Dark mode - Lists */
body.dark-mode .payments-list {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
}

body.dark-mode .payment-item {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .payment-item:active {
  background: var(--gray-200);
}

/* Dark mode - Calendar */
body.dark-mode .calendar-container {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
}

body.dark-mode .calendar-day.today {
  background: rgba(42, 171, 238, 0.2);
}

body.dark-mode .calendar-day.has-promos {
  box-shadow: 0 2px 12px rgba(42, 171, 238, 0.4);
}

body.dark-mode .upcoming-promos {
  border-top-color: var(--gray-300);
}

body.dark-mode .upcoming-promo-item {
  background: var(--gray-200);
}

body.dark-mode .upcoming-promo-item:hover {
  background: rgba(42, 171, 238, 0.15);
}

/* Dark mode - Modal */
body.dark-mode .modal {
  background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .modal-content {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
}

body.dark-mode .modal-header {
  background: var(--gray-50);
  border-bottom-color: var(--gray-300);
}

body.dark-mode .modal-actions {
  background: var(--gray-100);
  border-top-color: var(--gray-300);
}

body.dark-mode .form-section-title {
  border-top-color: var(--gray-300);
}

body.dark-mode .role-fields {
  background: var(--gray-200);
}

/* Dark mode - Profile sections */
body.dark-mode .of-account-item,
body.dark-mode .detail-notes {
  background: var(--gray-200);
}

body.dark-mode .publish-date-display {
  background: rgba(42, 171, 238, 0.2);
  border: 1px solid rgba(42, 171, 238, 0.3);
}

body.dark-mode .payment-proof-images img {
  border-color: var(--gray-300);
}

body.dark-mode .payment-proof-images img:hover {
  border-color: var(--cupido-blue);
}

/* Dark mode - Progress bar */
body.dark-mode .progress-bar {
  background: var(--gray-300);
}

body.dark-mode .progress-fill {
  box-shadow: 0 0 10px rgba(42, 171, 238, 0.5);
}

/* Dark mode - Toast */
body.dark-mode .toast {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
}

/* Dark mode - Bottom nav */
body.dark-mode .bottom-nav {
  background: rgba(13, 17, 23, 0.9);
  border-top-color: rgba(42, 171, 238, 0.1);
}

body.dark-mode .nav-item:active {
  background: var(--gray-200);
}

body.dark-mode .nav-item.active {
  color: var(--cupido-blue);
  text-shadow: 0 0 10px rgba(42, 171, 238, 0.5);
}

body.dark-mode .nav-item.active i {
  filter: drop-shadow(0 0 8px rgba(42, 171, 238, 0.6));
}

/* Dark mode - Promo status glow */
body.dark-mode .promo-status {
  box-shadow: 0 0 8px currentColor;
}

/* Dark mode - Empty state */
body.dark-mode .empty-state i {
  color: var(--gray-400);
  text-shadow: 0 0 20px rgba(42, 171, 238, 0.3);
}

/* ===== Transitions ===== */
body,
.card, .stat-card, .summary-card, .member-card,
.settings-group, .modal-content, .app-header, 
.bottom-nav, .side-menu, .toast, .promo-item,
.payments-list, .person-payment-card,
.calendar-container, .tabs {
  transition: background-color 0.3s var(--ease-out), 
              box-shadow 0.3s var(--ease-out), 
              border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--cupido-blue);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ===== MICROINTERACTIONS & HAPTIC FEEDBACK ===== */

/* Button press effect - simulates haptic feedback */
.btn:active,
.card:active,
.member-card:active,
.promo-item:active,
.nav-item:active,
.tab:active,
.setting-item.clickable:active {
  transform: scale(0.97);
  transition: transform 0.05s var(--ease-out);
}

/* Smooth hover lift effect */
.card:hover,
.member-card:hover,
.person-payment-card:hover,
.promo-item:hover {
  transform: translateY(-2px);
  transition: all var(--duration-normal) var(--spring);
}

/* Ripple effect on buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--duration-fast), transform var(--duration-normal);
}

.btn:active::after {
  opacity: 1;
  transform: scale(2);
}

/* Pull-to-refresh indicator styling */
.pull-indicator {
  position: fixed;
  top: var(--safe-top);
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 32px;
  height: 32px;
  background: var(--cupido-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1000;
  transition: transform var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow);
}

.pull-indicator.visible {
  transform: translateX(-50%) translateY(16px);
}

.pull-indicator i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading animations */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

body.dark-mode .skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success checkmark animation */
@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

/* Bounce animation for notifications */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.notification-badge {
  animation: bounce 0.5s var(--bounce);
}

/* Slide in from right animation */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Slide in from bottom animation */
@keyframes slideInBottom {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Scale and fade animation */
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== ENHANCED TOUCH INTERACTIONS ===== */

/* Larger touch targets for better UX */
.btn, .tab, .nav-item, .setting-item.clickable, 
.card, .member-card, .promo-item {
  min-height: var(--touch-target);
}

/* Touch feedback delay optimization */
* {
  touch-action: manipulation;
}

/* Prevent text selection during drag */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}

/* ===== IMPROVED SCROLLING ===== */

/* Momentum scrolling */
.main-content,
.modal-content,
.tabs-container {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Custom scrollbar for tablets/desktop */
@media (pointer: fine) {
  .main-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .main-content::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .main-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
  }
  
  body.dark-mode .main-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
  }
}

/* ===== GLASS MORPHISM EFFECTS ===== */

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .glass {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(42, 171, 238, 0.1);
}

/* ===== PREMIUM GLOW EFFECTS ===== */

.glow-blue {
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.4);
}

.glow-success {
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.4);
}

.glow-warning {
  box-shadow: 0 0 20px rgba(255, 159, 10, 0.4);
}

.glow-danger {
  box-shadow: 0 0 20px rgba(255, 69, 58, 0.4);
}

/* Text glow effect for dark mode */
body.dark-mode .text-glow {
  text-shadow: 0 0 10px currentColor;
}

/* ===== LOADING STATES ===== */

.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading .btn-primary {
  background: var(--gray-300);
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== STATUS INDICATOR DOT ===== */

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

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-dot.offline {
  background: var(--gray-400);
}

.status-dot.busy {
  background: var(--danger);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== SWIPE ACTIONS ===== */

.swipe-container {
  position: relative;
  overflow: hidden;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.swipe-action {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.swipe-action.delete {
  background: var(--danger);
}

.swipe-action.edit {
  background: var(--info);
}

/* ===== FLOATING ACTION BUTTON ===== */

.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cupido-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(42, 171, 238, 0.4);
  z-index: 90;
  transition: all var(--duration-normal) var(--spring);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(42, 171, 238, 0.5);
}

.fab:active {
  transform: scale(0.95);
}

body.dark-mode .fab {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(42, 171, 238, 0.5);
}

/* ===== SNACKBAR ===== */

.snackbar {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  left: 16px;
  right: 16px;
  background: var(--gray-600);
  color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 1500;
  transform: translateY(150%);
  transition: transform var(--duration-normal) var(--spring);
  box-shadow: var(--shadow-lg);
}

.snackbar.visible {
  transform: translateY(0);
}

body.dark-mode .snackbar {
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
}

.snackbar-action {
  color: var(--cupido-blue);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== CHIP/TAG ===== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

body.dark-mode .chip {
  background: var(--gray-200);
  color: var(--gray-400);
}

.chip.active {
  background: var(--primary-bg);
  color: var(--cupido-blue);
}

.chip .chip-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

/* ===== AVATAR GROUP ===== */

.avatar-group {
  display: flex;
}

.avatar-group .member-avatar {
  margin-left: -8px;
  border: 2px solid var(--white);
}

.avatar-group .member-avatar:first-child {
  margin-left: 0;
}

body.dark-mode .avatar-group .member-avatar {
  border-color: var(--gray-100);
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

/* Small phones (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
  :root {
    --space-4: 12px;
    --space-5: 16px;
    --space-6: 20px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .stats-grid {
    gap: var(--space-2);
  }
}

/* Large phones (iPhone Pro Max) */
@media screen and (min-width: 428px) {
  .main-content {
    padding: var(--space-5);
  }
  
  .stats-grid {
    gap: var(--space-4);
  }
}

/* Tablets */
@media screen and (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal-content {
    border-radius: var(--radius-xl);
    max-width: 600px;
  }
  
  .card-body {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .bottom-nav,
  .app-header,
  .side-menu,
  .menu-overlay,
  .toast-container,
  .fab {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
  }
}
