/* Dogymorbis mobile web app style */

:root {
  --color-primary: #F2E985; /* warm yellow */
  --color-secondary: #8CB3FF; /* sky blue */
  --color-graphite: #1A1A1A; /* dark text */
  --color-grey: #A9A9A9; /* soft grey */
  --color-gold: #FFD166; /* gold for rewards */
  --color-accent: #F8C8DC; /* pink accent */
  --color-success: #4CAF50; /* green */
  --color-error: #F44336; /* red */
  --color-warning: #FF9800; /* orange */
  
  --font-primary: 'Nunito Sans', sans-serif;
  --font-secondary: 'Montserrat Alternates', sans-serif;
  
  --header-height: 60px;
  --navbar-height: 70px;
  --sidebar-width: 280px;
  --border-radius: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  background-image: url('../assets/gradient_swirl.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  color: var(--color-graphite);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Loading Indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

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

.loading-spinner .bone-icon {
  font-size: 3rem;
  animation: bounce 1.5s infinite ease-in-out;
}

.loading-spinner p {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-graphite);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Бургер-меню */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2001;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-graphite);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.burger-menu:hover span {
  background-color: var(--color-secondary);
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bone-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-graphite);
}

.bone-icon {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}

.bone-icon.gold {
  animation: glow 1.5s ease-in-out infinite alternate;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.notification-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.notification-icon {
  font-size: 1.2rem;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-error);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Боковая панель */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--color-primary);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-secondary);
}

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

.user-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.user-details p {
  font-size: 0.9rem;
  color: var(--color-grey);
  margin: 0;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--color-graphite);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(140, 179, 255, 0.1);
  color: var(--color-secondary);
}

.nav-link.active {
  background-color: var(--color-secondary);
  color: white;
}

.nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-text {
  flex: 1;
  font-weight: 600;
}

.nav-badge {
  background-color: var(--color-error);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--color-error);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

/* Main Content */
.main-content {
  margin-top: var(--header-height);
  margin-bottom: var(--navbar-height);
  min-height: calc(100vh - var(--header-height) - var(--navbar-height));
  padding: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Home Page */
.home-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-container {
  flex: 1;
  position: relative;
  min-height: 300px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8CB3FF 0%, #F2E985 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-overlay {
  text-align: center;
  color: white;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.map-overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-content {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.welcome-card, .stats-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.welcome-card h3, .stats-card h3 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
  font-size: 1.2rem;
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-secondary);
}

.mission-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mission-info {
  flex: 1;
}

.mission-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--color-graphite);
  font-size: 1rem;
}

.mission-info p {
  margin: 0;
  color: var(--color-grey);
  font-size: 0.9rem;
}

.mission-reward {
  font-weight: 600;
  color: var(--color-success);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.floating-actions {
  position: fixed;
  bottom: 100px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.fab-main {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 4px 20px rgba(140, 179, 255, 0.4);
}

.fab-main:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(140, 179, 255, 0.6);
}

.fab-button .fab-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Chat Overlay */
.chat-overlay {
  position: fixed;
  bottom: calc(var(--navbar-height) + 1rem);
  left: 1rem;
  right: 1rem;
  z-index: 100;
}

.chat-toggle {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.chat-icon {
  font-size: 1.2rem;
}

.chat-text {
  flex: 1;
  font-weight: 600;
}

.unread-count {
  background-color: var(--color-error);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Bottom Navigation */
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-item {
  flex: 1;
  text-align: center;
  color: var(--color-graphite);
  font-size: 0.8rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--border-radius);
}

.navbar-item:hover {
  background-color: rgba(140, 179, 255, 0.1);
}

.navbar-item.active {
  color: var(--color-secondary);
}

.navbar-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 0.25rem;
}

.navbar-item .navbar-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.25rem;
  object-fit: contain;
}

/* Card component */
.card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  animation: fadeIn 0.6s ease forwards;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-graphite);
}

.card-body {
  font-size: 0.95rem;
  color: var(--color-graphite);
}

/* Button */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background-image: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: var(--color-graphite);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-primary);
}

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

.button.gold {
  background-image: linear-gradient(45deg, var(--color-gold), var(--color-secondary));
  color: var(--color-graphite);
}

.button.secondary {
  background-image: linear-gradient(45deg, var(--color-grey), var(--color-grey));
  color: white;
}

/* Install Prompt */
.install-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.install-prompt-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.install-prompt-content h3 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.install-prompt-content p {
  margin-bottom: 1.5rem;
  color: var(--color-grey);
}

