/* @import url("leather-seam-asset-path.css");

/* Theme presets wood + frutiger-aero inlined at end of file (removed @import chain for one fewer round-trip). */

:root {
  --base-font-size: 18px;
  /* global text size */
  /* Leather PNG URL: defined in leather-seam-asset-path.css (+ po-set-leather-var.js / sky-instant-boot for correct depth). */
  --leather-seam-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.22'/%3E%3C/svg%3E");
  --leather-seamless: var(--leather-seam-png);
  --leather-tile-size: 168px;
  /* Hero + matching inset panels (Discover, etc.) — one leather recipe */
  --hero-leather-base: #3d2817;
  --hero-leather-grad: linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%);
  --hero-leather-border: #2a1810;
  --hero-leather-stitch: rgba(218, 165, 32, 0.4);
  --leather-panel-base: var(--hero-leather-base);
  --leather-panel-grad: var(--hero-leather-grad);
  --leather-stitch-gold: var(--hero-leather-stitch);
  --leather-stitch-dark: rgba(58, 40, 28, 0.5);
  --leather-stitch-light: rgba(255, 248, 235, 0.38);
}

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);
}

/* -------------------------------------------------------------------------- */
/* Unified glossy error UI — leather + Error.png (paths via --po-error-png-url) */
/* -------------------------------------------------------------------------- */
.error-state,
.project-error,
.error-message:not(.no-data-message) {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  color: #f5efe4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background-color: var(--leather-panel-base, #3d2817);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 14%, transparent 42%),
    linear-gradient(145deg, rgba(118, 74, 56, 0.55) 0%, rgba(72, 46, 32, 0.72) 50%, rgba(118, 74, 56, 0.55) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, no-repeat, repeat;
  background-blend-mode: normal, multiply, normal;
  border: 2px solid var(--hero-leather-border, #2a1810);
  border-radius: 16px;
  margin: 1rem 0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.24) inset,
    0 -4px 14px rgba(0, 0, 0, 0.25) inset,
    0 0 0 1px rgba(255, 248, 235, 0.1);
}

@supports selector(:has(img)) {
  .error-state:not(:has(img.error-icon))::before,
  .error-message:not(:has(img.error-icon)):not(.no-data-message)::before,
  .project-error:not(:has(img.error-icon))::before {
    content: '';
    display: block;
    width: min(132px, 42vw);
    height: min(132px, 42vw);
    margin: 0 auto 1rem;
    background-image: var(--po-error-png-url, url("Error.png"));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    pointer-events: none;
  }
}

img.error-icon {
  display: block;
  width: min(132px, 42vw);
  max-width: 160px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.error-state .error-icon:not(img),
.error-message .error-icon:not(img) {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.error-state :where(h1, h2, h3),
.error-message :where(h1, h2, h3),
.project-error :where(h1, h2, h3) {
  margin: 0 0 0.65rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc9a8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.error-state p,
.error-message:not(.no-data-message) p,
.project-error p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(245, 239, 228, 0.95);
}

.error-state p:last-child,
.error-message:not(.no-data-message) p:last-child,
.project-error p:last-child {
  margin-bottom: 0;
}

/* 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),
.announcement-preview,
.site-footer,
.projects-grid,
.users-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* Project cards: never use 1px intrinsic width — it caused horizontal CLS and “width shift” */
.project-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 340px;
}

/* 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;
  inset: 0;
  width: 100%;
  min-height: 100%;
  z-index: -1;
  background: var(--sky-bg, linear-gradient(180deg, #7ec8f0 0%, #4a8db5 45%, #4a8db5 100%)) center center / cover no-repeat;
  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: linear-gradient(180deg, #7ec8f0 0%, #4a8db5 50%, #4a8db5 100%) center center / cover no-repeat !important;
}

.skeuomorphic-green-theme .background-clouds {
  background: linear-gradient(180deg, #6ec9a8 0%, #2d6a4f 50%, #2d6a4f 100%) center center / cover no-repeat !important;
}

.skeuomorphic-purple-theme .background-clouds {
  background: linear-gradient(180deg, #c4b5fd 0%, #5b21b6 50%, #5b21b6 100%) center center / cover no-repeat !important;
}

.skeuomorphic-orange-theme .background-clouds {
  background: linear-gradient(180deg, #fdba74 0%, #c2410c 50%, #c2410c 100%) 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;
}

/* Seamleather theme — brown leather gradient (Seamleather.png optional) */
.seamleather-theme .background-clouds {
  background: linear-gradient(135deg, #5d4037 0%, #3e2723 50%, #5d4037 100%) 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-color: #3d2817;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  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, normal, normal;
  /* Default copy on dark leather (nav buttons override below) */
  color: #faf6ef;
}

/* Leather sidebar: keep labels light (avoids black body/link color bleeding onto leather) */
.sidebar a.nav-btn,
.sidebar a.nav-btn:link,
.sidebar a.nav-btn:visited,
.sidebar a.nav-btn:hover,
.sidebar a.nav-btn:active,
.sidebar a.nav-btn:focus,
.layout-wrapper > .sidebar a.nav-btn,
aside.sidebar a.nav-btn {
  color: #ffffff !important;
}

.sidebar .nav-buttons > a:not(.nav-btn),
.layout-wrapper > .sidebar .nav-buttons > a:not(.nav-btn),
aside.sidebar .nav-buttons > a:not(.nav-btn) {
  color: #fff8e7 !important;
}

.sidebar .nav-btn,
.sidebar .nav-btn *,
.layout-wrapper > .sidebar .nav-btn,
.layout-wrapper > .sidebar .nav-btn *,
aside.sidebar .nav-btn,
aside.sidebar .nav-btn * {
  color: #ffffff !important;
}

.sidebar .nav-btn .notification-badge {
  color: #fffbeb !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* 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;
}

/* --- Glossy text fields (readable on busy seam-leather; font = site default via :where) --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input:not([type]),
textarea,
select {
  /* Near-opaque fill so seam texture doesn’t swallow the gloss; top band = specular highlight */
  background-color: #f3f6fb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  border: 1px solid #9aa8bc;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  padding: 10px 14px;
  font-size: 1rem;
  color: #1a1a1a;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  border-radius: 14px;
  min-height: 3.25rem;
  line-height: 1.45;
  resize: vertical;
}

select {
  cursor: pointer;
  padding-right: 2.25rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f3f6fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6a82' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 14px 14px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: #9aaabb;
  font-style: italic;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input:not([type]):focus,
textarea:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

select:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%234a90d9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 14px 14px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

input[type="text"]:disabled,
input[type="password"]:disabled,
input[type="email"]:disabled,
input[type="search"]:disabled,
input[type="url"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

/* --- General Layout --- */
.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  max-width: min(1800px, calc(100vw - 24px));
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 12px;
  flex-grow: 1;
  padding: 32px;
  /* Rich brown leather texture matching hero section */
  background-color: #3d2817;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  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, normal;
}

/*
 * Shell contrast — container-contrast.js toggles po-shell-dark | po-shell-light on
 * .layout-wrapper > .container from WCAG luminance of computed background-color.
 * Nested tan/leather cards (.dashboard-card, etc.) reset to dark body copy.
 */
.layout-wrapper > .container.po-shell-dark .main-content {
  color: #eceff4;
}

.layout-wrapper > .container.po-shell-dark .main-content :where(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Leather .auth-box — light copy (po-shell-* otherwise forces wrong heading colors on this panel) */
.layout-wrapper > .container.po-shell-dark .main-content .auth-box .auth-header :is(h1, h2, h3),
.layout-wrapper > .container.po-shell-light .main-content .auth-box .auth-header :is(h1, h2, h3) {
  color: #fffdf5 !important;
  -webkit-text-fill-color: #fffdf5 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 14px rgba(0, 0, 0, 0.35) !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .auth-box .auth-subtitle,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .auth-subtitle {
  color: #f1e9dc !important;
  -webkit-text-fill-color: #f1e9dc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72) !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .auth-box .form-label,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .form-label {
  color: #faf6ef !important;
  -webkit-text-fill-color: #faf6ef !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .auth-box .input-info,
.layout-wrapper > .container.po-shell-dark .main-content .auth-box .auth-footer,
.layout-wrapper > .container.po-shell-dark .main-content .auth-box .guidelines-checkbox-label,
.layout-wrapper > .container.po-shell-dark .main-content .auth-box .strength-text,
.layout-wrapper > .container.po-shell-dark .main-content .auth-box .password-match,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .input-info,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .auth-footer,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .guidelines-checkbox-label,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .strength-text,
.layout-wrapper > .container.po-shell-light .main-content .auth-box .password-match {
  color: #e8dcc8 !important;
  -webkit-text-fill-color: #e8dcc8 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}

/* Was #14100c — that fought the dark leather shell and duplicated brown rules below */
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card {
  color: rgba(255, 254, 251, 0.94) !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .project-card {
  color: #14100c;
}

.layout-wrapper > .container.po-shell-light .main-content {
  color: #14100c;
}

.layout-wrapper > .container.po-shell-light .main-content :where(h1, h2, h3, h4, h5, h6) {
  color: #1a1410 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.layout-wrapper > .container.po-shell-light .main-content .dashboard-card {
  color: #14100c;
}

.layout-wrapper > .container.po-shell-light .main-content .project-card {
  color: #14100c;
}

/* Opt-in: any element with data-po-auto-contrast gets a fg class from container-contrast.js */
[data-po-auto-contrast].po-auto-contrast-dark {
  color: #f1f5f9 !important;
}

[data-po-auto-contrast].po-auto-contrast-light {
  color: #14100c !important;
}

/* 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;
}

/* Fandoms button always visible */
#fandoms-nav-btn {
  display: block !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;
}

/* Sidebar nav buttons: no frosted-glass / backdrop blur (opaque skeu controls) */
.sidebar .nav-btn,
.layout-wrapper > .sidebar .nav-btn,
aside.sidebar .nav-btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: 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%, #ab8f70 100%);
  border: 2px solid #958062;
  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) */
/* Tan panels: Seamleather.png tile + tint (see :root --leather-seamless) */

/* Home: Explore-style grid (featured projects) */
.home-explore-style-grid.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
  margin-top: 16px;
}

.featured-projects-section .projects-grid.home-explore-style-grid .project-card {
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* Explore-like thumb + overlay on homepage (global .project-thumb is flatter elsewhere) */
.homepage .home-explore-style-grid .project-thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(60, 42, 28, 0.35), rgba(40, 28, 18, 0.45));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid #5a3a24;
  border-bottom: 3px solid #6b4a30;
  flex-shrink: 0;
}

.homepage .home-explore-style-grid .project-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.homepage .home-explore-style-grid .project-thumb-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  color: #fff;
  padding: 3px 6px;
  display: inline-block;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.homepage .home-explore-style-grid .project-thumb-overlay p {
  font-size: 0.65rem;
  margin: 0;
  color: #fff;
  opacity: 0.95;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.homepage .home-explore-style-grid .project-thumb .category-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.5rem;
  color: #fff;
  padding: 3px 6px;
  border-radius: 2px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.art {
  background: #dc2626;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.music {
  background: #eab308;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.game {
  background: #2563eb;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.article {
  background: #16a34a;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.animation {
  background: #9333ea;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.video {
  background: #0ea5e9;
}

.homepage .home-explore-style-grid .project-thumb .category-badge.poll {
  display: none;
}

.homepage .home-explore-style-grid .project-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: po-home-thumb-spin 0.8s linear infinite;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.homepage .home-explore-style-grid .project-thumb.image-visible::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes po-home-thumb-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.homepage .home-explore-style-grid .project-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}

.homepage .home-explore-style-grid .project-thumb img[src],
.homepage .home-explore-style-grid .project-thumb img[data-src] {
  opacity: 1;
}

.homepage .home-explore-style-grid .project-card:hover .project-thumb img {
  transform: scale(1.05);
}

/* Leather tile on these cards (overrides dashboard transparent card rule) */
.layout-wrapper .main-content .dashboard-card .projects-grid.home-explore-style-grid>a.project-card {
  background-color: #d0b589 !important;
  background-image:
    linear-gradient(145deg, rgba(208, 181, 137, 0.58) 0%, rgba(242, 232, 212, 0.48) 45%, rgba(208, 181, 137, 0.55) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise) !important;
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat, repeat !important;
  background-blend-mode: multiply, normal, normal !important;
  box-shadow:
    0 12px 28px rgba(42, 24, 12, 0.3),
    0 5px 12px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 248, 235, 0.38),
    inset 0 -4px 10px rgba(80, 50, 30, 0.16),
    inset 2px 0 0 rgba(255, 255, 255, 0.14),
    inset -2px 0 0 rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px;
  overflow: hidden;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1e293b;
  background-color: transparent;
  border: 2px solid #5a3a24;
  border-bottom: 3px solid #6b4a30;
  border-radius: 12px;
  padding: 0;
  box-shadow:
    0 8px 18px rgba(42, 24, 12, 0.26),
    inset 0 2px 0 rgba(255, 248, 235, 0.25),
    inset 0 -2px 0 rgba(80, 50, 30, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Featured / dashboard grids: transparent cards with leather border */
.layout-wrapper .main-content .dashboard-card .projects-grid > .project-card,
.layout-wrapper .main-content .dashboard-card .projects-grid > a.project-card {
  background-color: transparent !important;
  background-image: none !important;
  border: 2px solid #5a3a24 !important;
  border-bottom: 3px solid #6b4a30 !important;
}

/* Subtle shine overlay */
.project-card::before {
  display: none;
}

/* Soft radial highlight */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 85% 55% at 30% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 58%);
  pointer-events: none;
  z-index: 1;
}

.project-card > * {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* 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(-4px);
  box-shadow:
    0 18px 38px rgba(42, 24, 12, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 248, 235, 0.45),
    inset 0 -4px 12px rgba(80, 50, 30, 0.14),
    inset 2px 0 0 rgba(255, 255, 255, 0.18),
    inset -2px 0 0 rgba(0, 0, 0, 0.06);
  border-color: #a08055;
}

/* 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, #dfc5aa, #d0b589);
  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-color: var(--hero-leather-base);
  background-image:
    var(--hero-leather-grad),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  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 var(--hero-leather-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 280px;
  background-blend-mode: multiply, normal;
}

/* Gold stitching detail */
.hero-section::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px dashed var(--hero-leather-stitch);
  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: #2d3748;
  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-color: #4a3525;
  background-image:
    linear-gradient(135deg, rgba(74, 53, 37, 0.75) 0%, rgba(92, 64, 51, 0.7) 50%, rgba(74, 53, 37, 0.75) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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);
}

/* No default blue UA ring; keyboard users get a green leather-friendly ring */
.discover-pill {
  -webkit-tap-highlight-color: transparent;
}

.discover-pill:focus:not(:focus-visible) {
  outline: none;
}

.discover-pill:focus-visible {
  outline: 3px solid rgba(22, 101, 52, 0.95);
  outline-offset: 3px;
}

/* 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-color: #76604f;
  background-image:
    linear-gradient(135deg, rgba(122, 102, 88, 0.62) 0%, rgba(138, 118, 94, 0.52) 50%, rgba(122, 102, 88, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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, #958062, #76604f);
  border: 2px solid #6a4d3d;
  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: #958062;
}

.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 — same leather recipe as .hero-section (Discover, How it works, etc.) */
.dashboard-card {
  background-color: var(--hero-leather-base);
  background-image:
    var(--hero-leather-grad),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  border-radius: 16px;
  padding: 28px;
  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);
  border: 4px solid var(--hero-leather-border);
  position: relative;
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-blend-mode: multiply, normal;
  isolation: isolate;
  color: #fff9f2;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 12px;
  border: 2px dashed var(--hero-leather-stitch);
  pointer-events: none;
  z-index: 1;
}

