@charset "UTF-8";
/**
 * Modern Component Patterns (2025/2026)
 * Reusable component styles with proper accessibility
 */
/* ===== Button Component ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  background-color: var(--color-primary-500);
  color: var(--color-neutral-0);
}

.btn-primary:hover {
  background-color: var(--color-primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-neutral-200);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-neutral-300);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background-color: var(--color-bg-secondary);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* ===== Card Component ===== */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.card-body {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== Input Component ===== */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(26, 117, 255, 0.1);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-bg-secondary);
}

.input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* Input with Icon */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: var(--space-4);
  color: var(--color-text-secondary);
  pointer-events: none;
}

.input-group .input {
  padding-left: var(--space-10);
}

/* ===== Badge Component ===== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
}

.badge-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--color-warning);
}

.badge-error {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--color-error);
}

/* ===== Avatar Component ===== */
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--color-neutral-200);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 48px;
  height: 48px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

/* Avatar with Status */
.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-surface);
}

.avatar-status-online {
  background-color: var(--color-accent-green);
}

.avatar-status-offline {
  background-color: var(--color-neutral-400);
}

/* ===== Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--color-neutral-200) 25%, var(--color-neutral-100) 50%, var(--color-neutral-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-base);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
[data-theme=dark] .skeleton {
  background: linear-gradient(90deg, var(--color-dark-bg-tertiary) 25%, var(--color-dark-bg-secondary) 50%, var(--color-dark-bg-tertiary) 75%);
  background-size: 200% 100%;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  min-width: 300px;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  z-index: var(--z-notification);
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-2xl);
  animation: modal-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-scale-in {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
/**
 * Design System - CSS Custom Properties
 * Modern design tokens for Cigaal Super-App (2025/2026)
 */
:root {
  /* ===== Color System ===== */
  /* Primary Brand Colors */
  --color-primary-50: #e3f2fd;
  --color-primary-100: #bbdefb;
  --color-primary-200: #90caf9;
  --color-primary-300: #64b5f6;
  --color-primary-400: #42a5f5;
  --color-primary-500: #1a75ff;
  --color-primary-600: #1e88e5;
  --color-primary-700: #1976d2;
  --color-primary-800: #1565c0;
  --color-primary-900: #0d47a1;
  /* Accent Colors */
  --color-accent-green: #05b649;
  --color-accent-orange: #ff7300;
  --color-accent-red: #dc3545;
  --color-accent-yellow: #ffc107;
  /* Neutral Colors - Light Mode */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f8f9fa;
  --color-neutral-100: #f0f0f0;
  --color-neutral-200: #e4e8ed;
  --color-neutral-300: #cbd5e0;
  --color-neutral-400: #a0aec0;
  --color-neutral-500: #6c757d;
  --color-neutral-600: #4a5568;
  --color-neutral-700: #2d3748;
  --color-neutral-800: #1a202c;
  --color-neutral-900: #0a0a0a;
  /* Semantic Colors */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-error: #dc3545;
  --color-info: #17a2b8;
  /* ===== Dark Mode Colors ===== */
  --color-dark-bg-primary: #0a0a0a;
  --color-dark-bg-secondary: #1a1a1a;
  --color-dark-bg-tertiary: #2a2a2a;
  --color-dark-surface: #1e1e1e;
  --color-dark-border: #333333;
  --color-dark-text-primary: #f0f0f0;
  --color-dark-text-secondary: #b0b0b0;
  /* ===== Typography ===== */
  /* Font Families */
  --font-primary: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Heebo", "Roboto", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;
  /* Font Sizes - Fluid Typography */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --font-size-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
  --font-size-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  /* ===== Spacing Scale ===== */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  /* ===== Border Radius ===== */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
  /* ===== Transitions ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* ===== Z-Index Scale ===== */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
  /* ===== Layout ===== */
  --container-max-width: 1200px;
  --container-padding: var(--space-4);
  --header-height: 60px;
  --footer-height: 80px;
}

/* Dark Mode Variables */
[data-theme=dark] {
  --color-bg-primary: var(--color-dark-bg-primary);
  --color-bg-secondary: var(--color-dark-bg-secondary);
  --color-bg-tertiary: var(--color-dark-bg-tertiary);
  --color-surface: var(--color-dark-surface);
  --color-border: var(--color-dark-border);
  --color-text-primary: var(--color-dark-text-primary);
  --color-text-secondary: var(--color-dark-text-secondary);
  /* Desaturate accent colors in dark mode */
  --color-primary-500: #4a8fff;
  --color-accent-green: #10d45f;
  --color-accent-orange: #ff8c33;
}

