/* Removed redundant font import - loaded in HTML for better performance */
@import url("./themes/presets/wood.css");
@import url("./themes/presets/frutiger-aero.css");

:root {
  --base-font-size: 18px;
  /* global text size */
}

html {
  font-size: var(--base-font-size);
}

/* Hide scrollbars but keep wheel/trackpad scrolling */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.disable-transitions body,
body {
  margin: 0;
  font-family: var(--default-font-family, 'Shrikhand'), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--sky-fallback-color, #4a8db5);
  height: 100vh;
  overflow: hidden;
  /* Lock the body from scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Page transitions removed for accessibility */
}

/* Force new default font across common UI elements */
:where(button, input, select, textarea, .nav-btn, .tab-btn, .action-btn, .type-filter, .skeu-container, .projects-grid, .users-grid, .mobile-toolbar .mt-btn, h1, h2, h3, h4, h5, h6, p, span, a) {
  font-family: var(--default-font-family, 'Shrikhand'), system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

/* Material Icons - must override the global font rule; white with drop shadow site-wide */
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Gamepad UI Navigation Styles */
.gamepad-focused {
  outline: 2px solid rgba(76, 175, 80, 0.5) !important;
  outline-offset: 2px !important;
  transform: scale(1.02);
  transition: transform 0.15s ease;
}

.gamepad-focus-indicator {
  position: absolute;
  border: 3px solid #4CAF50;
  border-radius: 8px;
  pointer-events: none;
  z-index: 999999;
  transition: all 0.15s ease;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3), 0 4px 12px rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.1);
  display: none;
}

/* Ensure focusable elements are accessible */
a,
button,
input,
select,
textarea,
[tabindex] {
  position: relative;
}

