/* CSS for Clierry Premium Dashboard - Premium Light Mode Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Lexend:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Fonts */
  --font-heading: 'Lexend', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Color Palette - Clean Premium Light Mode */
  --bg-color: #f8fafc;            /* Clean slate light grey */
  --bg-card: #ffffff;             /* Pure white card */
  --bg-card-hover: #ffffff;
  --primary: #5f8f74;             /* Soothing Moss Green */
  --primary-hover: #4a705b;
  --primary-light: #eaf2ec;
  --accent: #b09255;              /* Gold / Bronze */
  --accent-hover: #967c46;
  --accent-light: rgba(176, 146, 85, 0.08);
  --text-primary: #0f172a;        /* Clean dark slate black */
  --text-muted: #64748b;          /* Clean slate grey */
  --border-color: #e2e8f0;        /* Slate border */
  --border-hover: #5f8f74;        /* Moss green hover border */
  
  /* Status Colors */
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.06);
  --success: #16a34a;
  --success-light: rgba(22, 163, 74, 0.06);
  --warning: #ea580c;
  --warning-light: rgba(234, 88, 12, 0.06);

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(51, 66, 52, 0.04);
  --shadow-md: 0 16px 36px rgba(51, 66, 52, 0.08);
  --shadow-lg: 0 32px 64px rgba(23, 20, 17, 0.12);
  --backdrop-blur: blur(20px);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
  overflow-x: hidden;
}

/* Beautiful ambient background glow */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
  transition: var(--transition-slow);
}

body::before {
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  top: -15%;
  left: -10%;
}

body::after {
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 99px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Premium Navigation Header */
.navbar-header {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--backdrop-blur);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(51, 66, 52, 0.02), 0 8px 24px rgba(51, 66, 52, 0.04);
  transition: var(--transition-normal);
  height: 70px;
}

.navbar-brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo-link {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar-logo-img:hover {
  transform: scale(1.02);
}

/* System Status Pulse Pill */
.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  position: relative;
}

.status-pulse-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background-color: var(--success);
  animation: pulseDot 2s infinite ease-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.status-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Global Navbar Search Bar */
.navbar-search-container {
  display: flex;
  align-items: center;
  background: #f4eee3;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-search-container:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 143, 116, 0.15);
}

.navbar-search-container .search-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.navbar-search-container input {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0;
}

.navbar-search-container input::placeholder {
  color: #8c8577;
}

.search-shortcut {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  pointer-events: none;
  font-family: monospace;
}

/* Controls Right */
.navbar-controls-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Quick links in header */
.navbar-quick-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-quick-links .nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.navbar-quick-links .nav-link:hover {
  color: var(--primary);
}

/* Wallet Pill Control */
.navbar-wallet-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-light);
  border: 1px solid rgba(176, 146, 85, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.navbar-wallet-pill:hover {
  background: rgba(176, 146, 85, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.navbar-wallet-pill i {
  color: var(--accent);
}

.navbar-wallet-pill span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-hover);
}

/* Bell notification */
.bell-trigger {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.bell-trigger:hover {
  background: var(--primary-light);
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.62rem;
  width: 14px;
  height: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* User avatar group */
.navbar-user-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.navbar-user-group:hover {
  background: var(--primary-light);
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(95, 143, 116, 0.2);
}

.user-details-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Navbar logout button */
.btn-navbar-logout {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-navbar-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
  transform: scale(1.02);
}

/* Auth Pages Styling */
/* Auth Pages Styling (Google-Style Premium Redesign) */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92vh;
  padding: 2.5rem 1.5rem;
}

.auth-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(51, 66, 52, 0.03), 0 12px 36px rgba(51, 66, 52, 0.05);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.auth-card:hover {
  border-color: #d8cebc;
  box-shadow: 0 6px 30px rgba(51, 66, 52, 0.04), 0 16px 48px rgba(51, 66, 52, 0.07);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

/* Floating Label Outlined Input Group */
.google-input-group {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: left;
}

.google-input-group input {
  width: 100%;
  height: 54px;
  padding: 16px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  outline: none;
  background: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: var(--text-primary);
  font-family: var(--font-body);
  box-sizing: border-box;
}

.google-input-group input:focus {
  border-color: var(--primary);
  border-width: 2px;
  padding: 15px 13px; /* Compensate for double border thickness */
}

.google-input-group label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: white;
  padding: 0 6px;
  margin-left: 4px;
  white-space: nowrap;
}

.google-input-group input:focus ~ label,
.google-input-group input:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  transform: translateY(-50%);
}

.google-input-group input::placeholder {
  color: transparent;
}

.google-input-group .password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.google-input-group .password-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.google-input-group input[type="password"] {
  padding-right: 44px;
}

/* Footer layout for links and button */
.google-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.25rem;
  width: 100%;
}