/* Light Mode Variables */
[data-theme=light],
:root {
  --color-bg-primary: var(--color-neutral-0);
  --color-bg-secondary: var(--color-neutral-50);
  --color-bg-tertiary: var(--color-neutral-100);
  --color-surface: var(--color-neutral-0);
  --color-border: var(--color-neutral-200);
  --color-text-primary: var(--color-neutral-900);
  --color-text-secondary: var(--color-neutral-600);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-spring: 0ms;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/**
 * Bug Fixes and Enhancements for existing style.css
 * Addresses specific issues and modernizes patterns
 */
/* ===== Global Improvements ===== */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
}

/* ===== Fix: Improve scrollbar styling ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-500);
}

[data-theme=dark] ::-webkit-scrollbar-track {
  background: var(--color-dark-bg-secondary);
}

[data-theme=dark] ::-webkit-scrollbar-thumb {
  background: var(--color-dark-border);
}

/* ===== Fix: Improve focus states for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ===== Fix: Better link styling ===== */
a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

/* ===== Fix: Improve form elements ===== */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Fix: Better image handling ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Enhancement: Stories component improvements ===== */
#Stories,
.MobileStories {
  scrollbar-width: thin;
  scrollbar-color: var(--color-neutral-400) transparent;
}

#Stories ul,
.MobileStories ul {
  padding: 0;
  margin: 0;
  gap: var(--space-4);
}

#Stories ul li a,
.MobileStories ul li a {
  transition: transform var(--transition-fast);
}

#Stories ul li a:hover,
.MobileStories ul li a:hover {
  transform: scale(1.05);
}

/* Add ring animation for unviewed stories */
#Stories ul li a,
.MobileStories ul li a {
  position: relative;
}

#Stories ul li a::before,
.MobileStories ul li a::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--color-accent-green), var(--color-primary-500));
  z-index: -1;
  animation: story-pulse 2s ease-in-out infinite;
}

@keyframes story-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
/* ===== Enhancement: Chat list improvements ===== */
.chat-item {
  transition: background-color var(--transition-fast);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.chat-item:hover {
  background-color: var(--color-bg-secondary);
}

.chat-item:active {
  background-color: var(--color-bg-tertiary);
}

/* ===== Enhancement: Notification badge improvements ===== */
.notification .badge {
  animation: badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* ===== Enhancement: Settings panel improvements ===== */
.settings-panel {
  background-color: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.settings-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  background-color: var(--color-neutral-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.settings-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.settings-toggle.active {
  background-color: var(--color-primary-500);
}

.settings-toggle.active::after {
  transform: translateX(20px);
}

/* ===== Enhancement: Voice assistant modal ===== */
.voice-assistant-modal {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.7);
}

.voice-assistant-content {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
}

.voice-mic-button {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  border: none;
  cursor: pointer;
  position: relative;
  animation: mic-pulse 2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(26, 117, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(26, 117, 255, 0);
  }
}
/* ===== Enhancement: Search bar improvements ===== */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px rgba(26, 117, 255, 0.1);
}

/* ===== Enhancement: Call history improvements ===== */
.call-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-fast);
}

.call-item:hover {
  background-color: var(--color-bg-secondary);
}

.call-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.call-status-missed {
  background-color: var(--color-error);
}

.call-status-answered {
  background-color: var(--color-success);
}

.call-status-outgoing {
  background-color: var(--color-primary-500);
}

/* ===== Enhancement: Responsive improvements ===== */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-3);
  }
  .modal {
    max-width: 95vw;
    padding: var(--space-6);
  }
  .toast {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    min-width: auto;
  }
}
/* ===== Enhancement: Dark mode specific improvements ===== */
[data-theme=dark] {
  color-scheme: dark;
}

[data-theme=dark] img {
  opacity: 0.9;
}

[data-theme=dark] .card {
  background-color: var(--color-dark-surface);
  border-color: var(--color-dark-border);
}

[data-theme=dark] .input {
  background-color: var(--color-dark-bg-secondary);
  border-color: var(--color-dark-border);
  color: var(--color-dark-text-primary);
}

/* ===== Enhancement: Performance optimizations ===== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Use GPU acceleration for animations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/**
 * Modern Utility Classes (2025/2026)
 * Follows best practices for utility-first CSS
 */
