/* ==================== SHARED LAYOUT CSS ==================== */
/* Sidebar, Navbar, and App Layout styles shared across pages */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
/* Default values — components may override these in their own :root block */
:root {
  /* Brand colours — Matched to Website */
  --primary:                  #25D366;
  --primary-dark:             #1BAA52;
  --primary-deeper:           #128C40;
  --accent:                   #25D366;

  /* Page backgrounds */
  --bg:                       #fafcfc;
  --bg-secondary:             #f0f5f4;

  /* Card / surface */
  --card-bg:                  #ffffff;
  --surface-container-low:    #f1f5f9;
  --surface-container-highest:#e2e8f0;

  /* Typography */
  --text:                     #0f1f24;
  --text-muted:               #3a5058;

  /* Utility colours */
  --border:                   #e2ebe9;
  --error:                    #ef4444;

  /* Additional accent colors */
  --accent-blue:              #3b82f6;
  --accent-purple:            #8b5cf6;
  --accent-orange:            #f59e0b;

  /* Shape */
  --radius-sm:                8px;
  --radius-md:                12px;
  --radius-xl:                16px;

  /* Mobile viewport height (overridden by JS when needed) */
  --vh: 1vh;
}

/* ==================== BASE RESETS ==================== */
html {
  /* Prevent horizontal scroll on mobile */
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}

/* ==================== MAIN LAYOUT ==================== */
.app-container {
  display: flex;
  /* Progressive enhancement for mobile viewport height:
     1. 100vh  — universal fallback (includes browser chrome on iOS)
     2. -webkit-fill-available — iOS Safari legacy fix
     3. calc(var(--vh)*100) — JS-measured real viewport height
     4. 100dvh  — modern dynamic viewport height (Chrome 108+, Safari 15.4+)
  */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
}

.app-container.hidden {
  display: none;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: 220px;
  /* Solid fallback first so sidebar is never transparent */
  background-color: #ffffff;
  background-color: var(--card-bg, #ffffff);
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex;
  flex-direction: column;
  position: fixed;
  /* Progressive height fix for mobile browsers */
  height: 100vh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-logo svg {
  width: 18px;
  height: 18px;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section {
  padding: 0 0 12px;
}

.nav-section-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 12px 8px 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.nav-section:first-child .nav-section-title {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 13px;
  width: 100%;
}

.nav-item:hover {
  background: var(--bg-secondary);
  color: var(--text);
  border-left-color: var(--border);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(27, 170, 82, 0.05));
  color: var(--primary);
  border-left-color: var(--primary);
  border-left-width: 3px;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--error);
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.sidebar-overlay.mobile-open {
  display: block;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
}

/* ==================== NAVBAR ==================== */
.navbar {
  height: 64px;
  background-color: #ffffff;
  background-color: var(--card-bg, #ffffff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* ==================== NAVBAR BRAND ==================== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

.navbar-brand:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.navbar-brand svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.navbar-brand:hover svg {
  color: var(--primary-dark);
}

.navbar-brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: none;
}

.navbar-brand-accent {
  color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
  max-width: 320px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.navbar-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.navbar-status-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.navbar-status-value {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.navbar-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.navbar-wallet:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.25));
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.wallet-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  font-size: 12px;
}

.wallet-icon svg {
  width: 13px;
  height: 13px;
}

.wallet-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.navbar-signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.navbar-signout-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
  transform: translateY(-1px);
}

.navbar-signout-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-container-low);
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.05);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-icon:hover {
  background: var(--surface-container-highest);
  color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.08);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.profile-menu-container {
  position: relative;
}

.profile-menu-trigger {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 211, 102, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1001;
}

.profile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-summary {
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.profile-menu-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.profile-menu-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-word;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.profile-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-menu-item:hover {
  background: var(--surface-container-low);
}

.profile-menu-item-danger {
  color: var(--error);
}

.profile-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ==================== THEME SWITCHER ==================== */
.theme-switcher-container {
  position: relative;
}

.theme-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 211, 102, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  display: none;
}

.theme-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--text);
}

.theme-option:hover {
  background: var(--surface-container-low);
}

