:root {
  /* Soft neutrals */
  --bg-primary: #FAF9F6;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EBE1;
  
  /* Text colors */
  --text-primary: #2C2A29;
  --text-secondary: #6B6560;
  --text-tertiary: #9E9892;
  
  /* Accents */
  --accent-gold: #D4AF37;
  --accent-gold-hover: #C5A028;
  --accent-rose: #E8C3C5;
  --accent-rose-dark: #D4A3A6;

  /* Utility */
  --border-light: #EAE6DF;
  --shadow-sm: 0 2px 8px rgba(44, 42, 41, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 42, 41, 0.08);
  --shadow-lg: 0 16px 32px rgba(44, 42, 41, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --nav-height: 72px;
  --bottom-nav-height: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-tertiary: #2D2D2D;
    
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-tertiary: #757575;
    
    --accent-gold: #E5C158;
    --accent-gold-hover: #F2D57A;
    --accent-rose: #DCA3A5;
    --accent-rose-dark: #C68285;

    --border-light: #2A2A2A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-outfit), sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Mobile-first constraints */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  position: relative;
  box-shadow: var(--shadow-lg);
  padding-bottom: var(--bottom-nav-height);
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