/* ===== Layout Utilities ===== */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.inline-grid {
  display: inline-grid;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

/* Flex Direction */
.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-col-reverse {
  flex-direction: column-reverse;
}

/* Flex Wrap */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

/* Justify Content */
.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* Align Items */
.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

/* Gap */
.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ===== Spacing Utilities ===== */
/* Padding */
.p-0 {
  padding: var(--space-0);
}

.p-1 {
  padding: var(--space-1);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-5 {
  padding: var(--space-5);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

/* Margin */
.m-0 {
  margin: var(--space-0);
}

.m-1 {
  margin: var(--space-1);
}

.m-2 {
  margin: var(--space-2);
}

.m-3 {
  margin: var(--space-3);
}

.m-4 {
  margin: var(--space-4);
}

.m-5 {
  margin: var(--space-5);
}

.m-6 {
  margin: var(--space-6);
}

.m-8 {
  margin: var(--space-8);
}

.m-auto {
  margin: auto;
}

/* ===== Typography Utilities ===== */
.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-3xl {
  font-size: var(--font-size-3xl);
}

.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.leading-tight {
  line-height: var(--line-height-tight);
}

.leading-normal {
  line-height: var(--line-height-normal);
}

.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ===== Color Utilities ===== */
.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-accent {
  color: var(--color-primary-500);
}

.text-success {
  color: var(--color-success);
}

.text-error {
  color: var(--color-error);
}

.text-warning {
  color: var(--color-warning);
}

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

.bg-secondary {
  background-color: var(--color-bg-secondary);
}

.bg-surface {
  background-color: var(--color-surface);
}

.bg-accent {
  background-color: var(--color-primary-500);
}

/* ===== Border Utilities ===== */
.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded {
  border-radius: var(--radius-base);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ===== Shadow Utilities ===== */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow-base);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* ===== Transition Utilities ===== */
.transition {
  transition: all var(--transition-base);
}

.transition-fast {
  transition: all var(--transition-fast);
}

.transition-slow {
  transition: all var(--transition-slow);
}

/* ===== Accessibility Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus-visible:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ===== Interactive States ===== */
.interactive {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.interactive:hover {
  transform: translateY(-2px);
}

.interactive:active {
  transform: translateY(0);
}

/* ===== Glassmorphism Effect ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme=dark] .glass {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FORCE REDESIGN - 2025/2026 UX IMPROVEMENTS
   This file MUST be loaded LAST to override all existing styles
   ============================================ */
/* Reset and Force Dark Background */
body {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important;
  color: #e5e7eb !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  min-height: 100vh !important;
}

/* Force Page Container Styles */
.page-container {
  background: transparent !important;
  max-width: 100% !important;
  min-height: 100vh !important;
}

/* Force Header Glassmorphism */
.page-header,
header[role=banner] {
  background: rgba(26, 26, 26, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Force Header Text Colors */
.page-header h1,
.page-header .text-xl {
  background: linear-gradient(135deg, #10b981, #3b82f6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}

/* Force Button Styles */
.btn-icon,
.page-header button {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #e5e7eb !important;
  padding: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-icon:hover,
.page-header button:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px) !important;
}

/* Force Search Bar Glassmorphism */
#searchBar,
.bg-surface-elevated {
  background: rgba(26, 26, 26, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Force Input Styles */
input[type=search],
.input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #e5e7eb !important;
  padding: 0.75rem 1rem 0.75rem 2.5rem !important;
}

input::placeholder {
  color: rgba(229, 231, 235, 0.5) !important;
}

/* Force Tab Navigation Styles */
nav[role=tablist],
.bg-surface-elevated.shadow-sm {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Force Tab Button Styles */
.tab-btn {
  background: transparent !important;
  color: rgba(229, 231, 235, 0.6) !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  padding: 1rem !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e5e7eb !important;
}

.tab-btn.active {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border-bottom-color: #10b981 !important;
}

/* Force Badge Styles */
.badge,
.notification-badge {
  background: #10b981 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 0.125rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

.badge-error {
  background: #ef4444 !important;
}

.badge-success {
  background: #10b981 !important;
}

.badge-warning {
  background: #f59e0b !important;
}

/* Force Stories Container */
.stories-container {
  background: rgba(26, 26, 26, 0.5) !important;
  padding: 1rem !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.stories-container::-webkit-scrollbar {
  display: none !important;
}

/* Force Story Item Styles */
.story-item {
  min-width: 80px !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
}

.story-item:hover {
  transform: scale(1.05) !important;
}

/* Force Avatar Styles */
.avatar,
.avatar-lg,
.avatar-md {
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(16, 185, 129, 0.3) !important;
}

.avatar-lg {
  width: 64px !important;
  height: 64px !important;
}

.avatar {
  width: 48px !important;
  height: 48px !important;
}

.avatar-md {
  width: 40px !important;
  height: 40px !important;
}

/* Force Card Styles (AI Assistant, etc.) */
.card {
  background: rgba(26, 26, 26, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Force Button Styles */
.btn {
  border-radius: 12px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border: 1px solid transparent !important;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-sm {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
}

/* Force Chat Item Styles */
.chat-item {
  background: rgba(26, 26, 26, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 1rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.chat-item:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  border-left: 3px solid #10b981 !important;
  padding-left: calc(1rem - 3px) !important;
}

/* Force Text Colors */
.chat-item h3,
.font-semibold {
  color: #f3f4f6 !important;
  font-weight: 600 !important;
}

.text-secondary,
.text-sm.text-secondary {
  color: rgba(229, 231, 235, 0.6) !important;
}

.text-tertiary,
.text-xs.text-tertiary {
  color: rgba(229, 231, 235, 0.4) !important;
}

/* Force Status Indicator */
.status-online {
  background: #10b981 !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 2px solid #1a1a1a !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
}

/* Force Verified Badge */
.verified-badge,
.fas.fa-check-circle {
  color: #10b981 !important;
}

/* Force Sponsored Tag */
.sponsored-tag {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

/* Force Bottom Navigation */
.bottom-nav {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.75rem 0 !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  display: flex !important;
  justify-content: space-around !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3) !important;
}

.bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.25rem !important;
  color: rgba(229, 231, 235, 0.6) !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  font-size: 0.75rem !important;
}

.bottom-nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e5e7eb !important;
}

.bottom-nav-item.active {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

.bottom-nav-icon {
  font-size: 1.25rem !important;
  color: inherit !important;
}

/* Force FAB (Floating Action Button) */
.fab {
  background: linear-gradient(135deg, #10b981, #3b82f6) !important;
  color: #ffffff !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.6) !important;
}

.fab:active {
  transform: translateY(-2px) scale(1.02) !important;
}

/* Force Modal Styles */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

#voiceModal .bg-surface-elevated,
.modal-backdrop > div {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Force Panel Styles */
.panel,
#notificationPanel,
#settingsPanel {
  background: rgba(26, 26, 26, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5) !important;
}

.panel-header {
  background: rgba(16, 185, 129, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1rem !important;
}

/* Force Filter Button Styles */
.call-filter-btn,
.notification-filter-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(229, 231, 235, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
}

.call-filter-btn:hover,
.notification-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

.call-filter-btn.active,
.notification-filter-btn.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

/* Force Story Card Styles */
.story-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.story-card:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Force Notification Item Styles */
.notification-item {
  background: rgba(26, 26, 26, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

.notification-item:hover {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Force Switch/Toggle Styles */
.switch {
  position: relative !important;
  display: inline-block !important;
  width: 48px !important;
  height: 24px !important;
}

.switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transition: 0.4s !important;
  border-radius: 24px !important;
}

.slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  transition: 0.4s !important;
  border-radius: 50% !important;
}

input:checked + .slider {
  background-color: #10b981 !important;
}

input:checked + .slider:before {
  transform: translateX(24px) !important;
}

/* Force Pulse Animation */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* Force Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.5) !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.7) !important;
}

/* Force Main Content Area */
main[role=main],
#main-content {
  background: transparent !important;
  padding-bottom: 5rem !important;
}

/* Force Section Styles */
section {
  background: transparent !important;
}

.section {
  padding: 1rem 0 !important;
}

/* Force Border Colors */
.border-border,
[class*=border-] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Force Icon Colors */
.fas,
.fa,
i[class*=fa-] {
  color: inherit !important;
}

/* Force Link Styles */
a {
  color: #10b981 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

a:hover {
  color: #34d399 !important;
}

/* Force Skip Link */
.skip-to-main {
  position: absolute !important;
  left: -9999px !important;
  z-index: 999 !important;
  padding: 1rem !important;
  background: #10b981 !important;
  color: white !important;
  text-decoration: none !important;
}

.skip-to-main:focus {
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 1rem !important;
}

/* Force Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    padding: 0.75rem !important;
  }
  .tab-btn {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
  }
  .chat-item {
    padding: 0.75rem !important;
  }
}
/* Force Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #10b981 !important;
  outline-offset: 2px !important;
}

/* Force Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Force High Contrast Mode */
@media (prefers-contrast: high) {
  .card,
  .chat-item,
  .btn {
    border-width: 2px !important;
  }
}
/* Override Tailwind Utilities */
.bg-background {
  background: transparent !important;
}

.text-text-primary {
  color: #e5e7eb !important;
}

.bg-surface-elevated {
  background: rgba(26, 26, 26, 0.8) !important;
}

/* Force Grid Layouts */
.grid {
  display: grid !important;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gap-3 {
  gap: 0.75rem !important;
}

/* Force Flex Layouts */
.flex {
  display: flex !important;
}

.items-center {
  align-items: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-around {
  justify-content: space-around !important;
}

.justify-center {
  justify-content: center !important;
}

.flex-1 {
  flex: 1 1 0% !important;
}

.flex-col {
  flex-direction: column !important;
}

/* Force Spacing */
.p-4 {
  padding: 1rem !important;
}

.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-4 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

/* Force Text Utilities */
.text-xs {
  font-size: 0.75rem !important;
  line-height: 1rem !important;
}

.text-sm {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.text-base {
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.text-lg {
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
}

.text-xl {
  font-size: 1.25rem !important;
  line-height: 1.75rem !important;
}

.font-medium {
  font-weight: 500 !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.font-bold {
  font-weight: 700 !important;
}

/* Force Positioning */
.fixed {
  position: fixed !important;
}

.absolute {
  position: absolute !important;
}

.relative {
  position: relative !important;
}

.sticky {
  position: sticky !important;
}

/* Force Z-Index */
.z-10 {
  z-index: 10 !important;
}

.z-20 {
  z-index: 20 !important;
}

.z-30 {
  z-index: 30 !important;
}

.z-50 {
  z-index: 50 !important;
}

/* Force Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
}

/* Force Display */
.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.inline-flex {
  display: inline-flex !important;
}

/* Force Rounded Corners */
.rounded-full {
  border-radius: 9999px !important;
}

.rounded-lg {
  border-radius: 0.5rem !important;
}

.rounded-xl {
  border-radius: 0.75rem !important;
}

/* Force Shadow */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Force Transitions */
.transition {
  transition-property: all !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}

/* Force Cursor */
.cursor-pointer {
  cursor: pointer !important;
}

/* Force Min/Max Width */
.min-w-0 {
  min-width: 0 !important;
}

.max-w-sm {
  max-width: 24rem !important;
}

.w-full {
  width: 100% !important;
}

/* Force Line Clamp */
.line-clamp-1 {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
}

/* Additional Micro-Interactions */
.chat-item,
.btn,
.story-item,
.bottom-nav-item {
  position: relative !important;
  overflow: hidden !important;
}

.chat-item::before,
.btn::before,
.story-item::before,
.bottom-nav-item::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.3) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.6s, height 0.6s !important;
}

.chat-item:active::before,
.btn:active::before,
.story-item:active::before,
.bottom-nav-item:active::before {
  width: 300px !important;
  height: 300px !important;
}

/**
 * Cigaal Super-App - Modern Design System (2025/2026)
 * Complete design tokens and component library
 */
/* ===== Design Tokens ===== */
:root {
  /* Brand Colors */
  --primary-50: #e3f2fd;
  --primary-100: #bbdefb;
  --primary-500: #1a75ff;
  --primary-600: #1e88e5;
  --primary-700: #1976d2;
  /* Accent Colors */
  --accent-green: #05b649;
  --accent-orange: #ff7300;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  /* Neutral Scale */
  --neutral-0: #ffffff;
  --neutral-50: #f8f9fa;
  --neutral-100: #f0f0f0;
  --neutral-200: #e4e8ed;
  --neutral-300: #cbd5e0;
  --neutral-500: #6c757d;
  --neutral-700: #2d3748;
  --neutral-900: #0a0a0a;
  /* Semantic Colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --info: #17a2b8;
  /* Typography */
  --font-primary: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Heebo", "Roboto", sans-serif;
  /* Font Sizes - Fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

/* Dark Mode */
[data-theme=dark] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --surface: #1e1e1e;
  --border: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  /* Desaturate colors in dark mode */
  --primary-500: #4a8fff;
  --accent-green: #10d45f;
}

/* Light Mode */
[data-theme=light],
:root {
  --bg-primary: var(--neutral-0);
  --bg-secondary: var(--neutral-50);
  --bg-tertiary: var(--neutral-100);
  --surface: var(--neutral-0);
  --border: var(--neutral-200);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-500);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Improved Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-500);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

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

/* ===== Typography Improvements ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 65ch;
}

/* ===== Modern Button Component ===== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-modern:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: var(--neutral-0);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* ===== Modern Card Component ===== */
.card-modern {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ===== Glassmorphism Effect ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme=dark] .glass {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Modern Input Component ===== */
.input-modern {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}

.input-modern:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 117, 255, 0.1);
}

.input-modern::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ===== Badge Component ===== */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(26, 117, 255, 0.1);
  color: var(--primary-700);
}

.badge-success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

/* ===== Avatar Component ===== */
.avatar-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-secondary);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 40px;
  height: 40px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
}

.avatar-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Status Indicator ===== */
.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
}

.status-online {
  background: var(--success);
}

.status-offline {
  background: var(--neutral-300);
}

/* ===== Modal/Dialog Component ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s var(--transition-spring);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ===== Utility Classes ===== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.text-center {
  text-align: center;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.transition {
  transition: all var(--transition-base);
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== Responsive Design ===== */
@media (min-width: 768px) {
  :root {
    --space-4: 1.25rem;
    --space-6: 2rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --space-4: 1.5rem;
    --space-6: 2.5rem;
  }
}
/**
 * Page-Specific Improvements for Cigaal Super-App
 * Fixes bugs and enhances UI/UX for discover, shop, and settings pages
 */
/* ===== Header Improvements ===== */
.headernav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(var(--bg-primary-rgb, 10, 10, 10), 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

/* Improved header shadow on scroll */
.headernav.scrolled {
  box-shadow: var(--shadow-md);
}

/* Better search bar styling */
.search-bar,
.search-container input {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  width: 100%;
}

.search-bar:focus,
.search-container input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 117, 255, 0.1);
  outline: none;
}

/* ===== Stories/Live Posts Improvements ===== */
.livepost {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-4) 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.livepost::-webkit-scrollbar {
  display: none;
}

.livepost li {
  flex-shrink: 0;
  list-style: none;
}

/* Improved story card with better hover effect */
.livepost .image {
  position: relative;
  width: 80px;
  height: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid transparent;
  transition: all var(--transition-base);
}

.livepost .image:hover {
  transform: scale(1.05);
  border-color: var(--primary-500);
}

.livepost .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live indicator with pulse animation */
.liveico {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--error);
  color: var(--neutral-0);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
/* ===== Product Card Improvements ===== */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
}

/* Better hover effect with lift */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

/* Improved product image container */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

/* Better badge positioning and styling */
.product-badge,
.discount-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--error);
  color: var(--neutral-0);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 1;
}

/* ===== Category Icons Improvements ===== */
.category-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-0);
  font-size: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

/* Interactive category icon with spring animation */
.category-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.category-icon:active {
  transform: translateY(0) scale(0.95);
}

/* ===== Settings Page Improvements ===== */
.settingpage {
  padding: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

.settingpage__content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.settingpage__content h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

/* Improved color selector grid */
.colorssetting ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
}

.colorssetting li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

/* Better color swatch with hover effect */
.color {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 3px solid transparent;
  box-shadow: var(--shadow-sm);
}

.color:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.color:active,
.color.selected {
  border-color: var(--neutral-0);
  box-shadow: var(--shadow-lg);
}

/* Color values */
#color1 {
  background-color: #b70000;
}

#color2 {
  background-color: #007bff;
}

#color3 {
  background-color: #181818;
}

#color4 {
  background-color: #28a745;
}

#color5 {
  background-color: #ffc107;
}

#color6 {
  background-color: #fd7e14;
}