.theme-option.active {
  background: rgba(37, 211, 102, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.theme-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==================== CONTENT AREA ==================== */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* ==================== RESPONSIVE: LAYOUT ==================== */

/* Large Screens (1440px and above) */
@media (min-width: 1440px) {
  .sidebar {
    width: 240px;
  }

  .main-content {
    margin-left: 240px;
  }

  .content {
    padding: 40px;
  }
}

/* Medium Screens (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
  }

  .content {
    padding: 28px;
  }
}

/* Compact Desktop (1024px to 1700px): match denser 90%-like layout at 100% zoom */
@media (min-width: 1024px) and (max-width: 1700px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
  }

  .sidebar-header {
    padding: 12px 10px;
    gap: 8px;
  }

  .sidebar-logo {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .sidebar-title {
    font-size: 0.86rem;
  }

  .sidebar-nav {
    padding: 10px 0;
  }

  .nav-section-title {
    font-size: 8px;
    padding: 10px 8px 6px;
  }

  .nav-item {
    gap: 8px;
    padding: 8px 8px;
    font-size: 12px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .navbar {
    height: 60px;
    padding: 0 22px;
    gap: 16px;
  }

  .navbar-left {
    gap: 16px;
  }

  .navbar-brand-text {
    display: inline;
    font-size: 13px;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .search-box {
    max-width: 280px;
    padding: 8px 12px;
  }

  .search-box input {
    font-size: 13px;
  }

  .navbar-right {
    gap: 12px;
  }

  .navbar-status {
    gap: 10px;
    padding-right: 12px;
  }

  .navbar-status-label {
    font-size: 11px;
  }

  .navbar-status-value {
    font-size: 12px;
  }

  .navbar-wallet {
    padding: 6px 12px;
  }

  .wallet-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .wallet-amount {
    font-size: 12px;
  }

  .navbar-signout-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .btn-icon,
  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .profile-menu {
    width: 200px;
  }

  .btn-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
  }

  /* Sidebar as overlay drawer */
  .sidebar {
    width: 280px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    background-color: #ffffff;
    background-color: var(--card-bg, #ffffff);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    z-index: 998;
  }

  .sidebar-header {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
  }

  .sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
  }

  .nav-section {
    padding: 0 0 12px;
    display: flex;
    flex-direction: column;
  }

  .nav-section-title {
    display: block;
  }

  .nav-item {
    padding: 10px 14px;
    white-space: nowrap;
    border-left: 3px solid transparent;
    margin: 0;
  }

  .nav-item.active {
    border-left: 3px solid var(--primary);
    border-bottom: none;
  }

  .main-content {
    margin-left: 0;
    flex-direction: column;
  }

  .navbar {
    height: 60px;
    flex-direction: row;
    gap: 12px;
    padding: 0 12px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .navbar-brand-text {
    display: inline;
    font-size: 12px;
  }

  .page-title {
    font-size: 1.2rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-box {
    display: none;
  }

  .navbar-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
  }

  .navbar-wallet {
    padding: 6px 12px;
    font-size: 12px;
  }

  .wallet-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .wallet-amount {
    font-size: 12px;
  }

  .navbar-signout-btn {
    height: 40px;
    padding: 0 12px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  .btn-icon svg {
    width: 20px;
    height: 20px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .profile-menu {
    right: -4px;
  }

  .navbar-status {
    flex-wrap: wrap;
    border-right: none;
    gap: 16px;
    width: 100%;
    padding-right: 0;
  }

  .content {
    padding: 20px;
  }
}

/* Mobile Large (480px to 767px) */
@media (max-width: 767px) {
  .app-container {
    flex-direction: column;
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
  }

  /* Sidebar as drawer on mobile */
  .sidebar {
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    flex-direction: column;
    background-color: #ffffff;
    background-color: var(--card-bg, #ffffff);
    border-right: 1px solid var(--border, #e2e8f0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-header {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
  }

  .sidebar-logo {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .sidebar-title {
    font-size: 0.95rem;
  }

  .sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
  }

  .nav-section {
    padding: 0 0 12px;
    display: flex;
    flex-direction: column;
  }

  .nav-section-title {
    display: block;
    font-size: 9px;
  }

  .nav-item {
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
    border-left: 3px solid transparent;
    margin: 0;
    border-bottom: none;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .nav-item.active {
    border-left: 3px solid var(--primary);
    border-bottom: none;
  }

  .main-content {
    margin-left: 0;
  }

  .navbar {
    height: 56px;
    flex-direction: row;
    gap: 8px;
    padding: 0 10px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .hamburger-menu {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .page-title {
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-box {
    display: none;
  }

  .navbar-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
  }

  .navbar-status {
    display: none;
  }

  .navbar-wallet {
    padding: 6px 12px;
    font-size: 12px;
  }

  .wallet-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .wallet-amount {
    font-size: 12px;
  }

  .navbar-signout-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .navbar-signout-btn span {
    display: none;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
  }

  .btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .profile-menu {
    width: 190px;
    right: 0;
  }

  .content {
    padding: 14px;
  }
}

/* Mobile Small (320px to 479px) */
@media (max-width: 479px) {
  .sidebar-nav {
    gap: 2px;
  }

  .nav-item {
    padding: 6px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .nav-item svg {
    width: 14px;
    height: 14px;
  }

  .nav-badge {
    font-size: 9px;
    padding: 1px 4px;
  }

  .navbar {
    height: 52px;
    padding: 0 8px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .hamburger-menu {
    width: 32px;
    height: 32px;
    gap: 4px;
  }

  .hamburger-line {
    width: 18px;
    height: 2px;
  }

  .page-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-wallet {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .wallet-icon {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .wallet-amount {
    font-size: 10px;
  }

  .navbar-signout-btn {
    width: 32px;
    height: 32px;
  }

  .navbar-signout-btn svg {
    width: 14px;
    height: 14px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }

  .btn-icon svg {
    width: 16px;
    height: 16px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .profile-menu {
    width: 176px;
    right: 0;
  }

  .theme-switcher-container {
    position: relative;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .content {
    padding: 10px;
  }
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
  .btn-icon {
    -webkit-tap-highlight-color: transparent;
  }

  .btn-icon:hover {
    transform: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    height: 4px;
  }

  .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
  }
}
