@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --bg-main: #fdf2f5;
  --bg-card: #ffffff;
  --text-main: #3d3437;
  --text-muted: #8c7c83;
  --border-soft: #f8dde4;
  
  /* Pastel Accent Colors from user's image */
  --rose-card: #9c4c64;
  --rose-card-sub: #b85f78;
  --pastel-yellow: #fef4cd;
  --pastel-yellow-text: #856200;
  --pastel-pink: #fde8ee;
  --pastel-pink-text: #a8385a;
  --pastel-blue: #dcf0fb;
  --pastel-blue-text: #1d698f;
  --pastel-mint: #daf2df;
  --pastel-mint-text: #216d35;
  --pastel-purple: #f1e8fc;
  --pastel-purple-text: #6b34a6;
  --pastel-peach: #feeae1;
  --pastel-peach-text: #a8471c;

  --btn-primary: #a84763;
  --btn-primary-hover: #903a52;
  --shadow-card: 0 10px 30px -5px rgba(184, 95, 120, 0.12);
  --shadow-hover: 0 14px 34px -4px rgba(184, 95, 120, 0.2);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 20px 60px;
  -webkit-font-smoothing: antialiased;
}

.container-app {
  max-width: 1260px;
  margin: 0 auto;
}

/* Header Styles */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 6px 12px;
}

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

.brand-title {
  font-family: 'Quicksand', cursive, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #3b2b31;
  letter-spacing: -0.5px;
}

.brand-badges {
  display: flex;
  gap: 6px;
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-badge {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(180, 120, 140, 0.05);
}

.pill-badge.active-pulse {
  background: var(--pastel-mint);
  color: var(--pastel-mint-text);
  border-color: #c4e9cb;
}

.pill-badge.active-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.25);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.icon-btn {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(180, 120, 140, 0.05);
}

.icon-btn:hover {
  background: var(--pastel-pink);
  color: var(--pastel-pink-text);
  transform: translateY(-2px);
}

/* Hero Cards Grid */
.hero-cards-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .hero-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.aesthetic-card {
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Plum VIP Credit Card Style */
.card-plum {
  background: linear-gradient(135deg, var(--rose-card), var(--rose-card-sub));
  color: #ffffff;
  min-height: 150px;
}

.card-plum .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip-icon {
  width: 32px;
  height: 24px;
  background: #f7d88c;
  border-radius: 6px;
  position: relative;
}

.card-plum .card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 14px;
}

.card-plum .card-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Soft Pastel Cards */
.card-yellow { background: var(--pastel-yellow); color: var(--pastel-yellow-text); }
.card-pink { background: var(--pastel-pink); color: var(--pastel-pink-text); }
.card-blue { background: var(--pastel-blue); color: var(--pastel-blue-text); }
.card-mint { background: var(--pastel-mint); color: var(--pastel-mint-text); }
.card-white { background: #ffffff; border: 1px solid var(--border-soft); }

.card-icon-bubble {
  font-size: 26px;
  margin-bottom: 8px;
}

.card-stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.card-stat-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

/* Quick Glance Horizontal Filter Bar */
.quick-glance-bar {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-glance-title {
  font-size: 15px;
  font-weight: 700;
  color: #3b2b31;
}

.tabs-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-pill {
  border: none;
  background: #f7f1f3;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-pill:hover {
  background: var(--pastel-pink);
  color: var(--pastel-pink-text);
}

.tab-pill.active {
  background: var(--btn-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 71, 99, 0.3);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.select-pill {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Main Content Panels */
.panel-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #3b2b31;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-aesthetic {
  border: none;
  background: var(--btn-primary);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(168, 71, 99, 0.25);
}

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

.btn-outline-aesthetic {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-aesthetic:hover {
  background: var(--pastel-pink);
  color: var(--pastel-pink-text);
}

/* Beautiful Rounded Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-aesthetic {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table-aesthetic th {
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  border: none;
  text-align: left;
}

.table-aesthetic td {
  padding: 14px 16px;
  background: #fdf8f9;
  font-size: 13.5px;
  border-top: 1px solid #fae8ed;
  border-bottom: 1px solid #fae8ed;
  vertical-align: middle;
}

.table-aesthetic tr td:first-child {
  border-left: 1px solid #fae8ed;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.table-aesthetic tr td:last-child {
  border-right: 1px solid #fae8ed;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.table-aesthetic tr:hover td {
  background: #fdf0f4;
}

/* Status Badges */
.badge-status {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-mint { background: var(--pastel-mint); color: var(--pastel-mint-text); }
.badge-pink { background: var(--pastel-pink); color: var(--pastel-pink-text); }
.badge-purple { background: var(--pastel-purple); color: var(--pastel-purple-text); }
.badge-blue { background: var(--pastel-blue); color: var(--pastel-blue-text); }
.badge-yellow { background: var(--pastel-yellow); color: var(--pastel-yellow-text); }

/* Forms & Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(50, 20, 30, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  padding: 28px;
  box-shadow: 0 20px 45px -10px rgba(100, 30, 50, 0.25);
  border: 1px solid var(--border-soft);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #3b2b31;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a3c42;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  background: #fffcfd;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--btn-primary);
  background: #ffffff;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating Action Button */
.fab-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--btn-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(168, 71, 99, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
  z-index: 100;
}

.fab-btn:hover {
  transform: scale(1.08);
}