.google-link-btn {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.google-link-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.google-footer-actions .btn-primary {
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: none;
}

.google-footer-actions .btn-primary:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(51, 66, 52, 0.15);
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem 0;
    min-height: 100vh;
    align-items: flex-start;
  }
  .auth-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 2.5rem 1.5rem;
  }
}

/* Layout Framework */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 2rem;
  gap: 3rem;
  align-items: start;
}

/* Sidebar navigation */
.sidebar {
  position: sticky;
  top: 6rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: var(--transition-normal);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar {
  display: none;
}

.menu-item {
  background: none;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
  width: 100%;
  text-decoration: none;
  position: relative;
}

.menu-item i {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.menu-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.2rem;
}

.menu-item:hover i {
  color: var(--primary);
}

.menu-item.active {
  background: var(--primary-light);
  color: var(--primary) !important;
  font-weight: 700;
}

.menu-item.active i {
  color: var(--primary) !important;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--primary);
  border-radius: 0 4px 4px 0;
}

/* Main Dashboard Panel */
.dashboard-content {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(51, 66, 52, 0.02), 0 16px 48px rgba(51, 66, 52, 0.03);
  transition: var(--transition-normal);
  min-height: 75vh;
}

.dashboard-content:hover {
  box-shadow: 0 6px 30px rgba(51, 66, 52, 0.03), 0 24px 64px rgba(51, 66, 52, 0.05);
}

/* Section headers */
.section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tab contents rendering */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeSlideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Premium Buttons styling */
.btn-primary {
  padding: 0.7rem 1.4rem;
  background: var(--primary);
  color: white !important;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(95, 143, 116, 0.12);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(95, 143, 116, 0.2);
}

.btn-secondary {
  padding: 0.7rem 1.4rem;
  background: white;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--bg-color);
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-danger {
  padding: 0.7rem 1.4rem;
  background: var(--danger-light);
  color: var(--danger) !important;
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-danger:hover {
  background: var(--danger);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}

/* Badges */
.badge-premium {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(95, 143, 116, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

/* Badges */
.badge-premium {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(95, 143, 116, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

/* Floating 3D/Premium Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2.25rem 2.5rem !important;
  margin-bottom: 2.25rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden !important;
}

.hero-banner::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(95, 143, 116, 0.08) 0%, transparent 70%);
  right: -50px;
  top: -60px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: ambientGlow 8s ease-in-out infinite alternate;
}

.hero-banner::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(176, 146, 85, 0.12) 0%, transparent 70%);
  right: 120px;
  bottom: -60px;
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
  animation: ambientGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes ambientGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15px, 15px) scale(1.08); }
}

.hero-content {
  z-index: 2;
}

.hero-content .badge-premium {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(95, 143, 116, 0.25) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(95, 143, 116, 0.04);
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-content .badge-premium::before {
  content: '✦';
  font-size: 0.75rem;
  color: var(--primary);
  line-height: 1;
}

.hero-banner #welcomeMessage {
  color: var(--text-primary) !important;
  letter-spacing: -0.03em;
  text-shadow: none !important;
  font-size: 2.2rem !important;
}

.hero-banner #memberSinceText {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.hero-content .btn-primary {
  background: var(--primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: white !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(95, 143, 116, 0.2);
  transition: var(--transition-fast) !important;
  cursor: pointer;
  padding: 0.75rem 1.5rem !important;
}

.hero-content .btn-primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(95, 143, 116, 0.35);
}

.hero-content .btn-secondary {
  background: white !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-fast) !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 0.75rem 1.5rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-content .btn-secondary:hover {
  background: #fbf9f4 !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 143, 116, 0.08);
}

.hero-3d-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 2;
}

/* Glassmorphic Analytics Card (Flat & Modern) */
.analytics-card-3d {
  width: 290px;
  height: 180px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  animation: floatAnalytics 5s ease-in-out infinite;
}

@keyframes floatAnalytics {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 13px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(176, 146, 85, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.chart-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px 0;
  pointer-events: none;
  opacity: 0.8;
}

.grid-line {
  width: 100%;
  border-bottom: 1px dashed rgba(229, 221, 208, 0.4);
}

.chart-svg {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.chart-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 2.5s ease-out forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Floating Node Lights */
.chart-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
  pointer-events: none;
}

.chart-node.node-1 {
  left: 120px;
  top: 129px;
  animation: pulseNode 2s infinite alternate;
}

.chart-node.node-2 {
  left: 240px;
  top: 113px;
  animation: pulseNode 2s infinite alternate-reverse;
}

@keyframes pulseNode {
  0% { transform: scale(1); box-shadow: 0 0 4px var(--accent); }
  100% { transform: scale(1.25); box-shadow: 0 0 12px var(--accent), 0 0 0 3px rgba(176, 146, 85, 0.2); }
}

/* Overlay Metric Badges */
.metric-overlay {
  position: absolute;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 221, 208, 0.6);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(51, 66, 52, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 3;
  pointer-events: none;
}

.metric-overlay.top-left {
  top: 12px;
  left: 12px;
}

.metric-overlay.bottom-right {
  bottom: 12px;
  right: 12px;
}

.metric-overlay .label {
  font-size: 0.55rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metric-overlay .value {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-overlay .value .status-pulse-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.metric-overlay .value .status-pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s infinite ease-out;
}


/* Overview Stats Grid (Symmetric 3-Column Layout) */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .overview-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Stats Cards styling */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(51, 66, 52, 0.05);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.06);
}

.primary-tint {
  background: var(--primary-light);
  color: var(--primary);
}

.accent-tint {
  background: var(--accent-light);
  color: var(--accent);
}

.rose-tint {
  background: rgba(244, 63, 94, 0.06);
  color: #f43f5e;
}

.slate-tint {
  background: rgba(148, 163, 184, 0.06);
  color: #475569;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover::after {
  opacity: 1;
}

/* Wishlist custom indicator */
.stat-card:has(#statWishlistCount):hover::after {
  background: #f43f5e;
}

/* Library Cards Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.library-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.library-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(51, 66, 52, 0.05);
}

.library-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: var(--transition-slow);
}

.library-card:hover .library-thumb {
  transform: scale(1.02);
}

.library-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.library-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.library-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.library-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

/* Forms & Inputs styling */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 143, 116, 0.12);
}

.form-group input:disabled {
  background: var(--bg-color);
  cursor: not-allowed;
}

/* Tables styling */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--primary-light);
}

/* Modals glassmorphic styling */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(23, 20, 17, 0.3);
  z-index: 1000;
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  will-change: opacity;
}