.dashboard-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-card .card-header,
.dashboard-card .card-header h2 {
  position: relative;
  z-index: 2;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.52),
    0 14px 28px rgba(0, 0, 0, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.17),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    inset 2px 0 0 rgba(255, 255, 255, 0.11),
    inset -2px 0 0 rgba(0, 0, 0, 0.38);
}

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

/* 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 #5a4d42;
  position: relative;
  /* Leather separator effect */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.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);
}

.dashboard-card .card-header {
  border-bottom-color: #6e6054;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-card .card-header h2 {
  color: #fffef9;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.35);
}

.dashboard-card > *:not(.card-header) {
  position: relative;
  z-index: 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: #2d3748;
  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-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.55) 0%, rgba(154, 132, 106, 0.48) 50%, rgba(138, 118, 94, 0.55) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  border: 2px solid #6a4d3d;
  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-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  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-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.55) 0%, rgba(242, 232, 212, 0.48) 40%, rgba(242, 232, 212, 0.48) 60%, rgba(226, 206, 178, 0.55) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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: #958062;
}

.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 #958062;
  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 {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  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;
}

/* Inner span only — avoids display:inline-block from .material-icons on the same node as flex */
.quick-action-icon .material-icons {
  font-size: 1.5em;
  line-height: 1 !important;
  display: block;
}