.install-prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Notification Container */
.notification-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: 1500;
  max-width: 300px;
}

.notification {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--color-secondary);
}

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

.notification.notification-success {
  border-left-color: var(--color-success);
}

.notification.notification-error {
  border-left-color: var(--color-error);
}

.notification.notification-warning {
  border-left-color: var(--color-warning);
}

/* Page Specific Styles */
.profile-page, .chat-page, .events-page, .shop-page, .wallet-page, .dao-page, .settings-page {
  padding: 1rem 0;
}

.profile-header, .events-header, .shop-header, .wallet-header, .dao-header, .settings-header {
  margin-bottom: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-secondary);
}

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

.profile-info h2 {
  margin-bottom: 0.5rem;
}

.profile-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-section h3 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.dogs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dog-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
}

.dog-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.achievement {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
}

/* Chat Styles */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-item:hover {
  background-color: rgba(140, 179, 255, 0.1);
}

.chat-item.active {
  background-color: var(--color-secondary);
  color: white;
}

.chat-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.chat-info {
  flex: 1;
}

.chat-info h4 {
  margin-bottom: 0.25rem;
}

.chat-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.time {
  font-size: 0.8rem;
  color: var(--color-grey);
}

.unread {
  background-color: var(--color-error);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Events Styles */
.event-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.5rem;
  background-color: var(--color-secondary);
  color: white;
  border-radius: var(--border-radius);
  text-align: center;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-info h3 {
  margin-bottom: 0.5rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-grey);
  margin-top: 0.5rem;
}

/* Shop Styles */
.shop-search {
  margin-bottom: 1rem;
}

.shop-search input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
}

.shop-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-item {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-item.active {
  background-color: var(--color-secondary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.product-card h3 {
  padding: 0.5rem;
  font-size: 1rem;
}

.price {
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.buy-btn {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  cursor: pointer;
  font-weight: 600;
}

/* Wallet Styles */
.balance-display {
  text-align: center;
  margin-bottom: 2rem;
}

.balance-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
}

.balance-currency {
  font-size: 1.2rem;
  color: var(--color-grey);
}

.wallet-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background-color: var(--color-secondary);
  color: white;
}

.earning-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.earning-option {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  text-align: center;
}

.earning-option h3 {
  margin-bottom: 0.5rem;
}

.earning-option p {
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* DAO Styles */
.dao-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.proposals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proposal-card {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
}

.proposal-card h3 {
  margin-bottom: 0.5rem;
}

.proposal-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.vote-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
}

/* Settings Styles */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section h3 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.setting-item input[type="text"],
.setting-item input[type="email"] {
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
}

/* Error Page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-content h1 {
  font-size: 4rem;
  color: var(--color-error);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 280px;
    left: -280px;
  }
  
  .floating-actions {
    bottom: 80px;
  }
  
  .chat-overlay {
    bottom: 80px;
  }
  
  .notification-container {
    top: 70px;
    left: 10px;
    right: 10px;
  }
}

@media (min-width: 769px) {
  .sidebar {
    width: 320px;
    left: -320px;
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* Utility classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.hidden { display: none; }
.visible { display: block; }

/* Состояние body при открытом меню */
body.sidebar-open {
  overflow: hidden;
}

body.sidebar-open .sidebar {
  left: 0;
}

body.mobile {
  --sidebar-width: 100%;
}

/* Map Page Styles */
.map-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.map-controls {
  display: flex;
  gap: 0.5rem;
}

.map-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.map-filters {
  margin-bottom: 1rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-chip.active {
  background: var(--color-secondary);
  color: white;
}

.map-sidebar {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.nearby-users, .nearby-places {
  margin-bottom: 1.5rem;
}

.nearby-users h4, .nearby-places h4 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.user-item, .place-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  background: #f8f9fa;
}

.user-avatar, .place-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-secondary);
  color: white;
}

.user-info, .place-info {
  flex: 1;
}

.user-info h5, .place-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.user-info p, .place-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.wave-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  cursor: pointer;
  font-size: 1.2rem;
}

.map-start-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
}

/* Feed Page Styles */
.feed-page {
  padding: 1rem 0;
}

.feed-header {
  margin-bottom: 1rem;
}

.feed-tabs {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.feed-tab {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
}

.feed-tab.active {
  background: var(--color-secondary);
  color: white;
}

.post-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.post-info {
  flex: 1;
}

.post-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.post-info span {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.post-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-grey);
}