#color7 {
  background-color: #343a40;
}

#color8 {
  background-color: #101038;
}

#color9 {
  background-color: #66006f;
}

#color10 {
  background-color: #e94bee;
}

#color11 {
  background-color: #ffffff;
  border: 2px solid var(--border);
}

#color12 {
  background-color: #4a148c;
}

#color13 {
  background-color: #ffebf0;
}

#color14 {
  background-color: #856404;
}

#color15 {
  background-color: #ff5722;
}

#color16 {
  background-color: #8bc34a;
}

#color17 {
  background-color: #d500f9;
}

#color18 {
  background-color: #ff4081;
}

#color19 {
  background-color: #0d47a1;
}

#color20 {
  background-color: #ffeb3b;
}

#color21 {
  background-color: #1b5e20;
}

#color22 {
  background-color: #795548;
}

#color23 {
  background-color: #607d8b;
}

#color24 {
  background-color: #00bcd4;
}

#color25 {
  background-color: #f50057;
}

#color26 {
  background-color: #ff1744;
}

#color27 {
  background-color: #00e676;
}

#color28 {
  background-color: #673ab7;
}

#color29 {
  background-color: #ff9800;
}

#color30 {
  background-color: #d84315;
}

#color31 {
  background-color: #009688;
}

#color32 {
  background-color: #4e342e;
}