/* Smooth transitions for gamepad navigation */
.nav-btn,
.action-btn,
.quick-action-btn,
.project-card,
.announcement-card,
.announcement-preview-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Sidebar: no text outline or stroke (signed in or out) – shadow only for legibility */
.sidebar,
.sidebar *,
.sidebar .nav-buttons *,
.sidebar .nav-auth-buttons * {
  outline: none !important;
  -webkit-text-stroke: 0 !important;
}
.sidebar .nav-buttons *,
.sidebar .nav-buttons *:focus,
.sidebar .nav-buttons *:focus-visible,
.sidebar .nav-buttons *:active,
.sidebar .nav-buttons *:hover,
.sidebar .nav-buttons *:visited,
.sidebar .nav-buttons *:link {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 🚀 PERFORMANCE OPTIMIZATIONS */
/* Exclude friends activity: content-visibility on the card squashes feed + breaks scroll (nested CV) */
.dashboard-card:not(.friends-activity-section),
.project-card,
.announcement-preview,
.site-footer,
.projects-grid,
.users-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* Force GPU for key animated parts without over-allocating */
.background-clouds,
.nav-btn,
.action-btn,
.notification,
.modal-content {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Improve rendering on high-DPI screens */
img {
  image-rendering: -webkit-optimize-contrast;
  content-visibility: auto;
}

/* Reduce rendering cost of large backgrounds on low-end devices */
@media (max-width: 1024px) {
  .background-clouds {
    background-attachment: scroll !important;
    /* Fixed attachment is expensive on mobile */
  }
}

.background-clouds {
  display: block;
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  z-index: -1;
  background: var(--sky-bg, url('Sky.png') center center / cover no-repeat), var(--sky-fallback-color, #4a8db5);
  pointer-events: none;
}

/* Skeuomorphic Theme - Background Images */
.white-background-theme .background-clouds,
.skeuomorphic-white-theme .background-clouds {
  background: url('WhiteBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-blue-theme .background-clouds {
  background: url('Sky.png') center center / cover no-repeat !important;
}

.skeuomorphic-green-theme .background-clouds {
  background: url('Sky.png') center center / cover no-repeat !important;
}

.skeuomorphic-purple-theme .background-clouds {
  background: url('Sky.png') center center / cover no-repeat !important;
}

.skeuomorphic-orange-theme .background-clouds {
  background: url('Sky.png') center center / cover no-repeat !important;
}

.skeuomorphic-pink-theme .background-clouds {
  background: url('PinkBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-black-theme .background-clouds {
  background: url('BlackBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-yellow-theme .background-clouds {
  background: url('YellowBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-green-bg-theme .background-clouds {
  background: url('GreenBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-blue-bg-theme .background-clouds {
  background: url('BlueBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-red-theme .background-clouds {
  background: url('RedBackground.png') center center / cover no-repeat !important;
}

.skeuomorphic-dorfic-theme .background-clouds {
  background: url('DorficBackground.png') center center / cover no-repeat !important;
}

.sidebar {
  width: 300px;
  /* Rich brown leather texture matching hero section */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  height: 85vh;
  border-radius: 20px;
  border: 4px solid #2a1810;
  /* Deep embossed shadow matching hero */
  box-shadow:
    /* Outer shadow for depth */
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    /* Inner emboss highlights */
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    /* Side bevels */
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4);
  position: relative;
  background-blend-mode: multiply, multiply, normal;
}

/* Gold stitching detail around sidebar (hidden when fixed-stitching is used; fixed-stitching.js draws it fixed) */
.sidebar::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px dashed rgba(218, 165, 32, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}
body:has(#fixed-stitching) .sidebar::before {
  display: none;
}

/* Subtle shine overlay */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 20px;
}

/* --- Skeuomorphic Inset Text Box Styles --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
textarea {
  /* Deeply inset appearance */
  background:
    linear-gradient(180deg, #e8e4dc 0%, #f5f1e8 100%);
  border: 3px solid #8b7355;
  border-radius: 10px;
  /* Deep inset shadow */
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 12px 14px;
  font-family: 'Fugaz One', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  color: #2d2520;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: #6b5540;
  background: linear-gradient(180deg, #f0ece4 0%, #f8f4ec 100%);
  /* Enhanced inset on focus */
  box-shadow:
    inset 0 5px 10px rgba(0, 0, 0, 0.35),
    inset 0 2px 5px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 8px rgba(107, 85, 64, 0.3);
}

/* --- General Layout --- */
.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1800px;
  width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 12px;
  flex-grow: 1;
  padding: 32px;
  /* Rich brown leather texture matching hero section */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%);
  border: 4px solid #2a1810;
  border-radius: 20px;
  /* Deep embossed shadow matching hero */
  box-shadow:
    /* Outer shadow for depth */
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    /* Inner emboss highlights */
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    /* Side bevels */
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4);
  height: 85vh;
  display: flex;
  overflow-y: auto;
  position: relative;
  background-blend-mode: multiply, multiply, normal;
}

/* Gold stitching detail around container (hidden when fixed-stitching is used) */
.container::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px dashed rgba(218, 165, 32, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}
body:has(#fixed-stitching) .container::before {
  display: none;
}

/* Subtle shine overlay */
.container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 20px;
}

/* Fixed stitching (knitting) – dashed frames aligned to sidebar/container, inset 12px, centered in viewport */
#fixed-stitching {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
}
.fixed-stitch-frame {
  position: fixed;
  box-sizing: border-box;
  border: 2px dashed rgba(218, 165, 32, 0.4);
  border-radius: 16px;
  /* Keep stitches strictly inside the panels */
  overflow: hidden;
}
/* Frame geometry comes from fixed-stitching.js (matches live layout + scroll + Wider view) */
.fixed-stitch-sidebar,
.fixed-stitch-container {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
/* Hide fixed stitches when layout stacks so they don't float misaligned */
@media (max-width: 992px) {
  #fixed-stitching {
    display: none;
  }
}

.main-content {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
  /* Allow this specific area to scroll */
}

/* Ensure any .container inside the main content expands to fill available space
   so inner widgets/components don't get cut off. Keep this scoped to .main-content
   to avoid changing global .container behavior elsewhere. */
.main-content .container {
  flex: 1 1 auto;
  min-height: 0;
  /* allows flex children to shrink/scroll properly */
  height: auto;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logo-text-img {
  height: 50px;
  width: auto;
}

/* Hide mobile logo on desktop so only TextLogo shows; mobile media query shows + sizes it */
.sidebar .logo .logo-img-mobile {
  display: none !important;
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-buttons {
  width: 95%;
  /* Much wider container for bigger buttons */
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Tighter spacing so Fandoms and Characters aren’t too far apart */
}

/* Ensure horizontal group works within nav-buttons */
.nav-buttons .nav-group-horizontal {
  width: 100%;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 11px;
  /* 11px gap to match horizontal button groups */
  position: relative;
  z-index: 10;
}

.nav-auth-buttons>* {
  flex-grow: 1;
  /* This is the fix */
}

/* (removed unused .nav-auth-buttons .nav-btn override) */

.nav-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 0.9rem;
  font-family: var(--default-font-family, 'Shrikhand');
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-radius: 12px;
  background: url('GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: none !important;
  outline: none !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
}

/* Icon styling within nav buttons */
.nav-btn .material-icons {
  font-size: 18px !important;
  /* Slightly smaller icons */
  line-height: 1 !important;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

/* Icons in horizontal group match normal size */
.nav-group-horizontal .nav-btn .material-icons {
  font-size: 18px !important;
  /* Match normal button icon size */
}

/* Horizontal group for Explore/Users/Fandoms */
.nav-group-horizontal {
  display: flex;
  flex-direction: row;
  gap: 11px;
  /* 11px gap for all horizontal button groups */
  width: 100%;
}

.nav-group-horizontal .nav-btn {
  flex: 1 1 auto;
  /* Equal distribution - buttons will grow to fill available space */
  min-width: 120px;
  /* Minimum width to ensure buttons are wide enough */
  width: auto !important;
  /* Override the base width: 100% to allow flexbox to work */
  font-size: 1.15rem;
  /* Bigger font size for better readability */
  padding: 18px 32px;
  /* Even more horizontal padding for wider buttons */
  gap: 6px;
  /* Match normal button gap */
}

/* White text with black shadow for all nav buttons - ensures visibility */
.nav-btn {
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
}

/* Remove all borders from sidebar navigation buttons - global override */
.sidebar .nav-btn,
.sidebar .nav-btn:hover,
.sidebar .nav-btn:active,
.sidebar .nav-btn.active,
.sidebar .nav-btn:focus,
.layout-wrapper>.sidebar .nav-btn,
.layout-wrapper>.sidebar .nav-btn:hover,
.layout-wrapper>.sidebar .nav-btn:active,
.layout-wrapper>.sidebar .nav-btn.active,
.layout-wrapper>.sidebar .nav-btn:focus,
aside.sidebar .nav-btn,
aside.sidebar .nav-btn:hover,
aside.sidebar .nav-btn:active,
aside.sidebar .nav-btn.active,
aside.sidebar .nav-btn:focus {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
}

/* Legacy theme uses same shadow */
body.legacy-theme-active .nav-btn {
  color: #ffffff !important;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
}

/* All pages now use the same compact button style */

.nav-btn.active,
.nav-btn:hover,
.nav-btn.active:focus,
.nav-btn:hover:focus,
.nav-btn.active:focus-visible,
.nav-btn:hover:focus-visible {
  background: url('GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  transform: translateY(-1px) translateZ(0);
  outline: none !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
}

/* White text with black shadow for hover/active states */
.nav-btn.active,
.nav-btn:hover {
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
}

/* Legacy theme uses same shadow */
body.legacy-theme-active .nav-btn.active,
body.legacy-theme-active .nav-btn:hover {
  color: #ffffff !important;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
}

/* Disabled button state - use grey button PNG */
.nav-btn:disabled,
.nav-btn[disabled] {
  background: url('GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  /* Text outline removed - only shows in legacy theme */
}

.nav-btn:disabled:hover,
.nav-btn[disabled]:hover {
  background: url('GreyButton.png') center center / 100% 100% no-repeat !important;
  transform: none !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
}

/* Remove outline and border from all nav buttons on focus/active */
.nav-btn:focus,
.nav-btn:focus-visible,
.nav-btn:active,
.nav-btn:focus-within,
.nav-btn:hover:focus,
.nav-btn:hover:focus-visible {
  outline: none !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
}

/* Remove outline and border from nav button wrapper links */
.nav-buttons a,
.nav-buttons a:focus,
.nav-buttons a:focus-visible,
.nav-buttons a:active,
.nav-buttons a:hover,
.nav-buttons a:visited,
.nav-buttons a:link {
  outline: none !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Remove outline from all nav button elements and their children */
.nav-buttons *,
.nav-buttons *:focus,
.nav-buttons *:focus-visible,
.nav-buttons *:active,
.nav-buttons *:hover {
  outline: none !important;
  border: none !important;
}

/* Specifically target button elements inside nav-buttons */
.nav-buttons button,
.nav-buttons button:focus,
.nav-buttons button:focus-visible,
.nav-buttons button:active,
.nav-buttons button:hover {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Notification Badge */
#notifications-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none !important;
  border: none !important;
}

#notifications-btn:focus,
#notifications-btn:focus-visible,
#notifications-btn:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove outline from notifications button wrapper */
a:has(#notifications-btn),
a:has(#notifications-btn):focus,
a:has(#notifications-btn):focus-visible,
a:has(#notifications-btn):active {
  outline: none !important;
  border: none !important;
}

/* Alternative selector for browsers that don't support :has() */
a[href*="notifications"] button#notifications-btn,
a[href*="notifications"]:focus,
a[href*="notifications"]:focus-visible {
  outline: none !important;
  border: none !important;
}

/* ─── Auth Required Popup (login / sign up prompt) ─── */
.auth-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  animation: fadeIn 0.15s ease;
}

.auth-popup-overlay.hidden {
  display: none !important;
  animation: none !important;
}

.auth-popup {
  background: linear-gradient(160deg, #fdf6ee 0%, #f5ead8 100%);
  border: 3px solid #a0845c;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.7);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: popupEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.auth-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #7a6650;
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.auth-popup-close:hover {
  background: rgba(0,0,0,0.08);
}

.auth-popup-icon {
  display: flex;
  justify-content: center;
  padding: 28px 20px 12px;
}

.auth-popup-icon .material-icons {
  font-size: 3rem;
  color: #8b5e2a;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(251,191,36,0.35);
}

.auth-popup-body {
  text-align: center;
  padding: 0 24px 8px;
}

.auth-popup-body h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3d2b1a;
}

.auth-popup-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b4f2a;
  line-height: 1.5;
}

.auth-popup-actions {
  display: flex;
  gap: 10px;
  padding: 20px 24px 24px;
}

.auth-popup-login-btn,
.auth-popup-signup-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth-popup-login-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%),
              linear-gradient(145deg, #bef264 0%, #84cc16 50%, #4d7c0f 100%);
  border: 2px solid #4d7c0f;
  color: #0f0f0f;
  box-shadow: 0 4px 0 0 #166534, 0 6px 14px rgba(0,0,0,0.2);
}

.auth-popup-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #166534, 0 10px 20px rgba(0,0,0,0.22);
}

.auth-popup-login-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #166534;
}

.auth-popup-signup-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%),
              linear-gradient(145deg, #e0d8cc 0%, #c4b49a 50%, #a08060 100%);
  border: 2px solid #8b7355;
  color: #2a1a0a;
  box-shadow: 0 4px 0 0 #6b5040, 0 6px 14px rgba(0,0,0,0.18);
}

.auth-popup-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #6b5040, 0 10px 20px rgba(0,0,0,0.2);
}

.auth-popup-signup-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #6b5040;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification.warning {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

.notification-badge {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1) translateZ(0);
  }

  50% {
    transform: scale(1.1) translateZ(0);
  }
}

/* GPU acceleration for animated elements */
.notification-badge,
[class*="animate"],
[class*="pulse"],
[class*="bounce"] {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Responsive adjustments for smaller screens */
@media (max-height: 800px) {
  .nav-btn {
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-buttons {
    gap: 10px;
  }

  .logo {
    margin-bottom: 20px;
  }

  .nav-btn {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}

@media (max-height: 650px) {
  .nav-btn {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .nav-buttons {
    gap: 8px;
  }

  .logo-text-img {
    height: 40px;
  }

  .nav-btn {
    padding: 6px 0;
    font-size: 0.8rem;
  }
}

@media (max-height: 700px) {
  .nav-btn {
    padding: 10px 0;
    font-size: 1rem;
  }
}

/* --- Page Transition Animations --- */
/* Page transition animations removed for accessibility */

/* Push forward animations removed for accessibility */

/* Disable transitions setting (scoped to page navigation only) */
.disable-transitions body.page-leaving,
.disable-transitions body.page-push .container,
.disable-transitions body.page-push .main-content,
.disable-transitions body.page-push .layout-wrapper {
  animation: none !important;
  transition: none !important;
  filter: none !important;
  transform: none !important;
}

.disable-transitions .page-transition-overlay .frost-layer {
  animation: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
}

/* pushForward keyframes removed for accessibility */

/* Reduced motion media query no longer needed - all transitions removed */

/* Frutiger Aero frosted depth transitions removed for accessibility */

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}

.username {
  color: #000;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}

.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}

.greeting-container {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

#greeting-text {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  /* Gold embossed text effect — strong shadow for contrast on leather */
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.75),
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(0, 0, 0, 0.8);
  font-family: var(--default-font-family, 'Shrikhand');
}

#main-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.projects-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: stretch;
}

/* Bright leather – light tan (reusable pattern for containers/cards) */
/* Pattern: repeating-linear-gradient 45/-45 + linear-gradient cream/tan, border #8b7355, emboss shadow */

/* Ensure featured projects grid has consistent sizing */
.featured-projects-section .projects-grid .project-card {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 200px;
  max-width: 300px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #14100c;
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.04) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 2px solid #8b7355;
  border-radius: 10px;
  padding: 8px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  min-width: 200px;
  flex: 1 1 calc(33.333% - 20px);
  background-blend-mode: multiply, multiply, normal;
}

/* Age-based content blurring - only blur thumbnail, not whole card */
.project-card.age-restricted {
  position: relative;
  cursor: none !important;
}

/* Only block clicks if the card is actually restricted (user is under 13) */
.project-card.age-restricted:not(.allow-view) {
  pointer-events: none;
}

/* Blur only the thumbnail image inside age-restricted cards */
.project-card.age-restricted .project-thumb img,
.project-card.age-restricted .project-thumbnail,
.project-card.age-restricted img {
  filter: blur(8px);
}

.project-card.age-restricted::before {
  content: "🔞 13+ Content";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card.age-restricted::after {
  content: "Sign in with a 13+ account to view this content";
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 10;
  text-align: center;
  margin-top: 20px;
  max-width: 200px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(0, 0, 0, 0.12);
}

/* Thumbnail container — fixed height so all card images are the same */
.project-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  background: linear-gradient(145deg, #d4b896, #c4a574);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  height: 180px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* Legacy: direct img inside project-card (no .project-thumb wrapper) */
.project-card > img,
.project-card img.project-thumbnail {
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 10px;
  display: block;
}

.project-card-title {
  font-weight: 800;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.25;
  margin-top: 6px;
  color: #14100c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.project-card-date {
  font-size: 0.65rem;
  color: #3d2e24;
  font-weight: 600;
  margin-top: 3px;
}

/* ===== SKEUOMORPHIC HOME PAGE LAYOUT ===== */

/* Hero Section - Embossed Leather Panel */
.hero-section {
  margin-bottom: 30px;
  padding: 32px;
  /* Rich leather texture */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%);
  border-radius: 20px;
  /* Deep embossed shadow */
  box-shadow:
    /* Outer shadow for depth */
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    /* Inner emboss highlights */
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    /* Side bevels */
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4);
  border: 4px solid #2a1810;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 280px;
  background-blend-mode: multiply, multiply, normal;
}

/* Gold stitching detail */
.hero-section::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px dashed rgba(218, 165, 32, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

/* Subtle shine overlay */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.greeting-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.welcome-subtitle {
  color: #fffefb;
  font-size: 1.3rem;
  margin: 12px 0 8px 0;
  font-weight: 700;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 1);
}

.welcome-description {
  color: #64748b;
  font-size: 1rem;
  margin: 12px 0 0 0;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.profile-avatar-link {
  display: block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

.profile-avatar-link:hover {
  opacity: 0.95;
}

/* Hero CTA Container */
.hero-cta-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Hero CTA Button - Green 3D (match project Yeah button) */
.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 45%), linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
  border: 2px solid #4d7c0f;
  border-radius: 20px;
  box-shadow: 0 8px 0 0 #166534, 0 10px 22px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.2);
  color: #0f0f0f;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  transition: all 0.2s ease;
  font-family: var(--default-font-family, 'Shrikhand');
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.hero-cta-button::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
  border-radius: 14px 14px 0 0;
}

.hero-cta-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-cta-text {
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta-arrow {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.hero-cta-button:hover {
  background: linear-gradient(145deg, #5ba0f2, #4a90e2, #357abd);
  box-shadow:
    0 14px 30px rgba(59, 130, 246, 0.5),
    0 7px 15px rgba(0, 0, 0, 0.25),
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25),
    inset 1px 0 2px rgba(255, 255, 255, 0.5),
    inset -1px 0 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.hero-cta-button:hover .hero-cta-arrow {
  transform: translateX(4px);
}

.hero-cta-button:active {
  background: linear-gradient(145deg, #357abd, #2c5aa0, #1e3d6f);
  box-shadow:
    0 6px 15px rgba(59, 130, 246, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}

.hero-cta-subtext {
  color: #2d2418;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Hero tagline */
.hero-tagline {
  color: #f5ebe0;
  font-size: 1.05rem;
  margin: 8px 0 0 0;
  font-weight: 600;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.75);
}

/* Hero CTA row - primary actions */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed rgba(218, 165, 32, 0.35);
  justify-content: center;
}

.hero-cta-row .hero-cta-button {
  flex: 0 1 auto;
  padding: 12px 22px;
  font-size: 1.1rem;
}

.hero-cta-row .hero-cta-button.hero-cta-primary {
  background: linear-gradient(145deg, #22c55e, #16a34a, #15803d);
  border-color: #15803d;
  box-shadow:
    0 10px 22px rgba(34, 197, 94, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta-row .hero-cta-button.hero-cta-primary:hover {
  background: linear-gradient(145deg, #4ade80, #22c55e, #16a34a);
  box-shadow:
    0 12px 26px rgba(34, 197, 94, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

/* Home stats strip - embossed leather bar */
.home-stats-strip {
  margin-bottom: 24px;
  padding: 14px 24px;
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.04) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.04) 6px),
    linear-gradient(135deg, #4a3525 0%, #5c4033 50%, #4a3525 100%);
  border-radius: 14px;
  border: 3px solid #2a1810;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.home-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.home-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fffefb;
  font-size: 1rem;
  font-weight: 600;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.75);
}

.home-stat .material-icons {
  font-size: 1.2em;
  opacity: 0.9;
}

.home-stat-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Discover pills - green rounded buttons (project page style) */
.discover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.discover-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
  border: 2px solid #4d7c0f;
  border-radius: 12px;
  color: #0f0f0f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

.discover-pill .material-icons {
  font-size: 1.2em;
  color: #0f0f0f;
}

.discover-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 0 0 #166534,
    0 11px 24px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border-color: #4d7c0f;
}

.discover-pill:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.25);
}

.discover-pill-all {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%),
    linear-gradient(145deg, #a3e635 0%, #84cc16 25%, #65a30d 50%, #4d7c0f 75%, #166534 100%);
  border-color: #166534;
  box-shadow:
    0 7px 0 0 #14532d,
    0 9px 20px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.discover-pill-all:hover {
  box-shadow:
    0 9px 0 0 #14532d,
    0 11px 24px rgba(0, 0, 0, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* How it works - 3 steps */
.how-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.how-step {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #6b5344 0%, #7a6349 50%, #6b5344 100%);
  border: 2px solid #4a3525;
  border-radius: 14px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.how-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #8b7355, #6b5344);
  border: 2px solid #5c4033;
  border-radius: 50%;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.how-step-icon .material-icons {
  font-size: 1.6rem;
  color: #e8e0d5;
}

.how-step-title {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #14100c;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.how-step-desc {
  font-size: 0.88rem;
  margin: 0;
  color: #1f1a16;
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.how-step-arrow {
  display: flex;
  align-items: center;
  color: #8b7355;
}

.how-step-arrow .material-icons {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .how-step-arrow {
    display: none;
  }
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 30px;
  margin-bottom: 35px;
}

.dashboard-left,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Dashboard Cards - Skeuomorphic Tan Leather (2011-style) */
.dashboard-card {
  /* Tan leather texture - matches brown frame, lighter inner panels */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.04) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #8b7355 0%, #a08060 35%, #b8956e 50%, #a08060 65%, #8b7355 100%);
  border-radius: 16px;
  padding: 28px;
  /* Leather emboss and depth */
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.35),
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    inset 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px 0 0 rgba(0, 0, 0, 0.15);
  border: 3px solid #5c4033;
  position: relative;
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-blend-mode: multiply, multiply, normal;
}

/* Leather stitch detail at bottom */
.dashboard-card::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-bottom: 2px dashed rgba(139, 90, 43, 0.5);
  opacity: 0.8;
  pointer-events: none;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    inset 2px 0 0 rgba(255, 255, 255, 0.15),
    inset -2px 0 0 rgba(0, 0, 0, 0.2);
}

.dashboard-card:last-child {
  margin-bottom: 0;
  /* Remove gap after last container */
}

/* Leather top highlight / stitch */
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 0;
}

.dashboard-card:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

/* Card Headers - Skeuomorphic Embossed */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid #c9c0b0;
  position: relative;
  /* Leather separator effect */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
}

.card-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #14100c;
  font-weight: 700;
  /* Embossed text effect */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Feed tabs styling */
.feed-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.feed-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(145deg, #f0f2f5, #e8eaed);
  border: 1px solid #d0d4d8;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feed-tab-btn:hover {
  background: linear-gradient(145deg, #ffffff, #f0f2f5);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feed-tab-btn.active {
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: white;
  border-color: #5a3d7a;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.view-all-link {
  color: #0f0f0f;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 45%), linear-gradient(145deg, #bef264 0%, #84cc16 50%, #65a30d 100%);
  border: 2px solid #4d7c0f;
  box-shadow: 0 4px 0 0 #166534, 0 6px 12px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.view-all-link:hover {
  background: linear-gradient(145deg, #a3e635 0%, #84cc16 50%, #65a30d 100%);
  box-shadow: 0 6px 0 0 #166534, 0 8px 16px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Beta Feedback Container - Skeuomorphic */
/* User Count Milestone Tracker - Skeuomorphic */
.user-count-container {
  margin-bottom: 25px;
}

.user-count-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-count-display {
  text-align: center;
  padding: 12px;
  /* Tan leather inset panel */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #7a6349 0%, #8b7355 50%, #7a6349 100%);
  border: 2px solid #5c4033;
  border-radius: 12px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  background-blend-mode: multiply, normal;
}

.user-count-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #1e293b;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  margin-bottom: 8px;
}

.user-count-label {
  font-size: 1.1rem;
  color: #3d3228;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.milestone-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.milestone-text {
  font-size: 1rem;
  color: #1f1a16;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.milestone-text strong {
  color: #1e293b;
  font-weight: 700;
}

.milestone-need {
  font-size: 1rem;
  color: #059669;
  font-weight: 700;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar-container {
  width: 100%;
  height: 24px;
  background: linear-gradient(145deg, #e5e7eb, #f3f4f6);
  border: 2px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #84cc16, #65a30d, #166534);
  background-size: 200% 100%;
  animation: progressShimmer 2s ease-in-out infinite;
  border-radius: 10px;
  transition: width 0.6s ease-out;
  box-shadow:
    0 2px 4px rgba(59, 130, 246, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes progressShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.milestone-description {
  font-size: 0.95rem;
  color: #3d3228;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .user-count-number {
    font-size: 2.5rem;
  }

  .milestone-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

.beta-feedback-container {
  margin-bottom: 25px;
}

/* Mobile Warning Container */
.mobile-warning-container {
  margin-bottom: 25px;
  max-width: 100%;
}

/* Mobile device styling - center content */
body.mobile-device-detected .main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 14px;
}

body.mobile-device-detected .mobile-warning-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.beta-feedback-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.beta-feedback-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.beta-feedback-text {
  color: #111827;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.beta-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  /* Glossy green applied via global primary button block */
}

.beta-feedback-btn:hover {
  transform: translateY(-1px);
}

.beta-feedback-btn:active {
  transform: translateY(1px);
}

.beta-feedback-icon {
  font-size: 1.2rem;
}

.beta-feedback-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.beta-feedback-btn:hover .beta-feedback-arrow {
  transform: translateX(4px);
}

/* Share Button – Glossy aqua (secondary) */
.beta-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(145deg, #4dd0e1 0%, #26c6da 35%, #00bcd4 50%, #26c6da 65%, #4dd0e1 100%);
  border: 2px solid #0097a7;
  border-radius: 12px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 150, 167, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
  color: #0d3d42;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  cursor: none !important;
  font-family: 'Jersey 10', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.beta-share-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 150, 167, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.beta-share-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

.beta-share-btn:disabled {
  opacity: 0.6;
  cursor: none !important;
  transform: none;
}

.share-reward-badge {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow:
    0 2px 4px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid #047857;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Video Section - Skeuomorphic */
.video-section {
  position: relative;
}

.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #d1d5db;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-status {
  margin-top: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.video-status .material-icons {
  font-size: 1rem;
}

.featured-video-title {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Quick Actions - Skeuomorphic */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 2px solid #8b7355;
  border-radius: 16px;
  text-decoration: none;
  color: #14100c;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: all 0.2s ease;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95));
  border-radius: 14px 14px 0 0;
}

.quick-action-btn:hover {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #d4b896 0%, #e6d4b8 40%, #e6d4b8 60%, #d4b896 100%);
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  border-color: #8b7355;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9));
  border-radius: 12px 12px 0 0;
}

.quick-action-btn:focus-visible {
  outline: 2px solid #8b7355;
  outline-offset: 2px;
}

.quick-action-btn:active {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Limits Card Styles */
.limits-card-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.limits-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.limits-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #1f1a16;
}

.limits-progress-container {
  background: #e5e7eb;
  border-radius: 8px;
  height: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid #d1d5db;
}

.limits-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #84cc16, #65a30d);
  border-radius: 8px;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  min-width: 30px;
}

.limits-progress-bar.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.limits-progress-bar.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.limits-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.limits-stat-label {
  font-size: 0.8rem;
  color: #3d3228;
  font-weight: 600;
}

.limits-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
  margin-left: 8px;
}

.tier-badge.tier-free {
  background: #e5e7eb;
  color: #1f1a16;
}

.tier-badge.tier-plus {
  background: #dbeafe;
  color: #1e40af;
}

.tier-badge.tier-pro {
  background: #ede9fe;
  color: #6b21a8;
}

.tier-badge.tier-master {
  background: #fef3c7;
  color: #92400e;
}

.tier-badge.tier-max {
  background: #fce7f3;
  color: #9f1239;
}

.quick-action-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
  color: #0f0f0f;
  border-radius: 50%;
  box-shadow: 0 6px 0 0 #166534, 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #4d7c0f;
}

/* Featured Projects Section */
.featured-projects-section {
  grid-column: 1 / -1;
  /* Full width */
}

/* Home: no cold gray — warm browns for empty states & footnotes */
.first-100-bonus-container .first-100-bonus-lead {
  color: #1f1a16;
}

.home-footnote-text {
  color: #3d3228;
  font-size: 0.9em;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 600;
}

.limits-metric-value {
  margin-left: auto;
  color: #3d3228;
  font-size: 0.9rem;
  font-weight: 700;
}

.empty-state-msg {
  text-align: center;
  color: #3d3228;
  font-weight: 600;
  padding: 20px;
  margin: 0;
  line-height: 1.5;
}

.empty-state-msg--announcements {
  font-style: italic;
  padding: 16px 20px;
}

/* Homepage Announcements Section - Skeuomorphic (on leather) */
.announcements-section h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #14100c;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.dashboard-card,
.first-100-bonus-container,
.announcements-section {
  color: #14100c;
}
.dashboard-card .welcome-subtitle,
.dashboard-card .welcome-description,
.dashboard-card p,
.first-100-bonus-container p,
.announcements-section p {
  color: #1f1a16;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
}

.announcements-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

/* Friends activity — feed area (home) */
/* Override .announcements-preview max-height so this feed isn't cramped */
.announcements-preview.friends-activity-feed-wrap {
  max-height: min(520px, 65vh);
  min-height: 220px;
  /* Global perf rule uses content-visibility on .announcements-preview — breaks nested card layout */
  content-visibility: visible;
  contain: none;
  /* Ensure scroll works inside flex column grid */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.friends-activity-feed-wrap {
  max-height: 420px;
  min-height: 80px;
  padding-right: 4px;
}

.friends-activity-feed-wrap::-webkit-scrollbar {
  width: 8px;
}

.friends-activity-feed-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.friends-activity-feed-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c4a574, #8b7355);
  border-radius: 8px;
  border: 1px solid #5c4033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.friends-activity-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.friends-activity-heading h2 {
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
}

.friends-activity-heading h2 .material-icons {
  font-size: 1.35em;
  opacity: 0.95;
}

.friends-activity-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #3d2e24;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.friends-activity-header-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e8f4fc, #cfe8f8);
  border: 1px solid #7eb8e0;
  box-shadow:
    0 3px 0 #4a7aa5,
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.friends-activity-header-link .material-icons {
  font-size: 1.1em;
}

.friends-activity-header-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 #4a7aa5,
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.friends-activity-empty {
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px dashed rgba(92, 64, 51, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.friends-activity-empty-icon {
  font-size: 2.5rem !important;
  color: #8b7355;
  opacity: 0.85;
  margin-bottom: 8px;
}

.friends-activity-empty-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d2520;
}

.friends-activity-empty-text {
  margin: 0 0 16px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a3f36;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.friends-activity-empty-btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f0f0f;
  text-decoration: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #d4fc79, #96e6a1);
  border: 2px solid #3d7c1f;
  box-shadow:
    0 4px 0 #2d5a16,
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease;
}

.friends-activity-empty-btn:hover {
  transform: translateY(-2px);
}

/* Friend activity cards (skeuomorphic) — outer link is a shell; inner carries the “leather” */
.announcement-preview-card.friend-activity-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  /* Beat later .announcement-preview-card { overflow:hidden; contain:paint } — those clip children */
  overflow: visible !important;
  contain: none !important;
  content-visibility: visible !important;
}

.friend-activity-card {
  cursor: pointer !important;
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
  min-height: min-content;
  content-visibility: visible;
  overflow: visible;
  border: 2px solid #5c4033 !important;
  border-radius: 14px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 3px 0 #3d2b22,
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.friend-activity-card::before {
  display: none !important;
}

.announcement-preview-card.friend-activity-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 5px 0 #3d2b22,
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12) !important;
}

.friend-activity-card-inner {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 12px;
  min-height: 0;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(135deg, #9d8b78 0%, #a89072 40%, #b89a7a 55%, #9d8b78 100%);
  overflow: visible;
}

.friend-activity-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4a8c6a, #2d8a5c, #5cb85c, #2d8a5c, #4a8c6a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.friend-activity-accent--comment {
  background: linear-gradient(90deg, #4a7aa5, #2d6a9e, #5ba3d4, #2d6a9e, #4a7aa5);
}

.friend-activity-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.friend-activity-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  border: 2px solid #f0ebe4;
  border-bottom-color: #6b5344;
  object-fit: cover;
  flex-shrink: 0;
  content-visibility: visible;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

.friend-activity-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.friend-activity-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f1814;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.friend-activity-verb {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a221c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.friend-activity-time {
  font-size: 0.8rem;
  color: #3d3228;
  font-weight: 600;
  margin-top: 2px;
}

.friend-activity-type-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

.friend-activity-type-badge .material-icons {
  font-size: 1rem !important;
}

.friend-activity-type-badge--project {
  background: linear-gradient(145deg, #34a853, #1e7e34);
}

.friend-activity-type-badge--comment {
  background: linear-gradient(145deg, #3b82c4, #1e5a8a);
}

.friend-activity-body--project {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-top: 4px;
  min-height: 88px;
}

.friend-activity-media {
  flex-shrink: 0;
  width: 132px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e8e0d8;
  border-bottom-color: #6b5344;
  box-shadow:
    0 4px 0 #4a3728,
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: #0f0f0f;
}

.friend-activity-thumb {
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.friend-activity-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.friend-activity-project-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1410;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.friend-activity-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f3d1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.friend-activity-cta .material-icons {
  font-size: 1.1rem !important;
  opacity: 0.9;
}

.friend-activity-on-project {
  margin: 0 0 8px 0;
  font-size: 0.88rem;
  color: #3d352c;
  line-height: 1.4;
}

.friend-activity-on-project strong {
  color: #1f1814;
  font-weight: 700;
}

.friend-activity-comment-block {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(92, 64, 51, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
}

.friend-activity-quote-icon {
  position: absolute;
  left: 8px;
  top: 6px;
  font-size: 1.5rem !important;
  color: #8b7355;
  opacity: 0.55;
}

.friend-activity-comment-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2d2520;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Legacy class names (older markup) */
.friend-activity-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

.friend-activity-info .announcement-preview-title {
  margin: 0;
  font-size: 1.15rem !important;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

.friend-activity-info .announcement-preview-date {
  font-size: 0.9rem !important;
  color: #666;
  margin-top: 6px;
}

.friend-activity-content {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}

.friend-activity-details {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.friend-activity-title {
  margin: 0 0 12px 0;
  font-size: 1.2rem !important;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.friend-activity-link {
  display: inline-block;
  font-size: 1rem !important;
  color: #4CAF50;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.friend-activity-link:hover {
  color: #45a049;
  text-decoration: underline;
}

.friend-activity-comment {
  margin: 12px 0 0 0;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid #4CAF50;
  border-radius: 4px;
  font-style: italic;
  color: #555;
  line-height: 1.6 !important;
  font-size: 1rem !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.announcement-preview-card {
  /* Tan leather - matches dashboard cards */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.04) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #8b7355 0%, #a08060 35%, #b8956e 50%, #a08060 65%, #8b7355 100%);
  border-radius: 12px;
  padding: 12px;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(0, 0, 0, 0.12);
  border: 2px solid #5c4033;
  background-blend-mode: multiply, multiply, normal;
  /* transition removed for accessibility */
  position: relative;
  overflow: hidden;
  cursor: none !important;
}

/* Only show green border on announcement cards, not friend activity cards */
.announcement-preview-card:not(.friend-activity-card)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(145deg, #10b981, #059669);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Friend activity cards styling - no green border, just clean border */

.announcement-preview-card.pinned::before {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.announcement-preview-card.important::before {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.announcement-preview-card:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    inset 1px 0 0 rgba(255, 255, 255, 0.15),
    inset -1px 0 0 rgba(0, 0, 0, 0.15);
}

.announcement-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.announcement-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fffefb;
  margin: 0;
  flex: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.announcement-preview-type {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.announcement-preview-type.info {
  background: linear-gradient(145deg, #17a2b8, #138496);
}

.announcement-preview-type.update {
  background: linear-gradient(145deg, #28a745, #20c997);
}

.announcement-preview-type.feature {
  background: linear-gradient(145deg, #6f42c1, #5a32a3);
}

.announcement-preview-type.maintenance {
  background: linear-gradient(145deg, #fd7e14, #e55a00);
}

.announcement-preview-type.important {
  background: linear-gradient(145deg, #dc3545, #c82333);
}

.announcement-preview-content {
  color: #f3ebe0;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  /* Preserve whitespace and line breaks */
  word-wrap: break-word;
  /* Break long words if necessary */
}

/* Ensure br tags create proper spacing in previews */
.announcement-preview-content br {
  line-height: 1.8;
  /* Add extra spacing for line breaks */
}

.announcement-preview-date {
  font-size: 0.75rem;
  color: #e8d4bc;
  margin-top: 8px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.announcements-preview::-webkit-scrollbar {
  width: 6px;
}

.announcements-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.announcements-preview::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #adb5bd, #6c757d);
  border-radius: 3px;
}

.announcements-preview::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, #6c757d, #495057);
}

/* Population Machine Section */
.population-machine-section {
  margin-bottom: 30px;
}

.population-machine-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #495057;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.population-stats {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border-radius: 15px;
  padding: 18px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  border: 2px solid #8b7355;
}

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

.population-count {
  text-align: center;
  flex: 1;
}

.population-number {
  font-size: 3rem;
  font-weight: 700;
  color: #28a745;
  text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
  margin: 0;
  line-height: 1;
}

.population-label {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.population-goal {
  text-align: center;
  flex: 1;
}

.goal-number {
  font-size: 2rem;
  font-weight: 700;
  color: #6f42c1;
  text-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
  margin: 0;
  line-height: 1;
}

.goal-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: linear-gradient(145deg, #e9ecef, #dee2e6);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  /* transition removed for accessibility */
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.progress-text {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.milestones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.milestone-card {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border-radius: 12px;
  padding: 12px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  border: 2px solid #8b7355;
  /* transition removed for accessibility */
  position: relative;
  overflow: hidden;
}

.milestone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c757d, #adb5bd);
  /* transition removed for accessibility */
}

.milestone-card.unlocked::before {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.milestone-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.milestone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.milestone-icon {
  font-size: 1.5rem;
  opacity: 0.5;
  /* transition removed for accessibility */
}

.milestone-card.unlocked .milestone-icon {
  opacity: 1;
}

.milestone-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: #495057;
  margin: 0;
}

.milestone-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 5px 0;
}

.milestone-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.3;
}

.recent-users {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.recent-users h3 {
  font-size: 1.1rem;
  color: #495057;
  margin: 0 0 10px 0;
  text-align: center;
}

.recent-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.recent-user {
  background: linear-gradient(145deg, #e9ecef, #dee2e6);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #495057;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
  .sidebar {
    width: 300px;
  }

  #greeting-text {
    font-size: 2.2rem;
  }

  .featured-projects h2 {
    font-size: 1.6rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
  }

  .layout-wrapper>.sidebar {
    /* Increased specificity */
    width: 100% !important;
    height: auto !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
    box-sizing: border-box;
  }

  .logo {
    margin-bottom: 0;
  }

  .nav-buttons {
    flex-direction: row !important;
    width: auto !important;
    gap: 8px !important;
    align-items: center;
  }

  .nav-btn {
    padding: 10px 15px !important;
    font-size: 1rem !important;
    white-space: nowrap;
  }

  .nav-auth-buttons {
    display: contents;
  }

  .container {
    width: 100%;
    height: 85vh !important;
    min-height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 0;
    margin: 0;
  }

  .main-content {
    padding: 14px;
  }
}

/* Mobile LANDSCAPE only - make sidebar much narrower when visible as vertical strip */
@media (max-width: 768px) and (orientation: landscape) {

  /* Sidebar is a narrow vertical strip in landscape */
  .layout-wrapper>.sidebar:not([style*="display: none"]) {
    width: 120px !important;
    padding: 6px !important;
    min-width: 120px !important;
    max-width: 120px !important;
  }

  /* Adjust container to take more space when sidebar is visible */
  .container {
    flex: 1 !important;
    margin-left: 6px !important;
  }

  /* Very compact nav buttons - icons only */
  .layout-wrapper>.sidebar .nav-btn {
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
    margin-bottom: 3px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    min-height: 50px !important;
  }

  .layout-wrapper>.sidebar .nav-btn .material-icons {
    font-size: 22px !important;
    margin: 0 !important;
  }

  /* Hide nav button text on landscape mobile */
  .layout-wrapper>.sidebar .nav-btn span:not(.material-icons):not(.notification-badge) {
    display: none !important;
  }

  .layout-wrapper>.sidebar .logo {
    margin-bottom: 8px !important;
  }

  .layout-wrapper>.sidebar .logo-text-img {
    height: 28px !important;
    width: auto !important;
  }

  /* Compact nav groups */
  .layout-wrapper>.sidebar .nav-group-horizontal {
    flex-direction: column !important;
    gap: 3px !important;
  }

  /* Auth buttons compact */
  .layout-wrapper>.sidebar .nav-auth-buttons {
    flex-direction: column !important;
    gap: 3px !important;
  }
}

/* Phone Portrait — bottom nav + scrollable main column come from @media (max-width: 768px) below; do not hide .sidebar here */
@media (max-width: 768px) and (orientation: portrait) {
  .mobile-toolbar {
    display: flex;
  }

  .container {
    padding-bottom: 80px;
    /* Space for toolbar */
    margin: 0 !important;
    border-radius: 0;
    height: 85vh;
    padding: 10px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-content {
    padding: 12px 10px;
    width: 100% !important;
  }

  /* Better spacing for mobile */
  .dashboard-card {
    margin-bottom: 16px;
    padding: 16px;
  }

  .card-header h2 {
    font-size: 1.1rem;
    margin: 0;
  }

  /* Improve text readability */
  body {
    font-size: 16px;
  }

  /* Better touch targets */
  button,
  .btn,
  .action-btn,
  .nav-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Mobile toolbar improvements */
  .mobile-toolbar {
    bottom: 12px;
    padding: 10px 14px;
    gap: 10px;
    max-width: calc(100% - 24px);
  }

  .mobile-toolbar .mt-btn {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* Prevent horizontal scroll */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  /* Better background on mobile */
  .background-clouds {
    background-size: cover;
    background-position: center;
  }

  /* Ensure container doesn't overflow */
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Improve card readability */
  .dashboard-card p,
  .dashboard-card span {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Phone Landscape (behaves like desktop) */
@media (max-height: 500px) and (orientation: landscape) {
  .layout-wrapper {
    flex-direction: row;
  }

  .layout-wrapper>.sidebar {
    /* Increased specificity */
    display: flex !important;
    width: 120px !important;
    /* Very narrow on mobile - same height as container for grass strip */
    height: 85vh !important;
    padding: 6px !important;
  }

  .nav-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 3px !important;
  }

  .nav-btn {
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 50px !important;
  }

  .nav-btn .material-icons {
    font-size: 22px !important;
    margin: 0 !important;
  }

  /* Hide text, show only icons on mobile landscape */
  .nav-btn span:not(.material-icons):not(.notification-badge) {
    display: none !important;
  }

  .nav-auth-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  .logo {
    margin-bottom: 8px !important;
  }

  .logo-text-img {
    height: 28px !important;
    width: auto !important;
  }

  .mobile-toolbar {
    display: none !important;
  }

  .container {
    height: 85vh !important;
    margin-left: 6px !important;
    flex: 1 !important;
  }
}

@media (max-width: 480px) {

  /* Container adjustments for small phones - 85vh so grass strip shows */
  .container {
    margin: 0 !important;
    padding: 8px;
    border-radius: 0;
    height: 85vh;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-content {
    padding: 10px 8px;
    overflow-x: hidden;
    width: 100% !important;
  }

  /* Typography improvements */
  #greeting-text {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .welcome-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .featured-projects h2,
  .card-header h2 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Mobile Home Page Layout - Skeuomorphic */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .greeting-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Dashboard Cards Mobile - Reduced padding */
  .dashboard-card {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .card-header {
    margin-bottom: 12px;
  }

  /* Quick Actions Mobile */
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-action-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 12px;
    min-height: 50px;
    font-size: 0.9rem;
  }

  .quick-action-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  /* Projects Grid Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }

  .project-card {
    margin: 0;
    width: 100%;
  }

  /* Featured projects section mobile */
  .featured-projects-section {
    padding: 14px;
  }

  /* First 100 bonus container mobile */
  .first-100-bonus-container,
  .beta-feedback-container {
    padding: 14px;
  }

  .beta-feedback-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .beta-feedback-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  /* Community Section Mobile */
  .community-section {
    padding: 16px;
    margin-top: 16px;
  }

  .social-links-container {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .social-link {
    padding: 14px 18px;
    font-size: 0.9rem;
    justify-content: center;
  }

  /* Video embed mobile */
  .video-embed {
    border-radius: 10px;
    margin: 12px 0;
  }

  .video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Announcements mobile */
  .announcements-preview {
    gap: 10px;
  }

  /* User count mobile */
  .user-count-content {
    padding: 12px;
  }

  .user-count-number {
    font-size: 2rem;
  }

  /* Limits card mobile */
  .limits-card-content {
    padding: 12px;
  }

  /* Better spacing for all sections */
  section {
    margin-bottom: 16px;
  }

  /* Improve button sizes for touch */
  button,
  .btn,
  .action-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* Footer mobile */
  .site-footer {
    padding: 20px 12px;
    margin-top: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

.aeros-display {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Performance optimizations for inactive tabs */
:root {
  --animation-reduced: false;
}

/* Performance-based animation reduction */
:root {
  --animation-reduced: false;
  --performance-mode: normal;
  --mobile-optimized: false;
  --battery-saver: false;
}

/* Reduce animations when tab is inactive or performance is low */
body[style*="--animation-reduced: true"] *,
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Performance mode optimizations */
[style*="--performance-mode: reduced"] * {
  animation-duration: 2s !important;
  transition-duration: 0.3s !important;
}

[style*="--performance-mode: minimal"] * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Mobile optimizations */
[style*="--mobile-optimized: true"] .particle,
[style*="--mobile-optimized: true"] .sparkle {
  display: none !important;
}

/* Keep VHS effect but optimize it for mobile */
[style*="--mobile-optimized: true"] .vhs-effect::before {
  animation: vhs-flicker 1s infinite;
  /* Slower on mobile for better performance */
}

/* Battery saver mode */
[style*="--battery-saver: true"] .sparkle,
[style*="--battery-saver: true"] .particle,
[style*="--battery-saver: true"] .shimmer {
  animation: none !important;
}

/* Simplify effects when performance is low */
.simplified-effects .vhs-effect::before {
  animation: vhs-flicker 2s infinite !important;
  /* Much slower but still visible */
}

.simplified-effects .vhs-effect::after {
  display: none !important;
}

/* Pause heavy animations when tab is hidden */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimize for inactive tabs */
@media (display-mode: standalone) {

  /* Reduce background animations in PWA mode */
  .background-clouds {
    animation: none !important;
  }
}

/* Aeros Display Styling */
.aeros-display {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.aeros-display #aeros-count {
  font-size: 16px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Responsive & Mobile Layout --- */
.mobile-toolbar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  /* Hidden by default, shown in portrait mobile */
  gap: 8px;
  background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
  border: 3px solid #c0c4c8;
  border-radius: 20px;
  padding: 8px 12px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.mobile-toolbar .mt-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  border: 2px solid #c0c4c8;
  color: #1e293b;
  text-decoration: none;
  font-size: 24px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.mobile-toolbar .mt-btn:hover,
.mobile-toolbar .mt-btn:active {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #f5f7fa, #e8eaed);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.mobile-toolbar .mt-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

/* ============================================ */
/* UNIVERSAL SIDEBAR & CONTAINER STANDARDIZATION */
/* ============================================ */
/* ⚠️ IMPORTANT: These rules apply to ALL pages */
/* DO NOT override these in page-specific CSS files */
/* All pages MUST have identical sidebar/container sizing */
/* ============================================ */

/* Sidebar - Standard for all pages */
.layout-wrapper>.sidebar,
.layout-wrapper>aside.sidebar,
aside.sidebar,
.profile .sidebar,
body>.layout-wrapper>.sidebar {
  width: 400px !important;
  /* Brown leather texture - no PNG */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 4px solid #2a1810 !important;
  height: 85vh !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 85vh !important;
  min-height: 85vh !important;
  box-sizing: border-box !important;
}

/* Skeuomorphic theme overrides for all sidebar instances - Each theme has its own specific rules below */

/* Container - Standard for all pages - Brown leather (realistic material) */
.layout-wrapper>.container,
.container,
.profile .container,
body>.layout-wrapper>.container {
  margin: 12px !important;
  flex-grow: 1 !important;
  padding: 10px !important;
  /* Brown leather texture - no PNG */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%) !important;
  border: 4px solid #2a1810 !important;
  border-radius: 20px !important;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4) !important;
  height: 85vh !important;
  max-height: 85vh !important;
  min-height: 85vh !important;
  display: flex !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  background-blend-mode: multiply, multiply, normal !important;
}

/* --- “Wider view” (#sidebar-collapse-toggle): normal .nav-btn; collapsed = thin strip with only that control --- */
.layout-wrapper .nav-buttons > button.nav-btn#sidebar-collapse-toggle {
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

body.sidebar-collapsed .layout-wrapper {
  gap: 12px;
  justify-content: center;
}

body.sidebar-collapsed .layout-wrapper > .sidebar,
body.sidebar-collapsed .layout-wrapper > aside.sidebar {
  display: none !important;
}

body.sidebar-collapsed .layout-wrapper > .container {
  max-width: none !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  margin-left: 12px !important;
  margin-right: 12px !important;
}

@media (max-width: 992px) {
  body.sidebar-collapsed .layout-wrapper > .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Slim left-edge tab to reopen sidebar (arrow only; does not cover the page) */
button.sidebar-floating-reopen {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 52px;
  padding: 0;
  margin: 0;
  border: 2px solid #2a1810;
  border-left: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  font-family: inherit;
  color: #f5e6c8 !important;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0px, transparent 2px, transparent 5px, rgba(0, 0, 0, 0.05) 7px),
    linear-gradient(155deg, #5c4333 0%, #3d2818 45%, #2a1a10 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    4px 4px 14px rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  /* Stay vertically centered: global .nav-btn:hover uses translateY(-1px) and would override this */
  transform: translateY(-50%) translateZ(0);
}

button.sidebar-floating-reopen:hover,
button.sidebar-floating-reopen:focus,
button.sidebar-floating-reopen:active {
  transform: translateY(-50%) translateZ(0) !important;
  filter: brightness(1.06);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0px, transparent 2px, transparent 5px, rgba(0, 0, 0, 0.05) 7px),
    linear-gradient(155deg, #5c4333 0%, #3d2818 45%, #2a1a10 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    4px 4px 14px rgba(0, 0, 0, 0.35) !important;
}

button.sidebar-floating-reopen:focus-visible {
  outline: 2px solid #daa520;
  outline-offset: 2px;
}

button.sidebar-floating-reopen .material-icons {
  font-size: 1.45rem;
  margin-left: -2px;
}

body.sidebar-collapsed button.sidebar-floating-reopen {
  display: inline-flex;
}

/* Skeuomorphic theme overrides for all container instances - Each theme has its own specific rules below */

/* Auth box (signup/login) - Tan leather panel on all auth pages */
body .auth-box {
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.04) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #8b7355 0%, #a08060 35%, #b8956e 50%, #a08060 65%, #8b7355 100%) !important;
  border: 3px solid #5c4033 !important;
  border-radius: 20px !important;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.35),
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    inset 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px 0 0 rgba(0, 0, 0, 0.15) !important;
  background-blend-mode: multiply, multiply, normal !important;
}
body .auth-box h1,
body .auth-box .auth-subtitle { color: #2d2520 !important; text-shadow: 0 1px 2px rgba(255,255,255,0.3) !important; }
body .auth-box .form-label { color: #2d2520 !important; }
body .auth-box .auth-footer,
body .auth-box .auth-footer a { color: #e8dcc8 !important; }
body .auth-box .auth-footer a:hover { color: #fff !important; text-decoration: underline !important; }

/* Auth submit button - Glossy green (realistic button) */
body .auth-btn {
  border: none !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(0, 0, 0, 0.05) 51%,
      rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #7ed97e 0%, #5cb85c 50%, #4cae4c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.8) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    inset -1px 0 0 rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
body .auth-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(0, 0, 0, 0.3) !important;
}
body .auth-btn:active:not(:disabled) { transform: translateY(0) !important; }

/* Legacy Theme - Brown leather container (no PNG) */
body.legacy-theme-active .layout-wrapper>.container,
body.legacy-theme-active .container,
body.legacy-theme-active .profile .container,
body.legacy-theme-active body>.layout-wrapper>.container,
body.legacy-theme-active.homepage .container,
body.homepage.legacy-theme-active .container,
body[data-user-theme="legacy"] .layout-wrapper>.container,
body[data-user-theme="legacy"] .container,
body[data-user-theme="legacy"] .profile .container,
body[data-user-theme="legacy"] body>.layout-wrapper>.container {
  /* Brown leather texture - no PNG */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%) !important;
  border: 4px solid #2a1810 !important;
  border-radius: 20px !important;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4) !important;
}

/* Force legacy container background with even higher specificity - covers all pages */
html body.legacy-theme-active .layout-wrapper>.container,
html body.legacy-theme-active .container,
html body.legacy-theme-active .profile .container,
html body.legacy-theme-active body>.layout-wrapper>.container,
html body.legacy-theme-active .profile .layout-wrapper>.container,
html body.legacy-theme-active .homepage .container,
html body.legacy-theme-active.homepage .container,
html body.homepage.legacy-theme-active .container,
html body.legacy-theme-active .explore .container,
html body.legacy-theme-active .project .container,
html body.legacy-theme-active .create .container,
html body.legacy-theme-active .fandom .container,
html body.legacy-theme-active .store .container,
html body.legacy-theme-active .settings .container,
html body.legacy-theme-active .trending .container,
html body.legacy-theme-active .characters .container {
  /* Brown leather texture - no PNG */
  background:
    repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0, 0, 0, 0.02) 0px,
      transparent 2px,
      transparent 4px,
      rgba(0, 0, 0, 0.02) 6px),
    linear-gradient(135deg, #3d2817 0%, #5c3d2e 50%, #3d2817 100%) !important;
  border: 4px solid #2a1810 !important;
  border-radius: 20px !important;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4) !important;
}

/* Layout wrapper - Standard for all pages */
.layout-wrapper,
body>.layout-wrapper,
.profile .layout-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  max-width: 1800px !important;
  width: 90vw !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ============================================ */
/* END UNIVERSAL STANDARDIZATION */
/* ============================================ */

/* Main content inside containers */
.main-content {
  flex: 1 !important;
  padding: 30px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* Sidebar nav buttons */
.layout-wrapper>.sidebar .nav-buttons {
  width: 65% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  padding-bottom: 40px !important;
  margin-bottom: 20px !important;
  flex-shrink: 0 !important;
}

/* Logo inside sidebar - BIGGER SIZE */
.sidebar .logo {
  flex-shrink: 0 !important;
  margin-bottom: 25px !important;
  margin-top: 10px !important;
}

.sidebar .logo .logo-text-img {
  height: 80px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Hide scrollbar but keep scroll functionality */
.sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Firefox - hide scrollbar */
.sidebar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Site Footer with Version - Enhanced */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 0;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1f);
  border-top: 2px solid #3a3a4a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: var(--default-font-family, 'Shrikhand');
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 40px 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-version {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

#version-number {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 4px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 6px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer-social-link .material-icons {
  font-size: 18px;
  vertical-align: middle;
}

.footer-social-link:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
}

.footer-social-link.instagram:hover {
  color: #E4405F;
}

.footer-social-link.youtube:hover {
  color: #FF0000;
}

.footer-social-link.tiktok:hover {
  color: #000000;
}

.footer-social-link.whatsapp:hover {
  color: #25d366;
}

.footer-social-link.discord:hover {
  color: #5865F2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Community Section Styling */
.community-section {
  margin-top: 35px;
  background: linear-gradient(145deg, #fef3c7, #fde68a, #fcd34d);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.15),
    inset 0 3px 8px rgba(255, 255, 255, 0.8),
    inset 0 -3px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #f59e0b;
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.community-section .card-header {
  position: relative;
  z-index: 2;
}

.community-section .card-header h2 {
  color: #92400e !important;
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.community-content {
  padding: 0;
  position: relative;
  z-index: 2;
}

.community-text {
  font-size: 1.1rem;
  color: #78350f !important;
  margin-bottom: 25px;
  line-height: 1.6;
  font-weight: 600;
}

.social-links-container {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 3px solid rgba(120, 53, 15, 0.3);
  border-radius: 16px;
  text-decoration: none;
  color: #92400e !important;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow:
    0 6px 16px rgba(120, 53, 15, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 24px rgba(120, 53, 15, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(0, 0, 0, 0.1);
  border-color: rgba(120, 53, 15, 0.5);
  color: #92400e !important;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 0, 0, 0.4);
  color: #000000 !important;
}

.social-link.instagram:hover {
  background: linear-gradient(145deg, rgba(228, 64, 95, 0.3), rgba(228, 64, 95, 0.2));
  border-color: rgba(228, 64, 95, 0.5);
  color: #000000 !important;
}

.social-link.youtube:hover {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.2));
  border-color: rgba(255, 0, 0, 0.5);
  color: #000000 !important;
}

.social-link.tiktok:hover {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
  border-color: rgba(0, 0, 0, 0.5);
  color: #FFFFFF !important;
}

.social-link.whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
  border-color: #075e54;
}

.social-link.whatsapp:hover {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.3), rgba(18, 140, 126, 0.2));
  border-color: rgba(7, 94, 84, 0.5);
  color: #000000 !important;
}

.social-link.discord {
  background: linear-gradient(145deg, #5865F2, #4752C4);
  border-color: #3C45A5;
}

.social-link.discord:hover {
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.3), rgba(71, 82, 196, 0.2));
  border-color: rgba(60, 69, 165, 0.5);
  color: #000000 !important;
}

.social-icon {
  font-size: 24px;
  vertical-align: middle;
  color: #000000 !important;
}

.social-label {
  font-size: 0.95rem;
  color: #000000 !important;
}

.community-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.community-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-stat-item .stat-icon {
  font-size: 20px;
  color: #000000 !important;
}

.community-stat-item .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000 !important;
}

.community-stat-item .stat-label {
  font-size: 0.9rem;
  color: #000000 !important;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .social-links-container {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }

  .community-stats {
    flex-direction: column;
    gap: 15px;
  }

  .footer-content {
    padding: 14px;
  }
}

/* Home page now uses the same sidebar width as all pages */

/* Normalize sidebar button sizing across all pages */
.layout-wrapper>.sidebar .nav-buttons .nav-btn,
.layout-wrapper>.sidebar .nav-auth-buttons .nav-btn {
  padding: 10px 0 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  height: auto !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* ============================================ */
/* SKEUOMORPHIC THEME SYSTEM - MAIN THEME BASE */
/* ============================================ */
/* This is the official main theme structure */
/* All color variations use this same structure */

/* Global button outline removal for all CSS-based themes (default: no border outline) */
.skeuomorphic-white-theme .nav-btn,
.skeuomorphic-white-theme .btn,
.skeuomorphic-white-theme button,
.skeuomorphic-white-theme .action-btn,
.skeuomorphic-white-theme .tab-btn,
.skeuomorphic-blue-theme .nav-btn,
.skeuomorphic-blue-theme .btn,
.skeuomorphic-blue-theme button,
.skeuomorphic-blue-theme .action-btn,
.skeuomorphic-blue-theme .tab-btn,
.skeuomorphic-green-theme .nav-btn,
.skeuomorphic-green-theme .btn,
.skeuomorphic-green-theme button,
.skeuomorphic-green-theme .action-btn,
.skeuomorphic-green-theme .tab-btn,
.skeuomorphic-purple-theme .nav-btn,
.skeuomorphic-purple-theme .btn,
.skeuomorphic-purple-theme button,
.skeuomorphic-purple-theme .action-btn,
.skeuomorphic-purple-theme .tab-btn,
.skeuomorphic-orange-theme .nav-btn,
.skeuomorphic-orange-theme .btn,
.skeuomorphic-orange-theme button,
.skeuomorphic-orange-theme .action-btn,
.skeuomorphic-orange-theme .tab-btn,
.skeuomorphic-pink-theme .nav-btn,
.skeuomorphic-pink-theme .btn,
.skeuomorphic-pink-theme button,
.skeuomorphic-pink-theme .action-btn,
.skeuomorphic-pink-theme .tab-btn,
.skeuomorphic-black-theme .nav-btn,
.skeuomorphic-black-theme .btn,
.skeuomorphic-black-theme button,
.skeuomorphic-black-theme .action-btn,
.skeuomorphic-black-theme .tab-btn,
.skeuomorphic-yellow-theme .nav-btn,
.skeuomorphic-yellow-theme .btn,
.skeuomorphic-yellow-theme button,
.skeuomorphic-yellow-theme .action-btn,
.skeuomorphic-yellow-theme .tab-btn,
.skeuomorphic-green-bg-theme .nav-btn,
.skeuomorphic-green-bg-theme .btn,
.skeuomorphic-green-bg-theme button,
.skeuomorphic-green-bg-theme .action-btn,
.skeuomorphic-green-bg-theme .tab-btn,
.skeuomorphic-blue-bg-theme .nav-btn,
.skeuomorphic-blue-bg-theme .btn,
.skeuomorphic-blue-bg-theme button,
.skeuomorphic-blue-bg-theme .action-btn,
.skeuomorphic-blue-bg-theme .tab-btn,
.skeuomorphic-red-theme .nav-btn,
.skeuomorphic-red-theme .btn,
.skeuomorphic-red-theme button,
.skeuomorphic-red-theme .action-btn,
.skeuomorphic-red-theme .tab-btn,
.skeuomorphic-dorfic-theme .nav-btn,
.skeuomorphic-dorfic-theme .btn,
.skeuomorphic-dorfic-theme button,
.skeuomorphic-dorfic-theme .action-btn,
.skeuomorphic-dorfic-theme .tab-btn,
.white-background-theme .nav-btn,
.white-background-theme .btn,
.white-background-theme button,
.white-background-theme .action-btn,
.white-background-theme .tab-btn {
  outline: none !important;
}

/* All themes use button PNGs (like explore) and no border */
.white-background-theme .nav-btn,
.skeuomorphic-white-theme .nav-btn,
.skeuomorphic-blue-theme .nav-btn,
.skeuomorphic-green-theme .nav-btn,
.skeuomorphic-purple-theme .nav-btn,
.skeuomorphic-orange-theme .nav-btn,
.skeuomorphic-pink-theme .nav-btn,
.skeuomorphic-black-theme .nav-btn,
.skeuomorphic-yellow-theme .nav-btn,
.skeuomorphic-green-bg-theme .nav-btn,
.skeuomorphic-blue-bg-theme .nav-btn,
.skeuomorphic-red-theme .nav-btn,
.skeuomorphic-dorfic-theme .nav-btn {
  background: url('GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
}
.white-background-theme .nav-btn:hover,
.white-background-theme .nav-btn.active,
.skeuomorphic-white-theme .nav-btn:hover,
.skeuomorphic-white-theme .nav-btn.active,
.skeuomorphic-blue-theme .nav-btn:hover,
.skeuomorphic-blue-theme .nav-btn.active,
.skeuomorphic-green-theme .nav-btn:hover,
.skeuomorphic-green-theme .nav-btn.active,
.skeuomorphic-purple-theme .nav-btn:hover,
.skeuomorphic-purple-theme .nav-btn.active,
.skeuomorphic-orange-theme .nav-btn:hover,
.skeuomorphic-orange-theme .nav-btn.active,
.skeuomorphic-pink-theme .nav-btn:hover,
.skeuomorphic-pink-theme .nav-btn.active,
.skeuomorphic-black-theme .nav-btn:hover,
.skeuomorphic-black-theme .nav-btn.active,
.skeuomorphic-yellow-theme .nav-btn:hover,
.skeuomorphic-yellow-theme .nav-btn.active,
.skeuomorphic-green-bg-theme .nav-btn:hover,
.skeuomorphic-green-bg-theme .nav-btn.active,
.skeuomorphic-blue-bg-theme .nav-btn:hover,
.skeuomorphic-blue-bg-theme .nav-btn.active,
.skeuomorphic-red-theme .nav-btn:hover,
.skeuomorphic-red-theme .nav-btn.active,
.skeuomorphic-dorfic-theme .nav-btn:hover,
.skeuomorphic-dorfic-theme .nav-btn.active {
  background: url('GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
}

/* Non-default themes: white skeuomorphic container (not colored) and hide stitches */
.skeuomorphic-blue-theme .container,
.skeuomorphic-blue-theme .layout-wrapper>.container,
.skeuomorphic-blue-theme .profile .container,
.skeuomorphic-green-theme .container,
.skeuomorphic-green-theme .layout-wrapper>.container,
.skeuomorphic-green-theme .profile .container,
.skeuomorphic-purple-theme .container,
.skeuomorphic-purple-theme .layout-wrapper>.container,
.skeuomorphic-purple-theme .profile .container,
.skeuomorphic-orange-theme .container,
.skeuomorphic-orange-theme .layout-wrapper>.container,
.skeuomorphic-orange-theme .profile .container,
.skeuomorphic-pink-theme .container,
.skeuomorphic-pink-theme .layout-wrapper>.container,
.skeuomorphic-pink-theme .profile .container,
.skeuomorphic-black-theme .container,
.skeuomorphic-black-theme .layout-wrapper>.container,
.skeuomorphic-black-theme .profile .container,
.skeuomorphic-yellow-theme .container,
.skeuomorphic-yellow-theme .layout-wrapper>.container,
.skeuomorphic-yellow-theme .profile .container,
.skeuomorphic-green-bg-theme .container,
.skeuomorphic-green-bg-theme .layout-wrapper>.container,
.skeuomorphic-green-bg-theme .profile .container,
.skeuomorphic-blue-bg-theme .container,
.skeuomorphic-blue-bg-theme .layout-wrapper>.container,
.skeuomorphic-blue-bg-theme .profile .container,
.skeuomorphic-red-theme .container,
.skeuomorphic-red-theme .layout-wrapper>.container,
.skeuomorphic-red-theme .profile .container,
.skeuomorphic-dorfic-theme .container,
.skeuomorphic-dorfic-theme .layout-wrapper>.container,
.skeuomorphic-dorfic-theme .profile .container {
  background: linear-gradient(145deg, #f5f6f8, #e8eaed) !important;
  background-image: none !important;
  border: 3px solid #c0c4c8 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.08) !important;
}
.skeuomorphic-blue-theme .sidebar::before,
.skeuomorphic-green-theme .sidebar::before,
.skeuomorphic-purple-theme .sidebar::before,
.skeuomorphic-orange-theme .sidebar::before,
.skeuomorphic-pink-theme .sidebar::before,
.skeuomorphic-black-theme .sidebar::before,
.skeuomorphic-yellow-theme .sidebar::before,
.skeuomorphic-green-bg-theme .sidebar::before,
.skeuomorphic-blue-bg-theme .sidebar::before,
.skeuomorphic-red-theme .sidebar::before,
.skeuomorphic-dorfic-theme .sidebar::before,
.white-background-theme .sidebar::before,
.skeuomorphic-white-theme .sidebar::before,
.skeuomorphic-blue-theme .container::before,
.skeuomorphic-green-theme .container::before,
.skeuomorphic-purple-theme .container::before,
.skeuomorphic-orange-theme .container::before,
.skeuomorphic-pink-theme .container::before,
.skeuomorphic-black-theme .container::before,
.skeuomorphic-yellow-theme .container::before,
.skeuomorphic-green-bg-theme .container::before,
.skeuomorphic-blue-bg-theme .container::before,
.skeuomorphic-red-theme .container::before,
.skeuomorphic-dorfic-theme .container::before,
.white-background-theme .container::before,
.skeuomorphic-white-theme .container::before {
  display: none !important;
}
.skeuomorphic-blue-theme #fixed-stitching,
.skeuomorphic-green-theme #fixed-stitching,
.skeuomorphic-purple-theme #fixed-stitching,
.skeuomorphic-orange-theme #fixed-stitching,
.skeuomorphic-pink-theme #fixed-stitching,
.skeuomorphic-black-theme #fixed-stitching,
.skeuomorphic-yellow-theme #fixed-stitching,
.skeuomorphic-green-bg-theme #fixed-stitching,
.skeuomorphic-blue-bg-theme #fixed-stitching,
.skeuomorphic-red-theme #fixed-stitching,
.skeuomorphic-dorfic-theme #fixed-stitching,
.white-background-theme #fixed-stitching,
.skeuomorphic-white-theme #fixed-stitching {
  display: none !important;
}

/* Base Skeuomorphic Theme Mixin - White (Original) */
.white-background-theme .sidebar,
.skeuomorphic-white-theme .sidebar,
.white-background-theme .layout-wrapper>.sidebar,
.white-background-theme .layout-wrapper>aside.sidebar,
.white-background-theme aside.sidebar,
.white-background-theme .profile .sidebar,
.white-background-theme body>.layout-wrapper>.sidebar,
.skeuomorphic-white-theme .layout-wrapper>.sidebar,
.skeuomorphic-white-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-white-theme aside.sidebar,
.skeuomorphic-white-theme .profile .sidebar,
.skeuomorphic-white-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #f5f5f5, #e8e8e8) !important;
  background-image: none !important;
  background-color: #f5f5f5 !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.white-background-theme .container,
.skeuomorphic-white-theme .container,
.white-background-theme .layout-wrapper>.container,
.white-background-theme .profile .container,
.white-background-theme body>.layout-wrapper>.container,
.skeuomorphic-white-theme .layout-wrapper>.container,
.skeuomorphic-white-theme .profile .container,
.skeuomorphic-white-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #f5f5f5, #e8e8e8) !important;
  background-image: none !important;
  background-color: #f5f5f5 !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* --- Skeuomorphic Theme - Buttons (White) --- */
.white-background-theme .sidebar .nav-btn,
.white-background-theme .nav-btn,
.skeuomorphic-white-theme .sidebar .nav-btn,
.skeuomorphic-white-theme .nav-btn {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0) !important;
  background-image: none !important;
  border: 3px solid #c8c8c8 !important;
  border-radius: 10px !important;
  color: #333333 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.white-background-theme .sidebar .nav-btn:hover,
.skeuomorphic-white-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #e8e8e8, #d8d8d8) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.white-background-theme .sidebar .nav-btn.active,
.white-background-theme .nav-btn.active,
.skeuomorphic-white-theme .sidebar .nav-btn.active,
.skeuomorphic-white-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.white-background-theme .sidebar .nav-btn.active:hover,
.skeuomorphic-white-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.white-background-theme .sidebar .nav-btn:disabled,
.white-background-theme .nav-btn:disabled,
.white-background-theme .sidebar .nav-btn[disabled],
.white-background-theme .nav-btn[disabled],
.skeuomorphic-white-theme .sidebar .nav-btn:disabled,
.skeuomorphic-white-theme .nav-btn:disabled,
.skeuomorphic-white-theme .sidebar .nav-btn[disabled],
.skeuomorphic-white-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.white-background-theme .sidebar .nav-btn:disabled:hover,
.white-background-theme .nav-btn:disabled:hover,
.white-background-theme .sidebar .nav-btn[disabled]:hover,
.white-background-theme .nav-btn[disabled]:hover,
.skeuomorphic-white-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-white-theme .nav-btn:disabled:hover,
.skeuomorphic-white-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-white-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================ */
/* SKEUOMORPHIC THEME VARIATIONS - COLOR THEMES */
/* ============================================ */

/* --- Blue Skeuomorphic Theme --- */
.skeuomorphic-blue-theme .sidebar,
.skeuomorphic-blue-theme .layout-wrapper>.sidebar,
.skeuomorphic-blue-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-blue-theme aside.sidebar,
.skeuomorphic-blue-theme .profile .sidebar,
.skeuomorphic-blue-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb) !important;
  background-image: none !important;
  background-color: #e3f2fd !important;
  border: 3px solid #90caf9 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(33, 150, 243, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(33, 150, 243, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-blue-theme .container,
.skeuomorphic-blue-theme .layout-wrapper>.container,
.skeuomorphic-blue-theme .profile .container,
.skeuomorphic-blue-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb) !important;
  background-image: none !important;
  background-color: #e3f2fd !important;
  border: 3px solid #90caf9 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(33, 150, 243, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(33, 150, 243, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn,
.skeuomorphic-blue-theme .nav-btn {
  background: linear-gradient(145deg, #e1f5fe, #b3e5fc) !important;
  background-image: none !important;
  border: 3px solid #81d4fa !important;
  border-radius: 10px !important;
  color: #0277bd !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(33, 150, 243, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(33, 150, 243, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #b3e5fc, #81d4fa) !important;
  box-shadow:
    0 6px 12px rgba(33, 150, 243, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(33, 150, 243, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn.active,
.skeuomorphic-blue-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn:disabled,
.skeuomorphic-blue-theme .nav-btn:disabled,
.skeuomorphic-blue-theme .sidebar .nav-btn[disabled],
.skeuomorphic-blue-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-blue-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-blue-theme .nav-btn:disabled:hover,
.skeuomorphic-blue-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-blue-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Green Skeuomorphic Theme --- */
.skeuomorphic-green-theme .sidebar,
.skeuomorphic-green-theme .layout-wrapper>.sidebar,
.skeuomorphic-green-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-green-theme aside.sidebar,
.skeuomorphic-green-theme .profile .sidebar,
.skeuomorphic-green-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9) !important;
  background-image: none !important;
  background-color: #e8f5e9 !important;
  border: 3px solid #a5d6a7 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(76, 175, 80, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(76, 175, 80, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-green-theme .container,
.skeuomorphic-green-theme .layout-wrapper>.container,
.skeuomorphic-green-theme .profile .container,
.skeuomorphic-green-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9) !important;
  background-image: none !important;
  background-color: #e8f5e9 !important;
  border: 3px solid #a5d6a7 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(76, 175, 80, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(76, 175, 80, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn,
.skeuomorphic-green-theme .nav-btn {
  background: linear-gradient(145deg, #f1f8e9, #dcedc8) !important;
  background-image: none !important;
  border: 3px solid #9ccc65 !important;
  border-radius: 10px !important;
  color: #2e7d32 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(76, 175, 80, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(76, 175, 80, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #dcedc8, #c5e1a5) !important;
  box-shadow:
    0 6px 12px rgba(76, 175, 80, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(76, 175, 80, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn.active,
.skeuomorphic-green-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn:disabled,
.skeuomorphic-green-theme .nav-btn:disabled,
.skeuomorphic-green-theme .sidebar .nav-btn[disabled],
.skeuomorphic-green-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-green-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-green-theme .nav-btn:disabled:hover,
.skeuomorphic-green-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-green-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Purple Skeuomorphic Theme --- */
.skeuomorphic-purple-theme .sidebar,
.skeuomorphic-purple-theme .layout-wrapper>.sidebar,
.skeuomorphic-purple-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-purple-theme aside.sidebar,
.skeuomorphic-purple-theme .profile .sidebar,
.skeuomorphic-purple-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #f3e5f5, #e1bee7) !important;
  background-image: none !important;
  background-color: #f3e5f5 !important;
  border: 3px solid #ce93d8 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(156, 39, 176, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(156, 39, 176, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-purple-theme .container,
.skeuomorphic-purple-theme .layout-wrapper>.container,
.skeuomorphic-purple-theme .profile .container,
.skeuomorphic-purple-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #f3e5f5, #e1bee7) !important;
  background-image: none !important;
  background-color: #f3e5f5 !important;
  border: 3px solid #ce93d8 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(156, 39, 176, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(156, 39, 176, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn,
.skeuomorphic-purple-theme .nav-btn {
  background: linear-gradient(145deg, #fce4ec, #f8bbd0) !important;
  background-image: none !important;
  border: 3px solid #f48fb1 !important;
  border-radius: 10px !important;
  color: #880e4f !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(156, 39, 176, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(156, 39, 176, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #f8bbd0, #f48fb1) !important;
  box-shadow:
    0 6px 12px rgba(156, 39, 176, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(156, 39, 176, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn.active,
.skeuomorphic-purple-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn:disabled,
.skeuomorphic-purple-theme .nav-btn:disabled,
.skeuomorphic-purple-theme .sidebar .nav-btn[disabled],
.skeuomorphic-purple-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-purple-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-purple-theme .nav-btn:disabled:hover,
.skeuomorphic-purple-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-purple-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Orange Skeuomorphic Theme --- */
.skeuomorphic-orange-theme .sidebar,
.skeuomorphic-orange-theme .layout-wrapper>.sidebar,
.skeuomorphic-orange-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-orange-theme aside.sidebar,
.skeuomorphic-orange-theme .profile .sidebar,
.skeuomorphic-orange-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2) !important;
  background-image: none !important;
  background-color: #fff3e0 !important;
  border: 3px solid #ffcc80 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 152, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 152, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-orange-theme .container,
.skeuomorphic-orange-theme .layout-wrapper>.container,
.skeuomorphic-orange-theme .profile .container,
.skeuomorphic-orange-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2) !important;
  background-image: none !important;
  background-color: #fff3e0 !important;
  border: 3px solid #ffcc80 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 152, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 152, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn,
.skeuomorphic-orange-theme .nav-btn {
  background: linear-gradient(145deg, #fff8e1, #ffecb3) !important;
  background-image: none !important;
  border: 3px solid #ffe082 !important;
  border-radius: 10px !important;
  color: #e65100 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(255, 152, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 152, 0, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #ffecb3, #ffe082) !important;
  box-shadow:
    0 6px 12px rgba(255, 152, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 152, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn.active,
.skeuomorphic-orange-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn:disabled,
.skeuomorphic-orange-theme .nav-btn:disabled,
.skeuomorphic-orange-theme .sidebar .nav-btn[disabled],
.skeuomorphic-orange-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-orange-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-orange-theme .nav-btn:disabled:hover,
.skeuomorphic-orange-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-orange-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Pink Skeuomorphic Theme --- */
.skeuomorphic-pink-theme .sidebar,
.skeuomorphic-pink-theme .layout-wrapper>.sidebar,
.skeuomorphic-pink-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-pink-theme aside.sidebar,
.skeuomorphic-pink-theme .profile .sidebar,
.skeuomorphic-pink-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #fce4ec, #f8bbd0) !important;
  background-image: none !important;
  background-color: #fce4ec !important;
  border: 3px solid #f48fb1 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(236, 64, 122, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(236, 64, 122, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-pink-theme .container,
.skeuomorphic-pink-theme .layout-wrapper>.container,
.skeuomorphic-pink-theme .profile .container,
.skeuomorphic-pink-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #fce4ec, #f8bbd0) !important;
  background-image: none !important;
  background-color: #fce4ec !important;
  border: 3px solid #f48fb1 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(236, 64, 122, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(236, 64, 122, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn,
.skeuomorphic-pink-theme .nav-btn {
  background: linear-gradient(145deg, #f8bbd0, #f48fb1) !important;
  background-image: none !important;
  border: 3px solid #f06292 !important;
  border-radius: 10px !important;
  color: #880e4f !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(236, 64, 122, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(236, 64, 122, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #f48fb1, #f06292) !important;
  box-shadow:
    0 6px 12px rgba(236, 64, 122, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(236, 64, 122, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn.active,
.skeuomorphic-pink-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn:disabled,
.skeuomorphic-pink-theme .nav-btn:disabled,
.skeuomorphic-pink-theme .sidebar .nav-btn[disabled],
.skeuomorphic-pink-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-pink-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-pink-theme .nav-btn:disabled:hover,
.skeuomorphic-pink-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-pink-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Black Skeuomorphic Theme --- */
.skeuomorphic-black-theme .sidebar,
.skeuomorphic-black-theme .layout-wrapper>.sidebar,
.skeuomorphic-black-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-black-theme aside.sidebar,
.skeuomorphic-black-theme .profile .sidebar,
.skeuomorphic-black-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #ffffff, #f5f5f5) !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 0.8),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  color: #000000 !important;
}

.skeuomorphic-black-theme .container,
.skeuomorphic-black-theme .layout-wrapper>.container,
.skeuomorphic-black-theme .profile .container,
.skeuomorphic-black-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #ffffff, #f5f5f5) !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 0.8),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Black theme text colors - set base text color to black for sidebar/container content */
/* Elements with their own colors (buttons, links, etc.) will override this */
.skeuomorphic-black-theme .sidebar {
  color: #000000 !important;
}

.skeuomorphic-black-theme .container {
  color: #000000 !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn,
.skeuomorphic-black-theme .nav-btn {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0) !important;
  background-image: none !important;
  border: 3px solid #d0d0d0 !important;
  border-radius: 10px !important;
  color: #000000 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #e8e8e8, #d8d8d8) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn.active,
.skeuomorphic-black-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn:disabled,
.skeuomorphic-black-theme .nav-btn:disabled,
.skeuomorphic-black-theme .sidebar .nav-btn[disabled],
.skeuomorphic-black-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #d0d0d0, #c0c0c0) !important;
  border: 3px solid #b0b0b0 !important;
  color: #666666 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-black-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-black-theme .nav-btn:disabled:hover,
.skeuomorphic-black-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-black-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Yellow Skeuomorphic Theme --- */
.skeuomorphic-yellow-theme .sidebar,
.skeuomorphic-yellow-theme .layout-wrapper>.sidebar,
.skeuomorphic-yellow-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-yellow-theme aside.sidebar,
.skeuomorphic-yellow-theme .profile .sidebar,
.skeuomorphic-yellow-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #fff9c4, #fff59d) !important;
  background-image: none !important;
  background-color: #fff9c4 !important;
  border: 3px solid #fdd835 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 193, 7, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 193, 7, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-yellow-theme .container,
.skeuomorphic-yellow-theme .layout-wrapper>.container,
.skeuomorphic-yellow-theme .profile .container,
.skeuomorphic-yellow-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #fff9c4, #fff59d) !important;
  background-image: none !important;
  background-color: #fff9c4 !important;
  border: 3px solid #fdd835 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 193, 7, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 193, 7, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn,
.skeuomorphic-yellow-theme .nav-btn {
  background: linear-gradient(145deg, #fffde7, #fff9c4) !important;
  background-image: none !important;
  border: 3px solid #fff59d !important;
  border-radius: 10px !important;
  color: #f57f17 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(255, 193, 7, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 193, 7, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #fff9c4, #fff59d) !important;
  box-shadow:
    0 6px 12px rgba(255, 193, 7, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 193, 7, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn.active,
.skeuomorphic-yellow-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn:disabled,
.skeuomorphic-yellow-theme .nav-btn:disabled,
.skeuomorphic-yellow-theme .sidebar .nav-btn[disabled],
.skeuomorphic-yellow-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-yellow-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-yellow-theme .nav-btn:disabled:hover,
.skeuomorphic-yellow-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-yellow-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Green Background Skeuomorphic Theme --- */
.skeuomorphic-green-bg-theme .sidebar,
.skeuomorphic-green-bg-theme .layout-wrapper>.sidebar,
.skeuomorphic-green-bg-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-green-bg-theme aside.sidebar,
.skeuomorphic-green-bg-theme .profile .sidebar,
.skeuomorphic-green-bg-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #c8e6c9, #a5d6a7) !important;
  background-image: none !important;
  background-color: #c8e6c9 !important;
  border: 3px solid #81c784 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(76, 175, 80, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(76, 175, 80, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-green-bg-theme .container,
.skeuomorphic-green-bg-theme .layout-wrapper>.container,
.skeuomorphic-green-bg-theme .profile .container,
.skeuomorphic-green-bg-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #c8e6c9, #a5d6a7) !important;
  background-image: none !important;
  background-color: #c8e6c9 !important;
  border: 3px solid #81c784 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(76, 175, 80, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(76, 175, 80, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn,
.skeuomorphic-green-bg-theme .nav-btn {
  background: linear-gradient(145deg, #dcedc8, #c5e1a5) !important;
  background-image: none !important;
  border: 3px solid #aed581 !important;
  border-radius: 10px !important;
  color: #1b5e20 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(76, 175, 80, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(76, 175, 80, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #c5e1a5, #aed581) !important;
  box-shadow:
    0 6px 12px rgba(76, 175, 80, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(76, 175, 80, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn.active,
.skeuomorphic-green-bg-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn:disabled,
.skeuomorphic-green-bg-theme .nav-btn:disabled,
.skeuomorphic-green-bg-theme .sidebar .nav-btn[disabled],
.skeuomorphic-green-bg-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-green-bg-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-green-bg-theme .nav-btn:disabled:hover,
.skeuomorphic-green-bg-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-green-bg-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Blue Background Skeuomorphic Theme --- */
.skeuomorphic-blue-bg-theme .sidebar,
.skeuomorphic-blue-bg-theme .layout-wrapper>.sidebar,
.skeuomorphic-blue-bg-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-blue-bg-theme aside.sidebar,
.skeuomorphic-blue-bg-theme .profile .sidebar,
.skeuomorphic-blue-bg-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #b3e5fc, #81d4fa) !important;
  background-image: none !important;
  background-color: #b3e5fc !important;
  border: 3px solid #4fc3f7 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(3, 169, 244, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(3, 169, 244, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-blue-bg-theme .container,
.skeuomorphic-blue-bg-theme .layout-wrapper>.container,
.skeuomorphic-blue-bg-theme .profile .container,
.skeuomorphic-blue-bg-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #b3e5fc, #81d4fa) !important;
  background-image: none !important;
  background-color: #b3e5fc !important;
  border: 3px solid #4fc3f7 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(3, 169, 244, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(3, 169, 244, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn,
.skeuomorphic-blue-bg-theme .nav-btn {
  background: linear-gradient(145deg, #b3e5fc, #81d4fa) !important;
  background-image: none !important;
  border: 3px solid #29b6f6 !important;
  border-radius: 10px !important;
  color: #01579b !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(3, 169, 244, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(3, 169, 244, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #81d4fa, #4fc3f7) !important;
  box-shadow:
    0 6px 12px rgba(3, 169, 244, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(3, 169, 244, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn.active,
.skeuomorphic-blue-bg-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn:disabled,
.skeuomorphic-blue-bg-theme .nav-btn:disabled,
.skeuomorphic-blue-bg-theme .sidebar .nav-btn[disabled],
.skeuomorphic-blue-bg-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-blue-bg-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-blue-bg-theme .nav-btn:disabled:hover,
.skeuomorphic-blue-bg-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-blue-bg-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Red Skeuomorphic Theme --- */
.skeuomorphic-red-theme .sidebar,
.skeuomorphic-red-theme .layout-wrapper>.sidebar,
.skeuomorphic-red-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-red-theme aside.sidebar,
.skeuomorphic-red-theme .profile .sidebar,
.skeuomorphic-red-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #ffcdd2, #ef9a9a) !important;
  background-image: none !important;
  background-color: #ffcdd2 !important;
  border: 3px solid #e57373 !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(244, 67, 54, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(244, 67, 54, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-red-theme .container,
.skeuomorphic-red-theme .layout-wrapper>.container,
.skeuomorphic-red-theme .profile .container,
.skeuomorphic-red-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #ffcdd2, #ef9a9a) !important;
  background-image: none !important;
  background-color: #ffcdd2 !important;
  border: 3px solid #e57373 !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(244, 67, 54, 0.15),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(244, 67, 54, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn,
.skeuomorphic-red-theme .nav-btn {
  background: linear-gradient(145deg, #ffebee, #ffcdd2) !important;
  background-image: none !important;
  border: 3px solid #ef9a9a !important;
  border-radius: 10px !important;
  color: #b71c1c !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(244, 67, 54, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(244, 67, 54, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #ffcdd2, #ef9a9a) !important;
  box-shadow:
    0 6px 12px rgba(244, 67, 54, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(244, 67, 54, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn.active,
.skeuomorphic-red-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn:disabled,
.skeuomorphic-red-theme .nav-btn:disabled,
.skeuomorphic-red-theme .sidebar .nav-btn[disabled],
.skeuomorphic-red-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-red-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-red-theme .nav-btn:disabled:hover,
.skeuomorphic-red-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-red-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Dorfic (Orange Pattern) Skeuomorphic Theme --- */
.skeuomorphic-dorfic-theme .sidebar,
.skeuomorphic-dorfic-theme .layout-wrapper>.sidebar,
.skeuomorphic-dorfic-theme .layout-wrapper>aside.sidebar,
.skeuomorphic-dorfic-theme aside.sidebar,
.skeuomorphic-dorfic-theme .profile .sidebar,
.skeuomorphic-dorfic-theme body>.layout-wrapper>.sidebar {
  background: linear-gradient(145deg, #ffe0b2, #ffcc80) !important;
  background-image: none !important;
  background-color: #ffe0b2 !important;
  border: 3px solid #ffb74d !important;
  border-radius: 24px !important;
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 152, 0, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 152, 0, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-dorfic-theme .container,
.skeuomorphic-dorfic-theme .layout-wrapper>.container,
.skeuomorphic-dorfic-theme .profile .container,
.skeuomorphic-dorfic-theme body>.layout-wrapper>.container {
  background: linear-gradient(145deg, #ffe0b2, #ffcc80) !important;
  background-image: none !important;
  background-color: #ffe0b2 !important;
  border: 3px solid #ffb74d !important;
  border-radius: 24px !important;
  border-top-right-radius: 40px !important;
  border-bottom-right-radius: 40px !important;
  box-shadow:
    0 10px 20px rgba(255, 152, 0, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 8px rgba(255, 152, 0, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn,
.skeuomorphic-dorfic-theme .nav-btn {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2) !important;
  background-image: none !important;
  border: 3px solid #ffcc80 !important;
  border-radius: 10px !important;
  color: #e65100 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 4px 8px rgba(255, 152, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 152, 0, 0.1) !important;
  cursor: none !important;
  transition: all 0.2s ease !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn:hover {
  background: linear-gradient(145deg, #ffe0b2, #ffcc80) !important;
  box-shadow:
    0 6px 12px rgba(255, 152, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(255, 152, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn.active,
.skeuomorphic-dorfic-theme .nav-btn.active {
  background: linear-gradient(145deg, #22c55e, #16a34a) !important;
  border: 3px solid #15803d !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 12px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.02) !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn.active:hover {
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  box-shadow:
    0 8px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: scale(1.03) translateY(-1px) !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn:disabled,
.skeuomorphic-dorfic-theme .nav-btn:disabled,
.skeuomorphic-dorfic-theme .sidebar .nav-btn[disabled],
.skeuomorphic-dorfic-theme .nav-btn[disabled] {
  background: linear-gradient(145deg, #a0a0a0, #888888) !important;
  border: 3px solid #707070 !important;
  color: #555555 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
  cursor: none !important;
  opacity: 0.7 !important;
  transform: none !important;
}

.skeuomorphic-dorfic-theme .sidebar .nav-btn:disabled:hover,
.skeuomorphic-dorfic-theme .nav-btn:disabled:hover,
.skeuomorphic-dorfic-theme .sidebar .nav-btn[disabled]:hover,
.skeuomorphic-dorfic-theme .nav-btn[disabled]:hover {
  transform: none !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* --- Liquid Glass Theme - Bright leather (consistent with default) --- */
.liquid-glass-theme .sidebar {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.15), inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 0, 0, 0.1);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.liquid-glass-theme .container {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%) !important;
  border: 2px solid #8b7355 !important;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.15), inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 0, 0, 0.1);
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.liquid-glass-theme .sidebar .nav-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  color: #0f172a !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-weight: 700;
}

.liquid-glass-theme .sidebar .nav-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* 60 FPS PERFORMANCE OPTIMIZATIONS */
/* ============================================ */

/* GPU Acceleration for all interactive elements */
.project-card,
.dashboard-card,
.announcement-card,
.announcement-preview-card:not(.friend-activity-card),
.quick-action-btn,
.message,
.conversation-item,
.user-item,
.store-item,
.achievement-card {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* CSS Containment for layout isolation - prevents reflows */
.project-card,
.dashboard-card,
.announcement-card,
.announcement-preview-card:not(.friend-activity-card),
.quick-action-btn,
.message,
.conversation-item,
.user-item,
.store-item {
  contain: layout style paint;
}

/* Optimize transitions - use transform and opacity only */
.project-card,
.dashboard-card,
.announcement-card,
.quick-action-btn {
  transition-property: transform, opacity, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.1s;
}

/* Force hardware acceleration on scroll containers */
.sidebar,
.container,
.main-content,
.projects-grid,
.users-grid,
.announcements-preview,
#comments-list,
.comments-section,
.comment-replies {
  transform: translate3d(0, 0, 0);
  will-change: scroll-position, transform;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize scrolling performance */
* {
  -webkit-overflow-scrolling: touch;
}

/* Scroll containers should use GPU */
[class*="scroll"],
[class*="Scroll"],
[style*="overflow"] {
  transform: translate3d(0, 0, 0);
  will-change: scroll-position;
}

/* Reduce repaints with content-visibility for off-screen elements */
.projects-grid>*,
.users-grid>*,
.announcements-preview>*:not(.friend-activity-card) {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}

/* 60fps Performance: Optimize backdrop-filter usage */
@media (prefers-reduced-motion: no-preference) {

  .liquid-glass-theme .sidebar,
  .liquid-glass-theme .container {
    will-change: backdrop-filter;
  }
}

/* 60fps Performance: Simplify complex shadows for better performance */
.project-card,
.dashboard-card,
.announcement-card {
  /* Use simpler shadows - browser can optimize single shadow better */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* 60fps Performance: Optimize hover transforms */
.nav-btn:hover,
.project-card:hover,
.quick-action-btn:hover {
  transform: translateY(-1px) translateZ(0) !important;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Optimize hover effects - use transform instead of position changes */
.project-card:hover,
.dashboard-card:hover,
.announcement-card:hover,
.quick-action-btn:hover {
  transform: translateY(-2px) translateZ(0);
  transition-duration: 0.1s;
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimize-contrast;
}

/* Optimize background images */
.background-clouds {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize custom cursor */
.custom-cursor {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize VHS effects */
.vhs-effect,
.vhs-effect::before,
.vhs-effect::after {
  will-change: opacity, transform;
  transform: translateZ(0);
}

/* Force disable VHS effect when not enabled - ensure no overlays appear */
/* More aggressive: disable VHS pseudo-elements unless explicitly enabled */
body:not(.vhs-effect) .vhs-effect::before,
body:not(.vhs-effect) .vhs-effect::after,
body .vhs-effect::before:not([data-vhs-enabled="true"]),
body .vhs-effect::after:not([data-vhs-enabled="true"]) {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Additional safety: If VHS is disabled in localStorage, force remove all VHS effects */
body:not([data-vhs-enabled="true"]) .vhs-effect::before,
body:not([data-vhs-enabled="true"]) .vhs-effect::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Optimize parallax elements */
.parallax,
.background-clouds {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce layout shifts */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize scrolling */
* {
  -webkit-overflow-scrolling: touch;
}

/* Optimize button interactions */
button,
.nav-btn,
.action-btn,
.quick-action-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Global Skeuomorphic Buttons – Green 3D (match project page Yeah button), large border-radius */
button:not(.nav-btn):not(.custom-cursor):not([class*="material-icons"]),
.btn:not(.nav-btn),
.action-btn:not(.nav-btn),
.tab-btn,
.range-btn,
input[type="button"],
.edit-btn,
.delete-btn,
.share-btn,
.like-btn,
.comment-btn,
.filter-btn,
.search-btn,
.clear-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  border-radius: 16px !important;
  padding: 12px 24px !important;
  color: #0f0f0f !important;
  font-weight: 600 !important;
  font-family: var(--default-font-family, 'Shrikhand') !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Glossy green – primary actions (match project page: 3D bevel, lime green, large border-radius) */
input[type="submit"],
.submit-btn,
.publish-btn,
.create-btn,
.welcome-btn-primary,
.beta-feedback-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  border-radius: 16px !important;
  color: #0f0f0f !important;
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

input[type="submit"]::before,
.submit-btn::before,
.publish-btn::before,
.create-btn::before,
.welcome-btn-primary::before,
.beta-feedback-btn::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  background: none !important;
}

button:not(.nav-btn):not(.custom-cursor):not([class*="material-icons"])::before,
.btn:not(.nav-btn)::before,
.action-btn:not(.nav-btn)::before,
.tab-btn::before,
.range-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

button:not(.nav-btn):not(.custom-cursor):not([class*="material-icons"]):hover,
.btn:not(.nav-btn):hover,
.action-btn:not(.nav-btn):hover,
.tab-btn:hover,
.range-btn:hover,
input[type="button"]:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 9px 0 0 #166534,
    0 11px 24px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

input[type="submit"]:hover,
.submit-btn:hover,
.publish-btn:hover,
.create-btn:hover,
.welcome-btn-primary:hover,
.beta-feedback-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 9px 0 0 #166534,
    0 11px 24px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

button:not(.nav-btn):not(.custom-cursor):not([class*="material-icons"]):active,
.btn:not(.nav-btn):active,
.action-btn:not(.nav-btn):active,
.tab-btn:active,
.range-btn:active,
input[type="button"]:active {
  transform: translateY(3px) !important;
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

input[type="submit"]:active,
.submit-btn:active,
.publish-btn:active,
.create-btn:active,
.welcome-btn-primary:active,
.beta-feedback-btn:active {
  transform: translateY(3px) !important;
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Optimize form elements */
input,
textarea,
select {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Optimize animations - prefer transform and opacity */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Use GPU-accelerated animations */
.fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.slide-up {
  animation: slideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* ============================================
   Items Hotbar Styling (Skeuomorphic White)
   ============================================ */

.items-hotbar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 3px solid #8b7355;
  border-radius: 20px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.12),
    inset 0 3px 6px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 1px 0 2px rgba(255, 255, 255, 0.2),
    inset -1px 0 2px rgba(0, 0, 0, 0.1);
  padding: 15px 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.items-hotbar::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.hotbar-slot {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #d4b896 0%, #e6d4b8 50%, #d4b896 100%);
  border: 2px solid #8b7355;
  border-radius: 12px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotbar-slot::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
  border-radius: 11px 11px 0 0;
  pointer-events: none;
}

.hotbar-slot:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 1px 0 2px rgba(255, 255, 255, 0.7),
    inset -1px 0 2px rgba(0, 0, 0, 0.1);
  border-color: #9ca3af;
}

.hotbar-slot:active {
  transform: scale(0.98) translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 3px 6px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

.hotbar-slot.empty {
  border: 2px dashed #8b7355;
  opacity: 0.6;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #d4b896 0%, #e6d4b8 50%, #d4b896 100%);
}

.hotbar-slot.empty:hover {
  opacity: 0.8;
  border-color: #6b7280;
}

.hotbar-slot.filled {
  border: 2px solid #9ca3af;
}

.hotbar-slot.pets-slot {
  background: linear-gradient(145deg, #fef3c7, #fde68a, #fcd34d);
  border-color: #f59e0b;
}

.hotbar-slot.pets-slot:hover {
  border-color: #d97706;
  box-shadow:
    0 6px 12px rgba(245, 158, 11, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}

.hotbar-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.hotbar-quantity-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(145deg, #ef4444, #dc2626, #b91c1c);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow:
    0 3px 6px rgba(239, 68, 68, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  z-index: 10;
}

.hotbar-slot.empty .hotbar-slot::before {
  display: none;
}

.hotbar-slot.empty>div {
  color: #6b7280;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Item Modal Styling */
.item-modal-overlay {
  animation: fadeIn 0.2s ease;
}

.item-modal {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .items-hotbar {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 20px;
    width: auto;
    flex-direction: row;
    padding: 10px 15px;
    max-width: calc(100% - 40px);
    overflow-x: auto;
    border-radius: 20px;
  }

  .items-hotbar::before {
    border-radius: 18px 18px 0 0;
  }

  .hotbar-slot {
    flex-shrink: 0;
  }
}

/* Language Selector Styles */
.language-selector-wrapper {
  position: relative;
  width: 100%;
}

.language-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 2px solid #8b7355;
  border-radius: 12px;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  animation: slideUp 0.2s ease;
}

.language-option {
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--default-font-family, 'Fugaz One'), system-ui, sans-serif;
  font-size: 14px;
  color: #374151;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.language-option:hover {
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.language-option.active {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  font-weight: 600;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Google Translate Widget Container */
#google_translate_element {
  display: none;
}

/* Settings Page Language Selector */
.settings-language-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.language-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 2px solid #8b7355;
  border-radius: 12px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.settings-language-option {
  padding: 12px 16px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--default-font-family, 'Fugaz One'), system-ui, sans-serif;
  font-size: 14px;
  color: #374151;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.settings-language-option:hover {
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.settings-language-option.active {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb);
  color: #1976d2;
  font-weight: 600;
  border-color: #90caf9;
  box-shadow:
    0 4px 8px rgba(25, 118, 210, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Welcome Modal Styles - Skeuomorphic */
.welcome-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.22s ease;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
}

.welcome-modal-overlay.show {
  opacity: 1;
}

.welcome-modal {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 3px solid #8b7355;
  border-radius: 20px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15),
    inset 0 3px 6px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 1px 0 2px rgba(255, 255, 255, 0.2),
    inset -1px 0 2px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.welcome-modal-overlay.show .welcome-modal {
  transform: scale(1) translateY(0);
}

.welcome-modal::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.welcome-modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.welcome-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d2520;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  font-family: var(--default-font-family, 'Shrikhand');
}

.welcome-modal-content {
  margin-bottom: 24px;
}

.welcome-modal-text {
  font-size: 1.1rem;
  color: #3d352c;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.welcome-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.welcome-btn {
  padding: 12px 24px;
  border: 2px solid #c0c4c8;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--default-font-family, 'Shrikhand');
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-btn-primary {
  /* Glossy green applied via global primary button block */
  color: #1a3d1a;
}

.welcome-btn-primary:hover {
  transform: translateY(-2px);
}

.welcome-btn-primary:active {
  transform: translateY(1px);
}

.welcome-btn-secondary {
  /* Glossy aqua from global secondary block when applied to button */
  background: linear-gradient(145deg, #4dd0e1 0%, #26c6da 35%, #00bcd4 50%, #26c6da 65%, #4dd0e1 100%);
  color: #0d3d42;
  border-color: #0097a7;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 150, 167, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.welcome-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 150, 167, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.welcome-btn-secondary:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

/* ============================================ */
/* ALL PAGES – Same container & sidebar size AND position (desktop only) */
/* ============================================ */
@media (min-width: 993px) {
  /* Same body positioning on every page (no extra top padding or flex-start) */
  html body:has(.layout-wrapper) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  /* Same layout wrapper position: centered, no extra padding, same width */
  html body .layout-wrapper,
  html body.profile .layout-wrapper,
  html body .profile .layout-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    max-width: 1800px !important;
    width: 90vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: auto !important;
    height: auto !important;
  }
  html body .layout-wrapper > .sidebar,
  html body .layout-wrapper > aside.sidebar,
  html body .profile .layout-wrapper > .sidebar,
  html body .sidebar {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    height: 85vh !important;
    min-height: 85vh !important;
    max-height: 85vh !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  html body .layout-wrapper > .container,
  html body .layout-wrapper .container,
  html body .profile .layout-wrapper > .container,
  html body .container {
    margin: 12px !important;
    flex-grow: 1 !important;
    height: 85vh !important;
    min-height: 85vh !important;
    max-height: 85vh !important;
    box-sizing: border-box !important;
  }
}

/* ============================================ */
/* GLOBAL MOBILE RESPONSIVE - All pages with sidebar + container */
/* Container on top, sidebar as horizontal scrollable nav (icons + small text) */
/* ============================================ */
@media (max-width: 768px) {
  /* Use 100% not 100vw — vw includes scrollbar gutter and causes horizontal “wiggle” scroll on many phones */
  html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  html body,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Tight padding on mobile — just enough to frame the container */
  html body .layout-wrapper,
  body .layout-wrapper {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    padding: 6px 6px 0 6px !important;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  html body .layout-wrapper > .container,
  body .layout-wrapper > .container {
    order: 1 !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 10px 8px calc(90px + env(safe-area-inset-bottom, 0px)) 8px !important;
    border-radius: 12px 12px 0 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  html body .layout-wrapper > .container .main-content,
  body .layout-wrapper > .container .main-content {
    max-width: 100%;
    overflow: visible !important;
    padding: 0 2px;
  }

  /* Profile picture / avatar on mobile – prevent weird stretch or misalign */
  .greeting-container .profile-avatar-link,
  .greeting-container #main-avatar {
    flex-shrink: 0;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: cover;
  }
  .greeting-container .profile-avatar-link {
    display: inline-block;
    margin: 0 auto;
  }
  #main-avatar {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
  }

  /* Dashboard: single column straight down on mobile (no side-by-side containers) */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px;
  }

  .dashboard-left,
  .dashboard-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Nav bar: fixed horizontal scrollable bar at the bottom */
  html body .layout-wrapper > .sidebar,
  html body .layout-wrapper > aside.sidebar,
  body .layout-wrapper > .sidebar {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px !important;
    border-radius: 16px 16px 0 0 !important;
    background-color: rgba(40, 30, 20, 0.95) !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    overflow: visible !important;
    flex-shrink: 0;
    z-index: 10000 !important;
    pointer-events: auto;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    /* Reset GPU acceleration properties that break position:fixed */
    transform: none !important;
    will-change: auto !important;
    perspective: none !important;
    backface-visibility: visible !important;
  }

  /* Bottom padding for fixed nav is included in the container rule above (80px) */

  /* Mobile logo: hide text logo; show Logo.png via ::after (pages without .logo-img-mobile) */
  html body .layout-wrapper > .sidebar .logo .logo-text-img,
  body .layout-wrapper > .sidebar .logo .logo-text-img {
    display: none !important;
  }

  /* Logo area: small icon left of nav (same width as container) */
  html body .layout-wrapper > .sidebar .logo,
  body .layout-wrapper > .sidebar .logo {
    flex-shrink: 0;
    margin: 0 6px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
  }

  /* Constrain Logo.png img so it’s not huge on mobile (all pages) */
  html body .layout-wrapper > .sidebar .logo .logo-img-mobile,
  body .layout-wrapper > .sidebar .logo .logo-img-mobile {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
  }

  /* Logo.png for pages that don't have .logo-img-mobile in HTML */
  html body .layout-wrapper > .sidebar .logo::after,
  body .layout-wrapper > .sidebar .logo::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: url(Logo.png) center / contain no-repeat;
  }

  html body .layout-wrapper > .sidebar .logo:has(.logo-img-mobile)::after,
  body .layout-wrapper > .sidebar .logo:has(.logo-img-mobile)::after {
    display: none;
  }

  html body .layout-wrapper > .sidebar .nav-buttons,
  body .layout-wrapper > .sidebar .nav-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 4px !important;
    padding: 2px 0 !important;
    padding-bottom: 2px !important;
    margin-bottom: 0 !important;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  /* Hide scrollbar on nav buttons for cleaner look */
  html body .layout-wrapper > .sidebar .nav-buttons::-webkit-scrollbar,
  body .layout-wrapper > .sidebar .nav-buttons::-webkit-scrollbar {
    display: none;
  }

  html body .layout-wrapper > .sidebar .nav-buttons::-webkit-scrollbar,
  body .layout-wrapper > .sidebar .nav-buttons::-webkit-scrollbar {
    height: 3px;
  }

  /* Nav item: icon + label buttons in horizontal bar */
  html body .layout-wrapper > .sidebar .nav-buttons > a,
  body .layout-wrapper > .sidebar .nav-buttons > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    padding: 4px 2px !important;
    gap: 2px !important;
    text-decoration: none;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* When nav item is <a><button>, make button match homepage link look */
  html body .layout-wrapper > .sidebar .nav-buttons > a .nav-btn,
  body .layout-wrapper > .sidebar .nav-buttons > a .nav-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    border-radius: 10px;
    border: none !important;
  }

  html body .layout-wrapper > .sidebar .nav-buttons .nav-btn,
  html body .layout-wrapper > .sidebar .nav-auth-buttons .nav-btn,
  body .layout-wrapper > .sidebar .nav-buttons .nav-btn,
  body .layout-wrapper > .sidebar .nav-auth-buttons .nav-btn {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    min-width: 0 !important;
    width: 52px !important;
    height: 44px !important;
    padding: 3px 2px !important;
    gap: 1px !important;
    font-size: 0.6rem !important;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    background-size: 100% 100% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  }

  html body .layout-wrapper > .sidebar .nav-btn .material-icons,
  body .layout-wrapper > .sidebar .nav-btn .material-icons {
    font-size: 20px !important;
    margin: 0 !important;
  }

  html body .layout-wrapper > .sidebar .nav-btn span:not(.material-icons):not(.notification-badge),
  body .layout-wrapper > .sidebar .nav-btn span:not(.material-icons):not(.notification-badge) {
    display: block !important;
    font-size: 0.55rem !important;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
  }

  html body .layout-wrapper > .sidebar .nav-btn .notification-badge,
  body .layout-wrapper > .sidebar .nav-btn .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.5rem;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
  }

  /* Nav group: same gap as other buttons for even spacing */
  html body .layout-wrapper > .sidebar .nav-group-horizontal,
  body .layout-wrapper > .sidebar .nav-group-horizontal {
    display: contents !important;
  }

  html body .layout-wrapper > .sidebar .nav-group-horizontal > a,
  body .layout-wrapper > .sidebar .nav-group-horizontal > a {
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }

  html body .layout-wrapper > .sidebar .nav-auth-buttons,
  body .layout-wrapper > .sidebar .nav-auth-buttons {
    display: contents !important;
  }

  html body .layout-wrapper > .sidebar .nav-auth-buttons > a,
  body .layout-wrapper > .sidebar .nav-auth-buttons > a {
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }

  html body .mobile-toolbar,
  body .mobile-toolbar {
    display: none !important;
  }

  /* ---- Mobile: tighten hero / greeting ---- */
  .hero-section {
    padding: 10px !important;
    margin-bottom: 8px !important;
  }
  .greeting-container {
    gap: 6px !important;
  }
  .greeting-container h1,
  #greeting-text {
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
  }
  .greeting-container .welcome-subtitle,
  .greeting-container .hero-tagline {
    font-size: 0.85rem !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }

  /* ---- Mobile: tighten dashboard cards / small containers ---- */
  .dashboard-card {
    padding: 10px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
  }
  .dashboard-card .card-header {
    margin-bottom: 6px !important;
    padding-bottom: 8px !important;
  }
  .dashboard-card h3 {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
  }

  /* ---- Mobile: tighten how-steps ---- */
  .how-steps {
    gap: 8px !important;
  }
  .how-step {
    padding: 12px !important;
  }

  /* ---- Mobile: tighten stats strip ---- */
  .home-stats-strip {
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
  }

  /* ---- Mobile: tighten dashboard grid ---- */
  .dashboard-grid {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  /* ---- Mobile: tighten buttons ---- */
  .beta-feedback-btn,
  .quick-actions-btn,
  .btn,
  .action-btn {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }
  .beta-feedback-buttons {
    gap: 8px !important;
  }

  /* ---- Mobile: tighten footer ---- */
  .site-footer {
    margin-top: 16px !important;
  }
  .footer-content {
    padding: 10px !important;
  }

  /* ---- Mobile: tighten first-100 bonus / referral card ---- */
  .first-100-bonus-container,
  .share-referral-card {
    padding: 10px !important;
  }

  /* ---- Mobile: tighten user count section ---- */
  .user-count-container {
    padding: 10px !important;
  }
  .user-count-number {
    font-size: 2rem !important;
  }
}

@media (max-width: 480px) {
  html body,
  body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .layout-wrapper,
  body .layout-wrapper {
    padding: 4px 4px 0 4px !important;
  }

  html body .layout-wrapper > .container,
  body .layout-wrapper > .container {
    margin: 0 !important;
    padding: 8px 6px 76px !important;
    max-height: none !important;
  }

  /* Sidebar is already position:fixed from 768px rule — just tweak sizing */
  html body .layout-wrapper > .sidebar,
  body .layout-wrapper > .sidebar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
    min-height: 50px !important;
    border-radius: 14px 14px 0 0 !important;
  }

  html body .layout-wrapper > .sidebar .logo,
  body .layout-wrapper > .sidebar .logo {
    width: 20px;
    height: 20px;
  }
  html body .layout-wrapper > .sidebar .logo .logo-img-mobile,
  body .layout-wrapper > .sidebar .logo .logo-img-mobile {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
  html body .layout-wrapper > .sidebar .logo::after,
  body .layout-wrapper > .sidebar .logo::after {
    width: 20px;
    height: 20px;
  }

  html body .layout-wrapper > .sidebar .nav-buttons > a,
  body .layout-wrapper > .sidebar .nav-buttons > a {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  html body .layout-wrapper > .sidebar .nav-group-horizontal > a,
  body .layout-wrapper > .sidebar .nav-group-horizontal > a,
  html body .layout-wrapper > .sidebar .nav-auth-buttons > a,
  body .layout-wrapper > .sidebar .nav-auth-buttons > a {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  html body .layout-wrapper > .sidebar .nav-btn,
  body .layout-wrapper > .sidebar .nav-buttons .nav-btn,
  body .layout-wrapper > .sidebar .nav-auth-buttons .nav-btn {
    min-width: 0 !important;
    padding: 3px 2px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    background-size: 100% 100% !important;
  }

  html body .layout-wrapper > .sidebar .nav-btn .material-icons,
  body .layout-wrapper > .sidebar .nav-btn .material-icons {
    font-size: 18px !important;
  }

  html body .layout-wrapper > .sidebar .nav-btn span:not(.material-icons):not(.notification-badge),
  body .layout-wrapper > .sidebar .nav-btn span:not(.material-icons):not(.notification-badge) {
    font-size: 0.48rem !important;
  }
}

/* =========================================================
   Global utility
   ========================================================= */
.hidden {
  display: none !important;
}

/* =========================================================
   Auth-required popup (sign in to Yeah / sign in to create)
   ========================================================= */
.auth-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  animation: authOverlayIn 0.15s ease;
}

@keyframes authOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-popup {
  position: relative;
  width: 90%;
  max-width: 380px;
  padding: 32px 28px 28px;
  border-radius: 22px;
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.04) 0px, transparent 2px,
      transparent 4px, rgba(0,0,0,0.04) 6px),
    repeating-linear-gradient(-45deg,
      rgba(0,0,0,0.03) 0px, transparent 2px,
      transparent 4px, rgba(0,0,0,0.03) 6px),
    linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
  border: 3px solid #8b7355;
  box-shadow:
    0 20px 45px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.2),
    inset 0 3px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.15);
  text-align: center;
  animation: authPopupIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

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

.auth-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #8b7355;
  background: linear-gradient(145deg, #e8dcc8, #c9a87c);
  color: #5c3d20;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-popup-close:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

.auth-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #bef264, #84cc16, #4d7c0f);
  border: 3px solid #4d7c0f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 5px 0 #166534, 0 8px 18px rgba(0,0,0,0.3);
}

.auth-popup-icon .material-icons {
  font-size: 28px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.auth-popup-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #3d2410;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.auth-popup-body p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #5c3d20;
  line-height: 1.5;
}

.auth-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-popup-login-btn,
.auth-popup-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--default-font-family, 'Shrikhand'), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-popup-login-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(145deg, #ffffff 0%, #e8e8e8 50%, #d0d0d0 100%);
  border: 2px solid #9ca3af;
  color: #2d2520;
  box-shadow: 0 5px 0 #6b7280, 0 7px 16px rgba(0,0,0,0.25);
}

.auth-popup-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #6b7280, 0 9px 20px rgba(0,0,0,0.3);
}

.auth-popup-login-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #6b7280, 0 3px 8px rgba(0,0,0,0.2);
}

.auth-popup-signup-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #84cc16 50%, #4d7c0f 100%);
  border: 2px solid #4d7c0f;
  color: #0f0f0f;
  box-shadow: 0 5px 0 #166534, 0 7px 16px rgba(0,0,0,0.3);
}

.auth-popup-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #166534, 0 9px 20px rgba(0,0,0,0.35);
}

.auth-popup-signup-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #166534, 0 3px 8px rgba(0,0,0,0.25);
}

/* ── Homepage one-time "what's new" modal (admin: Show once on homepage) ── */
body.update-modal-open {
  overflow: hidden;
}

.update-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 12, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
  box-sizing: border-box;
}

.update-modal-overlay--visible {
  opacity: 1;
}

.update-modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: min(86vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #5c4033;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 8px 0 #3d2b22,
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
    linear-gradient(145deg, #c4a882 0%, #a89072 45%, #b89a7a 100%);
}

.update-modal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(145deg, #1e3a5f, #0f172a);
  border-bottom: 2px solid #0f172a;
}

.update-modal-spark {
  font-size: 1.35rem !important;
  opacity: 0.95;
}

.update-modal-title {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f1814;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  line-height: 1.25;
}

.update-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #2d2520;
}

.update-modal-body p {
  margin: 0 0 10px 0;
}

.update-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.update-modal-actions {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(92, 64, 51, 0.35);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  display: flex;
  justify-content: flex-end;
}

.update-modal-dismiss-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 800 !important;
  padding: 12px 22px !important;
  background: linear-gradient(145deg, #bef264, #84cc16) !important;
  border: 2px solid #3d7c0f !important;
  color: #0f0f0f !important;
  box-shadow: 0 5px 0 #166534, 0 8px 16px rgba(0, 0, 0, 0.25) !important;
}

.update-modal-dismiss-btn:hover {
  transform: translateY(-2px);
}

.update-modal-dismiss-btn .material-icons {
  font-size: 1.25rem !important;
}