.post-content {
  margin-bottom: 1rem;
}

.post-image img, .post-video {
  width: 100%;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.video-placeholder {
  background: #f0f0f0;
  height: 200px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
}

.post-actions {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.action-count {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.event-post {
  border-left: 4px solid var(--color-secondary);
}

.event-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.event-details p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.join-btn {
  background: var(--color-success);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
}

/* Shop Page Styles */
.shop-page {
  padding: 1rem 0;
}

.shop-header {
  margin-bottom: 1rem;
}

.shop-search input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  margin-top: 0.5rem;
}

.shop-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-item {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-item.active {
  background: var(--color-secondary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-error);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

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

.product-info {
  padding: 1rem;
}

.product-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.product-info p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.price-currency {
  font-size: 1rem;
}

.price-original {
  font-size: 0.9rem;
  color: var(--color-grey);
  text-decoration: line-through;
}

.price-note {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-style: italic;
}

.buy-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.buy-btn:hover {
  background: var(--color-primary);
  color: var(--color-graphite);
}

.shop-footer {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.earn-bones-btn {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-graphite);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
}

/* DAO Page Styles */
.dao-page {
  padding: 1rem 0;
}

.dao-header {
  margin-bottom: 1rem;
}

.dao-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.dao-stats .stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.dao-stats .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.dao-stats .stat-label {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.dao-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.dao-tab {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dao-tab.active {
  background: var(--color-secondary);
  color: white;
}

.proposal-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-secondary);
}

.proposal-card.completed {
  border-left-color: var(--color-success);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.proposal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.proposal-status {
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.proposal-status.active {
  background: var(--color-secondary);
  color: white;
}

.proposal-status.upcoming {
  background: var(--color-warning);
  color: white;
}

.proposal-status.completed {
  background: var(--color-success);
  color: white;
}

.proposal-details {
  margin-bottom: 1rem;
}

.proposal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-grey);
  flex-wrap: wrap;
}

.proposal-votes {
  margin-bottom: 1rem;
}

.vote-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.vote-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.vote-fill.yes {
  background: var(--color-success);
}

.vote-fill.no {
  background: var(--color-error);
}

.vote-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.vote-yes {
  color: var(--color-success);
}

.vote-no {
  color: var(--color-error);
}

.proposal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vote-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vote-yes-btn {
  background: var(--color-success);
  color: white;
}

.vote-yes-btn:hover {
  background: #45a049;
}

.vote-no-btn {
  background: var(--color-error);
  color: white;
}

.vote-no-btn:hover {
  background: #d32f2f;
}

.challenge-join-btn, .proposal-details-btn, .proposal-result-btn {
  background: var(--color-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.challenge-join-btn:hover, .proposal-details-btn:hover, .proposal-result-btn:hover {
  background: var(--color-primary);
  color: var(--color-graphite);
}

/* Достижения */
.dao-achievements {
  margin-top: 2rem;
}

.dao-achievements h3 {
  margin-bottom: 1rem;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.achievement-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.achievement-info {
  flex: 1;
}

.achievement-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--color-graphite);
}

.achievement-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.achievement-reward {
  font-weight: 600;
  color: var(--color-gold);
  font-size: 1.1rem;
}

/* Profile Page Styles */
.profile-page {
  padding: 1rem 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.edit-profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section h3 {
  margin-bottom: 1rem;
  color: var(--color-graphite);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.stat-info {
  flex: 1;
}

.stat-info .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.stat-info .stat-label {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.achievement {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.achievement.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.achievement h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.achievement p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.wallet-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.wallet-balance {
  margin-bottom: 1rem;
}

.wallet-balance .balance-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-right: 0.5rem;
}

.wallet-balance .balance-currency {
  font-size: 2rem;
}

.wallet-actions {
  display: flex;
  gap: 1rem;
}

.earn-btn, .spend-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.earn-btn {
  background: var(--color-success);
  color: white;
}

.spend-btn {
  background: var(--color-secondary);
  color: white;
}

.add-dog-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
}

.bone-icon-small {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* Стили для страниц */
.page {
  display: none;
  padding: 20px;
  margin-top: var(--header-height);
  margin-bottom: var(--navbar-height);
  min-height: calc(100vh - var(--header-height) - var(--navbar-height));
}

.page.active {
  display: block;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.page-content h2 {
  color: var(--color-graphite);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.page-content p {
  color: var(--color-grey);
  margin-bottom: 1.5rem;
}

/* Адаптивность для страниц */
@media (max-width: 768px) {
  .page {
    padding: 10px;
  }
  
  .page-content {
    padding: 15px;
  }
  
  .page-content h2 {
    font-size: 1.5rem;
  }
}

/* Дополнительные стили для интерактивных элементов */

/* Маркеры на карте */
.map-marker {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-marker:hover {
  transform: scale(1.2);
}

.marker-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.marker-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-marker:hover .marker-tooltip {
  opacity: 1;
}

/* Кнопки управления картой */
.map-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.map-btn:hover {
  background: var(--color-primary);
  color: var(--color-graphite);
  transform: scale(1.1);
}

/* Фильтры карты */
.filter-chip {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

.filter-chip:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(140, 179, 255, 0.3);
}

/* Посты в ленте */
.post-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.post-info {
  flex: 1;
}

.post-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--color-graphite);
}

.post-info span {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.post-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-grey);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.post-menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.post-content {
  margin-bottom: 1rem;
}

.post-image img, .post-video {
  width: 100%;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.video-placeholder {
  background: #f0f0f0;
  height: 200px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
  margin-top: 0.5rem;
}

.play-btn {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
}

.post-actions {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.action-count {
  font-size: 0.9rem;
  color: var(--color-grey);
}

.event-post {
  border-left: 4px solid var(--color-secondary);
}

.event-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.event-details p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.join-btn {
  background: var(--color-success);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.join-btn:hover {
  background: #45a049;
}

/* Табы */
.feed-tab, .dao-tab {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.feed-tab:hover, .dao-tab:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-2px);
}

.feed-tab.active, .dao-tab.active {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(140, 179, 255, 0.3);
}

/* Товары в магазине */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s ease;
}

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

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-error);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.product-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

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

.product-info {
  padding: 1rem;
}

.product-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--color-graphite);
}

.product-info p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.price-currency {
  font-size: 1rem;
}

.price-original {
  font-size: 0.9rem;
  color: var(--color-grey);
  text-decoration: line-through;
}

.price-note {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-style: italic;
}

.buy-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.buy-btn:hover {
  background: var(--color-primary);
  color: var(--color-graphite);
}

/* Предложения DAO */
.proposal-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-secondary);
  transition: transform 0.2s ease;
}

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

.proposal-card.completed {
  border-left-color: var(--color-success);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.proposal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-graphite);
}

.proposal-status {
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.proposal-status.active {
  background: var(--color-secondary);
  color: white;
}

.proposal-status.upcoming {
  background: var(--color-warning);
  color: white;
}

.proposal-status.completed {
  background: var(--color-success);
  color: white;
}

.proposal-details {
  margin-bottom: 1rem;
}

.proposal-details p {
  margin: 0;
  color: var(--color-graphite);
}

.proposal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-grey);
  flex-wrap: wrap;
}

.proposal-votes {
  margin-bottom: 1rem;
}

.vote-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.vote-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.vote-fill.yes {
  background: var(--color-success);
}

.vote-fill.no {
  background: var(--color-error);
}

.vote-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.vote-yes {
  color: var(--color-success);
}

.vote-no {
  color: var(--color-error);
}

.proposal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vote-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vote-yes-btn {
  background: var(--color-success);
  color: white;
}

.vote-yes-btn:hover {
  background: #45a049;
}

.vote-no-btn {
  background: var(--color-error);
  color: white;
}

.vote-no-btn:hover {
  background: #d32f2f;
}

.challenge-join-btn, .proposal-details-btn, .proposal-result-btn {
  background: var(--color-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.challenge-join-btn:hover, .proposal-details-btn:hover, .proposal-result-btn:hover {
  background: var(--color-primary);
  color: var(--color-graphite);
}

/* Достижения */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.achievement-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.achievement-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.achievement-info {
  flex: 1;
}

.achievement-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--color-graphite);
}

.achievement-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-grey);
}

.achievement-reward {
  font-weight: 600;
  color: var(--color-gold);
  font-size: 1.1rem;
}

/* Настройки */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.setting-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.setting-item span {
  font-weight: 600;
  color: var(--color-graphite);
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
  cursor: pointer;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
  .filter-chips {
    gap: 0.25rem;
  }
  
  .filter-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .post-actions {
    gap: 0.5rem;
  }
  
  .action-btn {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  
  .proposal-actions {
    gap: 0.25rem;
  }
  
  .vote-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
  
  .achievement-item {
    padding: 0.8rem;
  }
  
  .achievement-icon {
    font-size: 1.5rem;
    width: 40px;
  }
}