#color33 {
  background-color: #ff6f00;
}

#color34 {
  background-color: #5d4037;
}

#color35 {
  background-color: #9c27b0;
}

#color36 {
  background-color: #1a237e;
}

#color37 {
  background-color: #d32f2f;
}

#color38 {
  background-color: #2e7d32;
}

#color39 {
  background-color: #3e2723;
}

#color40 {
  background-color: #b71c1c;
}

#color41 {
  background-color: #006064;
}

#color42 {
  background-color: #37474f;
}

/* ===== Bottom Navigation Improvements ===== */
.Customecolor {
  background: rgba(var(--bg-primary-rgb, 10, 10, 10), 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

/* Better nav item styling with active state */
#nav__bottom__item {
  position: relative;
  transition: all var(--transition-fast);
}

#nav__bottom__item:hover {
  background: var(--bg-secondary);
}

#nav__bottom__item.active4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

/* ===== Video Card Improvements ===== */
.video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Better play button with backdrop */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-900);
  font-size: 24px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.play-icon:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--neutral-0);
}

/* ===== Countdown Timer Improvements ===== */
.countdown {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.countdown-item {
  background: var(--error);
  color: var(--neutral-0);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* ===== Responsive Improvements ===== */
@media (max-width: 768px) {
  .settingpage {
    padding: var(--space-4);
  }
  .colorssetting ul {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: var(--space-3);
  }
  .color {
    width: 50px;
    height: 50px;
  }
}
/* ===== Performance Optimizations ===== */
/* Use will-change for animated elements */
.product-card,
.category-icon,
.video-card {
  will-change: transform;
}

/* Use contain for isolated components */
.card-modern,
.product-card {
  contain: layout style paint;
}

/**
 * Modern CSS Reset - 2025/2026
 * Provides consistent baseline across browsers
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove default button styles */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Remove default input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Remove default image styles */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove default table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Improve focus visibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/**
 * Design Tokens - 2025/2026 Modern Design System
 * CSS Custom Properties for theming, spacing, typography, and colors
 */
:root {
  /* ===== Color System ===== */
  /* Primary Brand Colors */
  --color-primary: #1a73e8;
  --color-primary-hover: #1557b0;
  --color-primary-light: #e8f0fe;
  --color-primary-dark: #0d47a1;
  /* Accent Colors */
  --color-accent: #00d9ff;
  --color-accent-hover: #00b8d4;
  --color-success: #00c853;
  --color-warning: #ffa726;
  --color-error: #f44336;
  --color-info: #29b6f6;
  /* Neutral Colors - Light Mode */
  --color-background: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-elevated: #ffffff;
  --color-border: #e0e0e0;
  --color-divider: #eeeeee;
  /* Text Colors - Light Mode */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-tertiary: #999999;
  --color-text-disabled: #bdbdbd;
  --color-text-inverse: #ffffff;
  /* ===== Typography ===== */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  /* Font Sizes - Modular Scale (1.25 ratio) */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  /* ===== Spacing Scale ===== */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  /* ===== Border Radius ===== */
  --radius-sm: 0.375rem; /* 6px */
  --radius-base: 0.5rem; /* 8px */
  --radius-md: 0.75rem; /* 12px */
  --radius-lg: 1rem; /* 16px */
  --radius-xl: 1.5rem; /* 24px */
  --radius-2xl: 2rem; /* 32px */
  --radius-full: 9999px;
  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  /* ===== Transitions ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* ===== Z-Index Scale ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  /* ===== Glassmorphism ===== */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(10px);
  /* ===== Layout ===== */
  --header-height: 56px;
  --bottom-nav-height: 60px;
  --max-width-container: 1200px;
  --max-width-content: 800px;
}

/* ===== Dark Mode ===== */
[data-theme=dark] {
  /* Background Colors */
  --color-background: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-surface-elevated: #242424;
  --color-border: #333333;
  --color-divider: #2a2a2a;
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b3b3b3;
  --color-text-tertiary: #808080;
  --color-text-disabled: #4d4d4d;
  --color-text-inverse: #0a0a0a;
  /* Adjust Primary Colors for Dark Mode */
  --color-primary: #4a9eff;
  --color-primary-hover: #6bb0ff;
  --color-primary-light: rgba(74, 158, 255, 0.15);
  /* Glassmorphism Dark */
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Shadows Dark */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
}

/* ===== Theme Color Variants ===== */
[data-theme-color=blue] {
  --color-primary: #1a73e8;
  --color-primary-hover: #1557b0;
}

[data-theme-color=purple] {
  --color-primary: #9c27b0;
  --color-primary-hover: #7b1fa2;
}

[data-theme-color=pink] {
  --color-primary: #e91e63;
  --color-primary-hover: #c2185b;
}

[data-theme-color=red] {
  --color-primary: #f44336;
  --color-primary-hover: #d32f2f;
}

[data-theme-color=orange] {
  --color-primary: #ff9800;
  --color-primary-hover: #f57c00;
}

[data-theme-color=yellow] {
  --color-primary: #ffc107;
  --color-primary-hover: #ffa000;
}

[data-theme-color=green] {
  --color-primary: #4caf50;
  --color-primary-hover: #388e3c;
}

[data-theme-color=teal] {
  --color-primary: #009688;
  --color-primary-hover: #00796b;
}

[data-theme-color=cyan] {
  --color-primary: #00bcd4;
  --color-primary-hover: #0097a7;
}

[data-theme-color=indigo] {
  --color-primary: #3f51b5;
  --color-primary-hover: #303f9f;
}

/* ============================================
   ADVANCED ANIMATIONS & MICRO-INTERACTIONS
   2025/2026 Modern UI/UX Enhancements
   ============================================ */
/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Pull-to-refresh animation */
@keyframes pull-to-refresh {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
  }
}
.pull-to-refresh-indicator {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pull-to-refresh-indicator.active {
  animation: pull-to-refresh 0.6s ease-out forwards;
}

.pull-to-refresh-indicator::after {
  content: "↓";
  color: white;
  font-size: 24px;
  font-weight: bold;
}

/* Skeleton loading animations */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: 12px;
}

/* Swipe gesture indicators */
@keyframes swipe-left {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes swipe-right {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}
.swipe-hint-left {
  animation: swipe-left 1.5s ease-in-out infinite;
}

.swipe-hint-right {
  animation: swipe-right 1.5s ease-in-out infinite;
}

/* Swipeable item */
.swipeable-item {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}

.swipeable-item.swiping {
  transition: none;
}

.swipeable-actions {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.swipeable-actions.left {
  left: 0;
  background: linear-gradient(90deg, #10b981, #059669);
}

.swipeable-actions.right {
  right: 0;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  justify-content: flex-end;
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.fab:active {
  transform: scale(0.95);
}

.fab-menu {
  position: fixed;
  bottom: 150px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.fab-menu.active {
  opacity: 1;
  pointer-events: all;
  bottom: 150px;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  transform: translateX(100px);
  opacity: 0;
}

.fab-menu.active .fab-menu-item {
  transform: translateX(0);
  opacity: 1;
}

.fab-menu.active .fab-menu-item:nth-child(1) {
  transition-delay: 0.05s;
}

.fab-menu.active .fab-menu-item:nth-child(2) {
  transition-delay: 0.1s;
}

.fab-menu.active .fab-menu-item:nth-child(3) {
  transition-delay: 0.15s;
}

.fab-menu-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-menu-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.fab-menu-item-label {
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Toast notifications */
@keyframes toast-slide-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes toast-slide-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}

.toast.hiding {
  animation: toast-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast-content {
  flex: 1;
  color: white;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Bottom sheet */
@keyframes bottom-sheet-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes bottom-sheet-slide-down {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e1e1e;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.bottom-sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.bottom-sheet-content {
  color: rgba(255, 255, 255, 0.8);
}

/* Parallax scroll effect */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Infinite scroll loader */
.infinite-scroll-loader {
  display: flex;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.infinite-scroll-loader.active {
  opacity: 1;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Smooth page transitions */
.page-transition-enter {
  opacity: 0;
  transform: translateX(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contextual menu */
.context-menu {
  position: fixed;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.context-menu-item.danger {
  color: #ef4444;
}

.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* Badge animations */
@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
.badge-animated {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip.active {
  opacity: 1;
}

.tooltip::after {
  content: "";
  position: absolute;
  border: 4px solid transparent;
}

.tooltip.top::after {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip.bottom::after {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: rgba(0, 0, 0, 0.9);
}

/* Offline indicator */
.offline-indicator {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: #ef4444;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.offline-indicator.active {
  transform: translateX(-50%) translateY(0);
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke: #10b981;
  fill: none;
  animation: checkmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #10b981;
  animation: checkmark 0.3s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   2025/2026 Mobile-First Design
   ============================================ */
/* Fluid Typography */
:root {
  --fluid-min-width: 320;
  --fluid-max-width: 1200;
  --fluid-screen: 100vw;
  --fluid-bp: calc(
    (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
    (var(--fluid-max-width) - var(--fluid-min-width))
  );
}

@media screen and (min-width: 1200px) {
  :root {
    --fluid-screen: calc(var(--fluid-max-width) * 1px);
  }
}
.fluid-text-xs {
  font-size: calc(0.75rem + 0.125 * var(--fluid-bp));
}

.fluid-text-sm {
  font-size: calc(0.875rem + 0.125 * var(--fluid-bp));
}

.fluid-text-base {
  font-size: calc(1rem + 0.125 * var(--fluid-bp));
}

.fluid-text-lg {
  font-size: calc(1.125rem + 0.125 * var(--fluid-bp));
}

.fluid-text-xl {
  font-size: calc(1.25rem + 0.25 * var(--fluid-bp));
}

.fluid-text-2xl {
  font-size: calc(1.5rem + 0.5 * var(--fluid-bp));
}

.fluid-text-3xl {
  font-size: calc(2rem + 0.5 * var(--fluid-bp));
}

/* Container Queries */
@container (min-width: 400px) {
  .container-responsive {
    padding: 24px;
  }
}
@container (min-width: 600px) {
  .container-responsive {
    padding: 32px;
  }
}
/* Safe Area Insets */
.safe-area-top {
  padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-left {
  padding-left: env(safe-area-inset-left);
}

.safe-area-right {
  padding-right: env(safe-area-inset-right);
}

/* Touch-Friendly Targets */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Grid */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .responsive-grid {
    gap: 24px;
  }
}
/* Responsive Spacing */
.responsive-padding {
  padding: clamp(16px, 4vw, 32px);
}

.responsive-margin {
  margin: clamp(16px, 4vw, 32px);
}

.responsive-gap {
  gap: clamp(12px, 3vw, 24px);
}

/* Responsive Images */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.responsive-image-contain {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Aspect Ratio Containers */
.aspect-square {
  aspect-ratio: 1/1;
}

.aspect-video {
  aspect-ratio: 16/9;
}

.aspect-portrait {
  aspect-ratio: 3/4;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
}
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
}
/* Responsive Cards */
.responsive-card {
  padding: clamp(16px, 4vw, 24px);
  border-radius: clamp(12px, 2vw, 16px);
}

/* Responsive Modals */
@media (max-width: 640px) {
  .modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
@media (min-width: 641px) {
  .modal {
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    border-radius: 16px;
  }
}
/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .landscape-hide {
    display: none;
  }
  .landscape-compact {
    padding: 8px;
  }
}
/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .high-dpi-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #0a0a0a;
    color: #ffffff;
  }
}
/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  body {
    background: white;
    color: black;
  }
}

/*# sourceMappingURL=moderen.css.map */