.modal-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 2.25rem;
  position: relative;
  will-change: transform, opacity;
  box-shadow: 0 10px 30px rgba(23, 20, 17, 0.1), 0 30px 70px rgba(23, 20, 17, 0.15);
  animation: modalSlide 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
  max-height: 85vh;
}

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

/* Notification Dropdown styling */
#notificationDropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 320px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(51, 66, 52, 0.08);
  z-index: 1000;
  padding: 0.9rem;
  cursor: default;
  animation: fadeSlideUp 0.2s ease;
}

/* Alerts and Banners */
.alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  animation: fadeSlideUp 0.25s ease;
}

.alert.error {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.12);
  display: block;
}

.alert.success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.12);
  display: block;
}

.alert.warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(234, 88, 12, 0.12);
  display: block;
}

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

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

/* Empty states */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 300px;
  margin: 0 auto;
}

/* Catalog products list */
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.purchase-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.purchase-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 15px rgba(51, 66, 52, 0.04);
}

.purchase-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.purchase-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
}

/* Responsive configurations */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .sidebar {
    position: static;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.4rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  .menu-item {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    width: auto;
  }

  .menu-item:hover {
    padding-left: 0.85rem;
  }

  .menu-item.active::before {
    display: none;
  }

  .dashboard-content {
    padding: 1.5rem;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .navbar-search-container {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .navbar-header {
    flex-direction: row !important;
    height: 64px !important;
    padding: 0.5rem 1rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .navbar-brand-section {
    width: auto !important;
  }

  .navbar-search-container {
    display: none !important;
  }

  .navbar-controls-section {
    width: auto !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
  }

  .user-details-text {
    display: none !important;
  }

  .search-shortcut {
    display: none !important;
  }

  .navbar-wallet-pill {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.75rem !important;
  }

  .navbar-quick-links {
    display: none; /* Hide quick links on mobile to save horizontal space */
  }

  .hero-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-banner .hero-content div {
    justify-content: center;
  }

  .hero-3d-scene {
    display: none;
  }

  .purchase-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .purchase-card div {
    width: 100%;
  }

  .purchase-card button {
    width: 100%;
  }

  .modal-content {
    padding: 1.5rem;
  }

  /* Force responsive grid column stacking on mobile for hardcoded multi-column layouts */
  .dashboard-content div[style*="grid-template-columns"]:not([style*="repeat"]) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* Button Click Micro-interactions */
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.google-footer-actions .btn-primary:active,
.navbar-wallet-pill:active,
.bell-trigger:active,
.menu-item:active {
  transform: scale(0.97) !important;
}

/* Global Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 340px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  box-sizing: border-box;
}

.search-results-group {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.search-results-group:last-child {
  margin-bottom: 0;
}

.search-results-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 0.25rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-result-item i {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.search-result-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