/* 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);
}

/* Dark shell: beat explicit brown rules on dashboard cards — inherit cream from .dashboard-card */
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  label,
  .card-header,
  .welcome-subtitle,
  .welcome-description,
  .friends-activity-subtitle,
  .limits-item-header,
  .limits-metric-value,
  .empty-state-msg,
  .home-footnote-text,
  .first-100-bonus-lead,
  .beta-feedback-text,
  .milestone-text,
  .milestone-description
) {
  color: inherit !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .milestone-text strong {
  color: inherit !important;
  font-weight: 700;
}

/* Tan / lime inset surfaces — keep dark copy */
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .project-card,
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .project-card *:not(.material-icons) {
  color: #14100c !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .quick-action-btn,
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .quick-action-btn span:not(.material-icons) {
  color: rgba(255, 254, 251, 0.96) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Milestone inset reads darker against dark shell — light numerals + caption */
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card.user-count-container .user-count-display .user-count-number,
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card.user-count-container .user-count-display #user-count {
  color: rgba(255, 254, 251, 0.98) !important;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card.user-count-container .user-count-display .user-count-label {
  color: rgba(255, 254, 251, 0.92) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .discover-pill,
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .discover-pill * {
  color: #0f0f0f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .view-all-link {
  color: #0f0f0f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friends-activity-header-link {
  color: #1e3a5f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friends-activity-empty-title {
  color: #2d2520 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friends-activity-empty-text {
  color: #4a3f36 !important;
  text-shadow: none;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friends-activity-empty-icon {
  color: #958062 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .limits-stat-label {
  color: #3d3228 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .limits-stat-value {
  color: #1f2937 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .beta-share-btn {
  color: #0d3d42 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .share-reward-badge {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .beta-share-btn span:not(.material-icons):not(.share-reward-badge) {
  color: inherit !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .beta-feedback-btn span:not(.material-icons) {
  color: #0f0f0f !important;
}

/* Friend activity: nested <p> tags would inherit cream — restore tan-tile browns */
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-name {
  color: #1f1814 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-verb {
  color: #2a221c !important;
  text-shadow: none;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card time.friend-activity-time {
  color: #3d3228 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-project-title {
  color: #1a1410 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-cta {
  color: #0f3d1f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-on-project {
  color: #3d352c !important;
  text-shadow: none;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-on-project strong {
  color: #1f1814 !important;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-comment-text {
  color: #2d2520 !important;
  text-shadow: none;
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card .friend-activity-card .friend-activity-quote-icon {
  color: #958062 !important;
}

/* Dark outer shell: “How it works” steps sit on dark leather tiles — paragraph rules above kept them charcoal */
.layout-wrapper > .container.po-shell-dark .main-content .home-how.dashboard-card .how-step-title {
  color: #fffefb !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.layout-wrapper > .container.po-shell-dark .main-content .home-how.dashboard-card .how-step-desc {
  color: rgba(255, 254, 251, 0.93) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.layout-wrapper > .container.po-shell-dark .main-content .home-how.dashboard-card .how-step-arrow .material-icons {
  color: rgba(255, 254, 251, 0.88) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Bonus / referral card body copy (overrides .dashboard-card p / .first-100-bonus-container p) */
.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container .first-100-bonus-lead,
.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container .beta-feedback-text,
.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container p:not(.beta-feedback-buttons p) {
  color: rgba(255, 254, 251, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container .home-footnote-text,
.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container #users-remaining-text {
  color: rgba(255, 254, 251, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container #users-remaining-count {
  color: #fecaca !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Green CTA: keep dark text + readable icons on lime */
.layout-wrapper > .container.po-shell-dark .main-content #first-100-bonus-container .beta-feedback-btn span:not(.material-icons) {
  color: #0f0f0f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card.video-section .video-status,
.layout-wrapper > .container.po-shell-dark .main-content .dashboard-card.video-section .featured-video-title {
  color: rgba(255, 254, 251, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 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, #d0b589, #958062);
  border-radius: 8px;
  border: 1px solid #6a4d3d;
  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: #958062;
  opacity: 0.85;
  margin-bottom: 8px;
}

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

.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 #6a4d3d !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: #76604f;
  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: #76604f;
  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: #1e1812;
  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: #958062;
  opacity: 0.55;
}

.friend-activity-comment-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e293b;
  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: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
}

.friend-activity-info .announcement-preview-date {
  font-size: 0.9rem !important;
  color: #333;
  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: #2d2d2d;
  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-color: #958062;
  background-image:
    linear-gradient(135deg, rgba(154, 132, 106, 0.6) 0%, rgba(200, 170, 134, 0.5) 50%, rgba(154, 132, 106, 0.6) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  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 #6a4d3d;
  background-blend-mode: 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 */
}

.announcement-preview-content-rich {
  white-space: normal;
}

.announcement-preview-hero {
  margin: 0 0 10px;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid rgba(232, 212, 188, 0.4);
  background: linear-gradient(145deg, rgba(40, 32, 28, 0.25), rgba(25, 20, 18, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.announcement-preview-hero-img {
  display: block;
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

/* 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: #2d3748;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.population-stats {
  background-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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 #958062;
}

.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: #1f2937;
  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: #1f2937;
  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: #1f2937;
  font-weight: 500;
}

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

.milestone-card {
  background-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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 #958062;
  /* 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: #2d3748;
  margin: 0;
}

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

.milestone-description {
  font-size: 0.8rem;
  color: #1f2937;
  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: #2d3748;
  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: #2d3748;
  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;
  }

  .quick-action-icon .material-icons {
    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 --- */

/* Readable type on phones (Android Chrome / iOS Safari) without requiring Settings */
@media screen and (max-width: 768px) {
  html {
    font-size: clamp(17px, 3.85vw, 20px);
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .main-content,
  .main-content p {
    line-height: 1.55;
  }

  .nav-btn span:not(.material-icons) {
    line-height: 1.35;
  }
}

.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 — seamless tile + tint */
  background-color: #3d2817 !important;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !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 — seamless tile + tint */
  background-color: #3d2817 !important;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !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, 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-color: #2a1a10;
  background-image:
    linear-gradient(155deg, rgba(92, 67, 51, 0.78) 0%, rgba(61, 40, 24, 0.82) 45%, rgba(42, 26, 16, 0.88) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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-color: #2a1a10;
  background-image:
    linear-gradient(155deg, rgba(92, 67, 51, 0.78) 0%, rgba(61, 40, 24, 0.82) 45%, rgba(42, 26, 16, 0.88) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  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 — tan leather + light typography (inputs stay paper-white with dark ink) */
body .auth-box {
  background-color: #958062 !important;
  background-image:
    linear-gradient(135deg, rgba(154, 132, 106, 0.6) 0%, rgba(200, 170, 134, 0.5) 50%, rgba(154, 132, 106, 0.6) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !important;
  border: 3px solid #6a4d3d !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, normal !important;
}
body .auth-box .auth-header :is(h1, h2, h3),
body .auth-box .auth-subtitle {
  color: #fffdf5 !important;
  -webkit-text-fill-color: #fffdf5 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 12px rgba(0, 0, 0, 0.35) !important;
}
body .auth-box .auth-header .material-icons {
  color: #fffdf5 !important;
  -webkit-text-fill-color: #fffdf5 !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
}
body .auth-box .form-label {
  color: #faf6ef !important;
  -webkit-text-fill-color: #faf6ef !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
}
body .auth-box .form-label .material-icons {
  color: #faf6ef !important;
  -webkit-text-fill-color: #faf6ef !important;
}
body .auth-box .input-icon.material-icons,
body .auth-box .input-wrapper .material-icons {
  color: #f5ebe0 !important;
  -webkit-text-fill-color: #f5ebe0 !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
}
body .auth-box .input-info,
body .auth-box .strength-text,
body .auth-box .password-match,
body .auth-box .guidelines-checkbox-label,
body .auth-box .guidelines-checkbox-label a,
body .auth-box .form-bonus,
body .auth-box .form-bonus strong,
body .auth-box .auth-divider,
body .auth-box .auth-divider span,
body .auth-box .default-pfp-group .form-label {
  color: #e8dcc8 !important;
  -webkit-text-fill-color: #e8dcc8 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
}
body .auth-box .guidelines-checkbox-label a {
  color: #fff4d4 !important;
  -webkit-text-fill-color: #fff4d4 !important;
  text-decoration: underline !important;
}
body .auth-box .auth-footer,
body .auth-box .auth-footer a {
  color: #efe4d4 !important;
  -webkit-text-fill-color: #efe4d4 !important;
}
body .auth-box .auth-footer a:hover {
  color: #fff !important;
  -webkit-text-fill-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 — seamless tile + tint */
  background-color: #3d2817 !important;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !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 — seamless tile + tint */
  background-color: #3d2817 !important;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !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-color: #d0b589 !important;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !important;
  background-blend-mode: multiply, normal !important;
  border: 2px solid #958062 !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-color: #d0b589 !important;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !important;
  background-blend-mode: multiply, normal !important;
  border: 2px solid #958062 !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;
}

/* ============================================ */
/* 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 */
.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;
}

/* Omit paint containment on project cards — it broke multi-layer seam leather + blend in some browsers */
.project-card {
  contain: layout style;
}

/* 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 */
/* Exclude .project-card — grid child selector beats .project-card alone and was forcing auto 200px (CLS / white flash) */
.projects-grid>*:not(.project-card),
.users-grid>*,
.announcements-preview>*:not(.friend-activity-card) {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}

/* 60fps Performance: Simplify complex shadows for better performance (not project tiles — need leather depth) */
.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 — skip .project-card so page CSS can lift cards */
.nav-btn: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 */
.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 — will-change only when motion is OK (saves GPU memory on laptops) */
.parallax,
.background-clouds {
  transform: translateZ(0);
}

@media (prefers-reduced-motion: no-preference) {

  .parallax,
  .background-clouds {
    will-change: transform;
  }
}

/* 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 — pill 3D (match project page actions): lime gradient, no leather texture */
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.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;
  background-blend-mode: normal, normal !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  min-height: 44px;
  color: #0f0f0f !important;
  font-weight: 700 !important;
  font-family: var(--default-font-family, 'Shrikhand') !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  position: relative !important;
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 0 1px rgba(0, 0, 0, 0.2) !important;
}

/* Glossy green – primary actions (same pill stack as project page share/fullscreen row) */
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: none !important;
  border-radius: 999px !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.35) !important;
}

/* Kill white “hairline” gloss on buttons (was ::before strip from old skeuo layer) */
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,
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;
  width: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

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-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 3px solid #958062;
  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-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  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 #958062;
  opacity: 0.6;
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
}

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

.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: #374151;
  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-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  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: #1f2937;
  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-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  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: #1f2937;
  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 — hero leather + gold stitch + readable light type */
.welcome-modal {
  background-color: var(--hero-leather-base);
  background-image:
    var(--hero-leather-grad),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 4px solid var(--hero-leather-border);
  border-radius: 20px;
  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.55),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.35);
  padding: 32px 28px 28px;
  max-width: 500px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fffef9;
}

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

.welcome-modal::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 14px;
  border: 2px dashed var(--hero-leather-stitch);
  pointer-events: none;
  z-index: 1;
}

.welcome-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.1) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.welcome-modal-header,
.welcome-modal-content,
.welcome-modal-actions {
  position: relative;
  z-index: 2;
}

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

.welcome-modal-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fffef9;
  margin: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.35);
  font-family: var(--default-font-family, 'Shrikhand');
}

.welcome-modal-title-icon.material-icons {
  font-size: 2rem;
  color: #f0c75e !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.welcome-modal-title-text {
  line-height: 1.2;
}

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

.welcome-modal-text {
  font-size: 1.05rem;
  color: rgba(255, 254, 249, 0.94);
  line-height: 1.65;
  margin: 0 0 14px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.welcome-modal-text:last-child {
  margin-bottom: 0;
}

.welcome-modal-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-weight: 600;
  margin-bottom: 16px;
}

.welcome-modal-inline-icon.material-icons {
  font-size: 1.65rem;
  color: #f0c75e !important;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

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

.welcome-btn {
  padding: 12px 22px;
  border: 2px solid #3d6b1f;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--default-font-family, 'Shrikhand');
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome-btn .material-icons {
  font-size: 1.35rem;
  color: inherit !important;
}

.welcome-btn-primary {
  color: #10240c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
  border-color: #4d7c0f;
  box-shadow:
    0 6px 0 0 #2f5c12,
    0 10px 22px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.welcome-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 0 #2f5c12,
    0 14px 28px rgba(0, 0, 0, 0.38),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.welcome-btn-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 0 #2f5c12,
    0 6px 14px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.welcome-btn-secondary {
  color: #0d2518;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    linear-gradient(145deg, #86efac 0%, #4ade80 30%, #22c55e 55%, #15803d 100%);
  border-color: #166534;
  box-shadow:
    0 5px 0 0 #14532d,
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.welcome-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 0 #14532d,
    0 12px 24px rgba(0, 0, 0, 0.34),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}

.welcome-btn-secondary:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 0 #14532d,
    0 4px 12px rgba(0, 0, 0, 0.28),
    inset 0 2px 5px rgba(0, 0, 0, 0.18);
}

/* ============================================ */
/* 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-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 3px solid #958062;
  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 #958062;
  background: linear-gradient(145deg, #efe4d4, #c9a87c);
  color: #3a2515;
  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: #3a2515;
  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: #1e293b;
  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 #6a4d3d;
  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-color: #b89a7a;
  background-image:
    linear-gradient(145deg, rgba(196, 168, 130, 0.65) 0%, rgba(168, 144, 114, 0.58) 45%, rgba(184, 154, 122, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
}

.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: #fefdfb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 1.25;
}

.update-modal-hero {
  margin: 0 14px 12px;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid rgba(92, 64, 51, 0.55);
  background: linear-gradient(145deg, rgba(255, 251, 245, 0.45), rgba(230, 220, 208, 0.35));
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.update-modal-hero-img {
  display: block;
  width: 100%;
  max-height: min(32vh, 260px);
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(62, 44, 34, 0.25);
}

.update-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 252, 248, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.update-modal-body p {
  margin: 0 0 10px 0;
}

.update-modal-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.update-modal-body ul,
.update-modal-body ol {
  color: rgba(255, 252, 248, 0.96);
}

.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;
}

/* ----- Inlined theme presets (formerly themes/presets/*.css via @import) ----- */
body.wood-theme .sidebar,
body.wood-theme .container,
body.wood-theme .theme-card,
body.wood-theme .themes-panel {
  background:
    linear-gradient(180deg, rgba(255, 240, 214, 0.22), rgba(93, 54, 25, 0.1)),
    repeating-linear-gradient(
      90deg,
      rgba(92, 55, 29, 0.96) 0,
      rgba(92, 55, 29, 0.96) 24px,
      rgba(123, 76, 40, 0.96) 24px,
      rgba(123, 76, 40, 0.96) 48px
    ) !important;
  border: 2px solid #5e371a !important;
  box-shadow:
    0 12px 24px rgba(42, 18, 5, 0.28),
    inset 0 2px 0 rgba(255, 241, 214, 0.32),
    inset 0 -2px 0 rgba(58, 27, 7, 0.24) !important;
}

body.wood-theme .nav-btn,
body.wood-theme .btn,
body.wood-theme button,
body.wood-theme .action-btn,
body.wood-theme .tab-btn {
  background:
    linear-gradient(180deg, rgba(255, 233, 196, 0.95), rgba(187, 121, 62, 0.95) 55%, rgba(121, 66, 29, 0.98)) !important;
  border: 2px solid #6a3813 !important;
  color: #fff5e6 !important;
  text-shadow: 0 1px 0 rgba(64, 28, 10, 0.9) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 245, 228, 0.45),
    inset 0 -2px 0 rgba(77, 36, 12, 0.3),
    0 6px 14px rgba(56, 25, 8, 0.3) !important;
}

body.wood-theme .nav-btn:hover,
body.wood-theme .action-btn:hover,
body.wood-theme .tab-btn:hover,
body.wood-theme button:hover {
  filter: saturate(1.08) brightness(1.03);
}

body.frutiger-aero-theme .sidebar,
body.frutiger-aero-theme .container,
body.frutiger-aero-theme .theme-card,
body.frutiger-aero-theme .themes-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(190, 233, 255, 0.72) 45%, rgba(115, 187, 241, 0.48) 100%) !important;
  border: 1px solid rgba(85, 167, 230, 0.9) !important;
  box-shadow:
    0 14px 24px rgba(58, 137, 204, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -10px 18px rgba(84, 172, 228, 0.18) !important;
  backdrop-filter: blur(8px);
}

body.frutiger-aero-theme .nav-btn,
body.frutiger-aero-theme .btn,
body.frutiger-aero-theme button,
body.frutiger-aero-theme .action-btn,
body.frutiger-aero-theme .tab-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(171, 228, 255, 0.92) 46%, rgba(77, 177, 240, 0.95) 47%, rgba(37, 137, 214, 0.98)) !important;
  border: 1px solid rgba(52, 132, 191, 0.95) !important;
  color: #073a63 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(15, 92, 157, 0.22),
    0 10px 18px rgba(54, 145, 214, 0.22) !important;
}

body.frutiger-aero-theme .nav-btn:hover,
body.frutiger-aero-theme .action-btn:hover,
body.frutiger-aero-theme .tab-btn:hover,
body.frutiger-aero-theme button:hover {
  filter: saturate(1.12) brightness(1.04);
}
