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

/* Prevent horizontal scrolling globally */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #141b2d;
  --bg-card: #1a1f35;
  --bg-header: #0a0e27;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --border-color: #2d3748;
  --hover-bg: #252b3d;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Cybernetic Dark Gradient: Deep Teal -> Black -> Deep Maroon */
  background: linear-gradient(135deg, #012E38 0%, #000000 50%, #360505 100%);
  background-attachment: fixed; /* Keep gradient fixed on scroll */
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw;
  /* Ensure gradient shows through */
  background: transparent;
  padding: 0; /* No padding on app container */
}

.app-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Styles - Layer3 inspired */
.app-header {
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) - same as statistics boxes */
  backdrop-filter: blur(36px); /* Increased blur - same as statistics boxes */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  border: none; /* No borderlines */
  border-radius: 24px; /* Rounded rectangle */
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 16px; /* Margin from top edge */
  z-index: 100;
  margin: 16px 24px 0 24px; /* Margins from screen edges - top, right, bottom, left */
  width: calc(100% - 48px); /* Full width minus left and right margins */
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
  transition: all 0.2s;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.header-nav-slider {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.header-nav-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.header-nav-item:hover {
  color: var(--text-primary);
}

.header-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.header-nav-icon svg {
  width: 100%;
  height: 100%;
}

.header-nav-text {
  flex: 1;
  white-space: nowrap;
}

.menu-button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.menu-button svg {
  width: 24px;
  height: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-corner {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 102;
}


.logo-icon {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.header-center {
  flex: 1;
  max-width: 300px;
  margin: 0 24px;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 44px;
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) - glassmorphism */
  backdrop-filter: blur(36px); /* Blur effect - same as statistics boxes */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  border: none; /* No borderlines */
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
}

.search-input::placeholder {
  font-weight: bold;
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  background: rgba(37, 43, 61, 0.25); /* Slightly more visible on focus, maintaining 80% transparency */
  backdrop-filter: blur(45px); /* Even more blur on focus */
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5), /* Deeper shadow on focus */
              0 7px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15); /* Slightly brighter highlight */
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-button {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-left: 8px;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-button:hover::before {
  width: 300px;
  height: 300px;
}

.login-button:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.signup-button {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.signup-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.signup-button:hover::before {
  left: 100%;
}

.signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.signup-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.profile-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-balance-display {
  display: flex;
  align-items: center;
}

.trust-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
}

.trust-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.trust-balance-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-balance-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-balance-loading {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-icon-button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
  padding: 0;
}

.profile-icon-button:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.profile-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: transparent;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-address {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: monospace;
  background: var(--bg-secondary);
}

.profile-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-dropdown-item:hover {
  background: var(--hover-bg);
}

.profile-dropdown-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-disconnect {
  color: #ef4444;
  display: flex;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
}

.profile-dropdown-disconnect:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.profile-dropdown-disconnect svg {
  color: currentColor;
}

/* Main Content */
.app-main {
  flex: 1;
  padding: 32px 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.filter-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
}

.filter-tab.active {
  color: var(--text-primary);
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
}

/* Quest Grid */
.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Quest Card - Layer3 Style */
.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.quest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-blue);
}

.quest-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.quest-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.quest-image-placeholder {
  font-size: 48px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.quest-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.quest-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.xp-badge {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.quest-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quest-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.quest-participants {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quest-project {
  display: flex;
  align-items: center;
  gap: 6px;
}

.complete-button {
  width: 100%;
  padding: 12px;
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.complete-button:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.complete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.completed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #10b981;
  color: var(--text-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}

/* Leaderboard */
.leaderboard {
  width: 100%;
}

.leaderboard h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.leaderboard-table th {
  background: var(--bg-secondary);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover {
  background: var(--hover-bg);
}

/* Forms */
.create-quest h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* User Profile */
.user-profile h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
}

/* User Dashboard */
.user-dashboard {
  opacity: 1;
  transform: translateY(0);
}

.user-dashboard {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* User Details Section - Galxe Style */
.user-details-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.user-details-section {
  margin-bottom: 32px;
  padding: 24px;
  border: none; /* Remove border */
  border-radius: 32px;
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) */
  backdrop-filter: blur(36px); /* Increased blur by 80% (20px * 1.8 = 36px) */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth - increased by 80% */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth - increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
  transition: all 0.2s;
}

.user-details-section:hover {
  background: rgba(37, 43, 61, 0.25); /* Slightly more visible on hover, maintaining 80% transparency */
  backdrop-filter: blur(45px); /* Even more blur on hover - increased by 80% (25px * 1.8 = 45px) */
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5), /* Deeper shadow on hover - increased by 80% */
              0 7px 22px rgba(0, 0, 0, 0.4), /* Increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.15); /* Slightly brighter highlight */
  transform: translateY(-3px); /* Increased lift effect on hover */
}

.user-details-content {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 40px;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.user-info-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.user-name {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.level-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-radius: 20px;
  font-weight: 600;
}

.level-badge-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
}

.level-badge-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.user-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.user-address svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.user-address .address-text {
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
}

/* New Circle - Before Trust Balance */

/* XP Progress Bar - Inline in User Details */
.xp-progress-container-inline {
  display: flex;
  align-items: center;
  position: absolute;
  margin-left: auto;
  transform: translateX(-280px);
  right: 0;
}

.xp-progress-container-inline .xp-level-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Circle shape */
  border: 3px solid var(--border-color); /* 3px solid border */
  position: relative;
  display: flex; /* Flexbox for centering */
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  flex-shrink: 0;
  z-index: 2;
}

.xp-progress-container-inline .xp-level-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #39E80C 0%, #2db809 100%); /* Green gradient for depth */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), /* Black outer shadow */
              0 2px 6px rgba(0, 0, 0, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.2), /* Inner highlight */
              inset 0 -2px 4px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
}

.xp-progress-container-inline .level-value {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.xp-progress-container-inline .xp-progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  margin-left: -24px;
  padding-left: 24px;
  min-width: 0;
  margin-top: -2px;
}

.xp-progress-container-inline .xp-progress-bar {
  width: 100%;
  max-width: 500px;
  min-width: 250px;
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
}

.xp-progress-container-inline .xp-progress-fill {
  height: 8px;
  background: #39E80C; /* Green color */
  border-radius: 4px;
  transition: width 1.5s ease-out;
  position: relative;
  overflow: hidden;
}

.xp-progress-container-inline .xp-progress-fill.loading {
  animation: progressLoading 2s ease-out forwards;
}

.xp-progress-loading-animation {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmerRightToLeft 2s ease-out forwards;
  transform: translateX(100%);
}

@keyframes shimmerRightToLeft {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-300%);
    opacity: 0;
  }
}

@keyframes progressLoading {
  0% {
    width: 0%;
  }
  100% {
    width: var(--target-width, 2%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.xp-progress-container-inline .xp-current {
  color: var(--text-primary);
  font-size: 10.8px;
  font-weight: 400;
  white-space: nowrap;
  align-self: flex-start;
  opacity: 0.5;
  margin-top: 4px;
  position: absolute;
  top: 32px;
  right: 0;
}

/* Shard Count Display */
.user-shard-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  position: absolute;
  right: 40px;
}

.shard-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.shard-count-value {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-profile-button-galxe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-profile-button-galxe:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.edit-profile-button-galxe svg {
  color: var(--text-secondary);
}

.edit-profile-button-galxe:hover svg {
  color: var(--accent-blue);
}

/* Legacy styles - keeping for backward compatibility */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edit-profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-profile-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.dashboard-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.wallet-address {
  display: flex;
  align-items: center;
}

.address-text {
  color: var(--text-secondary);
  font-size: 14px;
  font-family: monospace;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.xp-section-no-bg {
  padding: 0;
  margin-bottom: 32px;
}

.section-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
}

/* XP Display */
.xp-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xp-progress-container {
  display: flex;
  align-items: center;
  position: relative;
}

.xp-level-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Circle shape */
  border: 3px solid var(--border-color); /* 3px solid border */
  position: relative;
  display: flex; /* Flexbox for centering */
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  flex-shrink: 0;
  z-index: 2;
}

.xp-level-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #39E80C 0%, #2db809 100%); /* Green gradient for depth */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), /* Black outer shadow */
              0 2px 6px rgba(0, 0, 0, 0.3),
              inset 0 2px 4px rgba(255, 255, 255, 0.2), /* Inner highlight */
              inset 0 -2px 4px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
}

.level-value {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.xp-progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-left: -33px;
  padding-left: 24px;
  min-width: 0;
  margin-top: -3px;
}

.xp-current {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.xp-progress-bar {
  width: 100%;
  max-width: 50%;
  min-width: 180px;
  height: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  box-sizing: border-box;
}

.xp-progress-bar .xp-current {
  position: absolute;
  top: -28px;
  right: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.xp-progress-fill {
  height: 8px;
  background: #39E80C; /* Green color */
  border-radius: 4px;
  transition: width 0.3s ease;
  align-self: center;
}

/* Social Connections */
.social-connections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-item:hover {
  background: rgba(37, 43, 61, 0.25);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.social-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.twitter-icon {
  background: rgba(29, 161, 242, 0.2);
  color: #1da1f2;
}

.discord-icon {
  background: rgba(114, 137, 218, 0.2);
  color: #7289da;
}

.email-icon {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.github-icon {
  background: rgba(33, 38, 45, 0.2);
  color: #ffffff;
}

.social-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-name {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.social-status {
  font-size: 14px;
}

.social-status.connected {
  color: #10b981;
}

.social-status.disconnected {
  color: var(--text-muted);
}

.connect-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.connect-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.connect-button:hover {
  background: linear-gradient(135deg, #2d4a6f 0%, #3d5a7f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3),
              0 3px 6px rgba(0, 0, 0, 0.3);
}

.connect-button:hover::before {
  left: 100%;
}

.connect-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.connect-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Edit Profile */
.edit-profile {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.edit-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.back-button:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

.edit-profile-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.edit-profile-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.edit-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.section-description {
  color: var(--text-muted);
  font-size: 14px;
  margin: -8px 0 20px 0;
}

/* Username Section */
.username-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.username-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}

.username-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-card);
}

.username-input::placeholder {
  color: var(--text-muted);
}

.save-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.save-button:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.save-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.save-message.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.save-message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Picture Section */
.profile-pic-section {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-pic-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.profile-pic-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.upload-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.remove-button {
  padding: 8px 16px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.remove-button:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

/* Wallets List */
.wallets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.wallet-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.wallet-address {
  color: var(--text-secondary);
  font-size: 13px;
  font-family: monospace;
}

.remove-wallet-button {
  padding: 8px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-wallet-button:hover {
  background: var(--hover-bg);
  color: #ef4444;
  border-color: #ef4444;
}

.connect-wallet-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.connect-wallet-button:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  border-style: solid;
}

/* User Stats Section - No Background */
.stats-section-no-bg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 0;
}

/* Individual Stat Rectangles */
.stat-rectangle {
  display: flex;
  flex-direction: column;
  gap: 5.6px;
  padding: 20px;
  height: 200px;
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) */
  border: none; /* Remove border */
  border-radius: 16px;
  transition: all 0.2s;
  justify-content: flex-end;
  align-items: flex-start;
  backdrop-filter: blur(36px); /* Increased blur by 80% (20px * 1.8 = 36px) */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth - increased by 80% */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth - increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
}

.stat-rectangle:hover {
  background: rgba(37, 43, 61, 0.25); /* Slightly more visible on hover, maintaining 80% transparency */
  backdrop-filter: blur(45px); /* Even more blur on hover - increased by 80% (25px * 1.8 = 45px) */
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5), /* Deeper shadow on hover - increased by 80% */
              0 7px 22px rgba(0, 0, 0, 0.4), /* Increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.15); /* Slightly brighter highlight */
  transform: translateY(-3px); /* Increased lift effect on hover */
}

.stat-rectangle .stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  transform: translateY(-1px);
}

.stat-rectangle .stat-value {
  color: var(--text-primary);
  font-size: 33px;
  font-weight: 700;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  transform: translateY(-13px);
}

/* Legacy styles for other components */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.stat-card:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.stat-value {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.section-no-bg {
  padding: 0;
  margin-bottom: 32px;
}

/* Section Tabs */
.section-header-with-tabs {
  margin-bottom: 20px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.section-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  position: relative;
}

.section-tab:hover {
  color: var(--text-primary);
}

.section-tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.section-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-radius: 2px 2px 0 0;
}

/* User Activity */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.activity-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.activity-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.activity-time {
  color: var(--text-muted);
  font-size: 12px;
}

.activity-xp {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Claims */
.claims-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.claims-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.claims-count-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.claims-count-value {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.claims-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.claims-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claim-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.claim-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

.claim-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.claim-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claim-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.claim-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.claim-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.claim-amount {
  padding: 6px 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-value {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
}

/* Slide-out Menu - Hidden (moved to top bar) */
.slide-menu {
  display: none; /* Side menu removed, items moved to top bar */
}

.slide-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 64px; /* Match header height */
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  flex-shrink: 0; /* Prevent shrinking */
}

.slide-menu-header h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.slide-menu-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.slide-menu-close:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
}

.slide-menu-nav {
  flex: 1;
  padding: 12px 8px;
  padding-top: 12px; /* Reduced padding since header is now visible */
  overflow-y: auto;
}

.slide-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 10px;
  border: none;
}

.slide-menu-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.slide-menu-item:active {
  background: var(--bg-secondary);
}

.slide-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.slide-menu-icon svg {
  width: 100%;
  height: 100%;
}

.slide-menu-text {
  flex: 1;
  white-space: nowrap;
}

/* Project Slideshow */
.slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
}

.slideshow-glass {
  width: 85%;
  max-width: 1000px;
  height: 500px;
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) - same as statistics boxes */
  backdrop-filter: blur(36px); /* Increased blur by 80% (20px * 1.8 = 36px) - same as statistics boxes */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  border: none; /* Remove border - same as statistics boxes */
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth - increased by 80% - same as statistics boxes */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth - increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
  transition: all 0.2s;
  overflow: hidden; /* Ensure arrows don't overflow */
}

.slideshow-glass:hover {
  background: rgba(37, 43, 61, 0.25); /* Slightly more visible on hover, maintaining 80% transparency */
  backdrop-filter: blur(45px); /* Even more blur on hover - increased by 80% (25px * 1.8 = 45px) */
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5), /* Deeper shadow on hover - increased by 80% */
              0 7px 22px rgba(0, 0, 0, 0.4), /* Increased by 80% */
              inset 0 1px 0 rgba(255, 255, 255, 0.15); /* Slightly brighter highlight */
  transform: translateY(-3px); /* Increased lift effect on hover */
}

.slideshow-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slideshow-image {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
}

.slideshow-image-placeholder {
  font-size: 72px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}

.slideshow-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slideshow-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.slideshow-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.slideshow-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slideshow-dot.active {
  background: var(--text-primary);
  width: 24px;
  border-radius: 5px;
}

/* Slideshow Navigation Arrows */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slideshow-nav:hover {
  background: rgba(37, 43, 61, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slideshow-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.slideshow-prev {
  left: 16px;
}

.slideshow-next {
  right: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .app-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    margin: 12px 16px 0 16px; /* Smaller margins on mobile */
    width: calc(100% - 32px); /* Full width minus left and right margins */
    border-radius: 16px; /* Slightly smaller radius on mobile */
    top: 12px; /* Smaller top margin on mobile */
  }

  .header-left {
    gap: 16px;
    flex-wrap: wrap;
  }

  .header-nav {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .header-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .header-nav-item {
    padding: 6px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .header-nav-text {
    display: block; /* Show text on mobile since icons are removed */
  }

  .header-center {
    display: none;
  }

  .quests-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 4px;
  }

  .filter-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .app-content-wrapper {
    margin-left: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    width: 100%;
    max-width: 100vw;
  }

  /* Prevent horizontal scrolling globally on mobile */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ensure all containers respect viewport width */
  .app-main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .slideshow-glass {
    width: 90%;
    max-width: 1000px;
    height: auto;
    min-height: 450px;
    padding: 28px;
  }

  .slideshow-image {
    height: 250px;
  }

  .slideshow-title {
    font-size: 26px;
  }

  .slideshow-description {
    font-size: 14px;
  }
}/* Toast Container - Top Right */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

/* Individual Toast */
.toast {
  position: relative;
  background: var(--bg-primary, #1a1a1a);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-exiting {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateX(100%);
}

/* Toast Content */
.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Toast Icon */
.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

/* Toast Message */
.toast-message {
  flex: 1;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  word-wrap: break-word;
  min-width: 0;
}

/* Toast Close Button */
.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #ffffff);
  transform: scale(1.1);
}

.toast-close:active {
  transform: scale(0.95);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

/* Toast Types */
.toast-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

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

.toast-error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

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

.toast-warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

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

.toast-info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

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

/* Animations */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* Progress Bar (Optional - for auto-dismiss indication) */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 0 0 12px 12px;
  animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
/* Base Skeleton */
.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-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Quest Card Skeleton */
.quest-card-skeleton {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-title {
  width: 70%;
  height: 24px;
  border-radius: 6px;
}

.skeleton-text {
  width: 100%;
  height: 16px;
  border-radius: 4px;
}

.skeleton-text-short {
  width: 60%;
}

.skeleton-footer {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.skeleton-badge {
  width: 60px;
  height: 24px;
  border-radius: 12px;
}

/* Leaderboard Row Skeleton */
.leaderboard-row-skeleton {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(26, 31, 53, 0.2);
  border-radius: 12px;
  margin-bottom: 8px;
}

.skeleton-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

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

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

.skeleton-name {
  width: 120px;
  height: 20px;
  border-radius: 4px;
}

.skeleton-xp {
  width: 80px;
  height: 20px;
  border-radius: 4px;
  margin-left: auto;
}

/* Profile Skeleton */
.profile-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
}

/* Raid Card Skeleton */
.raid-card-skeleton {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.raid-card-skeleton .skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: 0;
}

.raid-card-skeleton .skeleton-content {
  padding: 20px;
}

.raid-card-skeleton .skeleton-details {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.raid-card-skeleton .skeleton-detail-item {
  width: 60px;
  height: 16px;
  border-radius: 4px;
}

.raid-card-skeleton .skeleton-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  margin-top: 16px;
}

/* Stats Card Skeleton */
.stats-card-skeleton {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-card-skeleton .skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.stats-card-skeleton .skeleton-stat-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-card-skeleton .skeleton-stat-label {
  width: 80px;
  height: 14px;
  border-radius: 4px;
}

.stats-card-skeleton .skeleton-stat-value {
  width: 60px;
  height: 28px;
  border-radius: 4px;
}

/* Page Skeleton Containers */
.page-skeleton {
  width: 100%;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Raids Page Skeleton */
.raids-page-skeleton {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.raids-page-skeleton .skeleton-header {
  width: 100%;
  max-width: 941px;
  height: 320px;
  border-radius: 24px;
  margin: 0 auto;
}

.raids-page-skeleton .skeleton-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(26, 31, 53, 0.2);
  border-radius: 12px;
}

.raids-page-skeleton .skeleton-nav-button {
  width: 80px;
  height: 36px;
  border-radius: 8px;
}

.raids-page-skeleton .skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Community Page Skeleton */
.community-page-skeleton {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.community-page-skeleton .skeleton-section-title {
  width: 200px;
  height: 32px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.community-page-skeleton .skeleton-spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.space-card-skeleton {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.space-card-skeleton .skeleton-space-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.space-card-skeleton .skeleton-space-name {
  width: 100px;
  height: 20px;
  border-radius: 4px;
}

.space-card-skeleton .skeleton-space-members {
  width: 80px;
  height: 16px;
  border-radius: 4px;
}

/* Rewards Page Skeleton */
.rewards-page-skeleton {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rewards-page-skeleton .skeleton-rewards-header {
  width: 100%;
  height: 200px;
  border-radius: 24px;
}

.rewards-page-skeleton .skeleton-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.reward-card-skeleton {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reward-card-skeleton .skeleton-reward-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.reward-card-skeleton .skeleton-reward-title {
  width: 150px;
  height: 24px;
  border-radius: 4px;
}

.reward-card-skeleton .skeleton-reward-value {
  width: 100px;
  height: 32px;
  border-radius: 4px;
}


/* Discover Page Skeleton */
.discover-page-skeleton {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.discover-page-skeleton .skeleton-slideshow {
  width: 100%;
  height: 400px;
  border-radius: 24px;
}

.discover-page-skeleton .skeleton-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Dashboard Skeleton */
.dashboard-skeleton {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-skeleton .skeleton-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: rgba(26, 31, 53, 0.2);
  border-radius: 16px;
}

.dashboard-skeleton .skeleton-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .raids-page-skeleton .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .community-page-skeleton .skeleton-spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-skeleton .skeleton-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-radius: 24px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  gap: 24px;
  max-width: 600px;
  margin: 40px auto;
}

.empty-state-icon {
  color: var(--text-muted);
  opacity: 0.6;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
}

.empty-state-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.empty-state-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}







.quest-list {
  opacity: 1;
  transform: translateY(0);
}

.quest-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quest-list-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.quest-list-filters {
  display: flex;
  gap: 12px;
}

.filter-button {
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .quest-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quests-grid {
    grid-template-columns: 1fr;
  }
}




  transform: translateY(0);
}

.quest-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quest-list-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.quest-list-filters {
  display: flex;
  gap: 12px;
}

.filter-button {
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .quest-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quests-grid {
    grid-template-columns: 1fr;
  }
}



  transform: translateY(0);
}

.quest-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quest-list-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.quest-list-filters {
  display: flex;
  gap: 12px;
}

.filter-button {
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .quest-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quests-grid {
    grid-template-columns: 1fr;
  }
}




  transform: translateY(0);
}

.quest-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quest-list-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.quest-list-filters {
  display: flex;
  gap: 12px;
}

.filter-button {
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .quest-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .quests-grid {
    grid-template-columns: 1fr;
  }
}.leaderboard {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.leaderboard-container {
  width: 85%;
  max-width: 1000px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.leaderboard-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.leaderboard-filters {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  position: relative;
}

.leaderboard-filter-slider {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.leaderboard-filter {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.leaderboard-filter:hover {
  color: var(--text-primary);
}

.leaderboard-filter.active {
  color: #3b82f6;
}

.leaderboard-user-rank {
  margin-bottom: 20px;
}

.user-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
}

.user-rank-badge svg {
  width: 20px;
  height: 20px;
}

.leaderboard-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table th:first-child {
  border-radius: 12px 0 0 0;
}

.leaderboard-table th:last-child {
  border-radius: 0 12px 0 0;
}

.leaderboard-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  animation: fadeInUp 0.5s ease-out backwards;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row-user {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.leaderboard-row-top {
  background: rgba(255, 215, 0, 0.05);
}

.leaderboard-table td {
  padding: 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.leaderboard-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.rank-number {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.leaderboard-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-username {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-address {
  font-size: 12px;
  color: var(--text-secondary);
}

.leaderboard-xp {
  font-weight: 600;
  color: var(--text-primary);
}

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

.leaderboard-empty {
  text-align: center;
  padding: 60px 20px !important;
  color: var(--text-secondary);
  font-size: 16px;
}

.leaderboard-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.leaderboard-see-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.leaderboard-see-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.leaderboard-see-more:active {
  transform: translateY(0);
}

.leaderboard-see-more svg {
  width: 16px;
  height: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .leaderboard-container {
    width: 95%;
    padding: 24px;
  }

  .leaderboard-title {
    font-size: 24px;
  }

  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-table {
    font-size: 12px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 12px 8px;
  }
}




  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.leaderboard-container {
  width: 85%;
  max-width: 1000px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.leaderboard-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.leaderboard-filters {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  position: relative;
}

.leaderboard-filter-slider {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.leaderboard-filter {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.leaderboard-filter:hover {
  color: var(--text-primary);
}

.leaderboard-filter.active {
  color: #3b82f6;
}

.leaderboard-user-rank {
  margin-bottom: 20px;
}

.user-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
}

.user-rank-badge svg {
  width: 20px;
  height: 20px;
}

.leaderboard-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table th:first-child {
  border-radius: 12px 0 0 0;
}

.leaderboard-table th:last-child {
  border-radius: 0 12px 0 0;
}

.leaderboard-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  animation: fadeInUp 0.5s ease-out backwards;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row-user {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

.leaderboard-row-top {
  background: rgba(255, 215, 0, 0.05);
}

.leaderboard-table td {
  padding: 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.leaderboard-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.rank-number {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.leaderboard-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-username {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-address {
  font-size: 12px;
  color: var(--text-secondary);
}

.leaderboard-xp {
  font-weight: 600;
  color: var(--text-primary);
}

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

.leaderboard-empty {
  text-align: center;
  padding: 60px 20px !important;
  color: var(--text-secondary);
  font-size: 16px;
}

.leaderboard-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.leaderboard-see-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.leaderboard-see-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.leaderboard-see-more:active {
  transform: translateY(0);
}

.leaderboard-see-more svg {
  width: 16px;
  height: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .leaderboard-container {
    width: 95%;
    padding: 24px;
  }

  .leaderboard-title {
    font-size: 24px;
  }

  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-table {
    font-size: 12px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 12px 8px;
  }
}.user-profile {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  min-height: calc(100vh - 200px);
}

.user-profile h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-address {
  padding: 16px 20px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
}

.profile-address.animate-in {
  animation: scrollFadeIn 0.6s ease-out forwards;
}

.profile-address strong {
  color: var(--accent-blue);
  margin-right: 8px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Intuition Chain Identity Section */
.profile-intuition-section {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  margin-top: 8px;
}

.profile-intuition-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 24px 0;
}

.profile-intuition-section h3 svg {
  color: var(--accent-blue);
}

.profile-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.profile-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile-intuition-table-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-intuition-table-section:last-child {
  margin-bottom: 0;
}

.profile-intuition-table-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-intuition-table-title svg {
  color: var(--accent-blue);
}

.profile-intuition-table-wrapper {
  overflow-x: auto;
}

.profile-intuition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.profile-intuition-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.profile-intuition-table td {
  padding: 14px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.profile-intuition-table tbody tr {
  transition: background 0.2s ease;
}

.profile-intuition-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.profile-intuition-table tbody tr:last-child td {
  border-bottom: none;
}

.profile-intuition-cell-with-emoji {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-intuition-emoji {
  font-size: 18px;
  line-height: 1;
}

.profile-intuition-label-text {
  font-weight: 500;
}

.profile-intuition-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.profile-intuition-type-person {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.profile-intuition-type-thing {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.profile-intuition-type-organization {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.profile-intuition-type-account {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.profile-intuition-type-unknown {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.profile-intuition-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-secondary);
}

.profile-intuition-triple-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.profile-intuition-predicate {
  color: var(--accent-blue);
  font-style: italic;
}

.profile-intuition-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.profile-intuition-empty svg {
  opacity: 0.3;
  margin-bottom: 12px;
}

.profile-intuition-empty p {
  margin: 0;
  font-size: 14px;
}

/* Claims table specific */
.profile-intuition-claims-table th:nth-child(1),
.profile-intuition-claims-table td:nth-child(1) {
  max-width: 180px;
}

.profile-intuition-claims-table th:nth-child(2),
.profile-intuition-claims-table td:nth-child(2) {
  max-width: 140px;
}

.profile-intuition-claims-table th:nth-child(3),
.profile-intuition-claims-table td:nth-child(3) {
  max-width: 180px;
}

/* Social Connections */
.profile-social-connections {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.profile-social-connections h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.social-connections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.social-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.social-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.social-status {
  font-size: 13px;
}

.social-status.connected {
  color: #10b981;
}

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

.connect-button {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.connect-button:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Profile Claims */
.profile-claims {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.profile-claims h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.profile-claims ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-claims li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .user-profile {
    padding: 16px;
  }

  .profile-intuition-section {
    padding: 24px 16px;
  }

  .profile-intuition-table {
    font-size: 12px;
  }

  .profile-intuition-table th,
  .profile-intuition-table td {
    padding: 10px 12px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
}



.discover-earn-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.welcome-text {
  font-size: 56px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin: 0;
  padding: 0;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
}

.slideshow-glass {
  width: 85%;
  max-width: 1000px;
  min-height: 500px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.slideshow-glass:hover {
  background: rgba(37, 43, 61, 0.25);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5),
              0 7px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.slideshow-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.slideshow-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.slideshow-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.slideshow-image-placeholder {
  font-size: 64px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.slideshow-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  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);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slideshow-badge-hot {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.slideshow-badge-trending {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent-blue);
}

.slideshow-badge svg {
  width: 14px;
  height: 14px;
}

.slideshow-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.slideshow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.slideshow-title {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slideshow-quest-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.slideshow-quest-count svg {
  width: 13px;
  height: 13px;
}

.slideshow-description {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.slideshow-start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  margin-top: auto;
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
}

.slideshow-start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.slideshow-start-button:active {
  transform: translateY(0);
}

.slideshow-start-button svg {
  width: 18px;
  height: 18px;
}

.slideshow-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 6px 14px;
  align-self: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slideshow-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slideshow-dot.active {
  background: var(--text-primary);
  width: 24px;
  border-radius: 5px;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slideshow-nav:hover {
  background: rgba(37, 43, 61, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.slideshow-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.slideshow-prev {
  left: 16px;
}

.slideshow-next {
  right: 16px;
}

@media (max-width: 768px) {
  .slideshow-container {
    padding: 28px 16px;
  }

  .slideshow-glass {
    width: 90%;
    min-height: 450px;
    padding: 24px;
  }

  .slideshow-image {
    height: 200px;
    min-height: 200px;
  }

  .slideshow-title {
    font-size: 24px;
  }

  .slideshow-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .slideshow-start-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .slideshow-nav {
    width: 40px;
    height: 40px;
  }

  .slideshow-nav svg {
    width: 20px;
    height: 20px;
  }

  .slideshow-prev {
    left: 12px;
  }

  .slideshow-next {
    right: 12px;
  }

  .slideshow-indicators {
    margin-top: 12px;
    padding: 6px 12px;
  }
}

/* Spaces Section */
.spaces-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
}

.spaces-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spaces-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex-shrink: 0;
}

.spaces-header .spaces-filters {
  flex: 1;
}

.spaces-header .create-space-button {
  margin-left: auto;
  flex-shrink: 0;
}

.spaces-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.spaces-filter-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spaces-filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.spaces-filter-button.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.spaces-filter-button svg {
  width: 16px;
  height: 16px;
}

.create-space-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.create-space-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.create-space-button:active {
  transform: translateY(0);
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.space-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.space-card:hover {
  background: rgba(37, 43, 61, 0.25);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.space-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.space-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.space-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.space-verified-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.space-verified-badge svg {
  width: 14px;
  height: 14px;
}

.space-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.space-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.space-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.space-followers {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.space-quests {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.space-quests.active {
  color: #10b981;
  font-weight: 600;
}

.space-token {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.space-token-with-symbol {
  display: flex;
  align-items: center;
  gap: 6px;
}

.space-token-symbol {
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
}

.space-token-upcoming {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.space-token-upcoming svg {
  width: 14px;
  height: 14px;
}

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

.spaces-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 768px) {
  .discover-earn-container {
    padding: 28px 16px;
    gap: 32px;
  }

  .spaces-header {
    flex-direction: column;
    align-items: stretch;
  }

  .spaces-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .create-space-button {
    width: 100%;
  }

  .spaces-grid {
    grid-template-columns: 1fr;
  }
}


.signup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.signup-modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.signup-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.signup-modal-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.signup-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.signup-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.signup-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.signup-option-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.signup-option-button:hover:not(:disabled) {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.signup-option-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-option-button svg {
  flex-shrink: 0;
}

.signup-modal-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.signup-modal-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

.signup-modal-link:hover {
  color: var(--accent-purple);
}

.signup-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.signup-email-input {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.signup-email-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.signup-email-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-email-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-back-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
  margin-top: 8px;
}

.signup-back-button:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.onboarding-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 40px 20px;
}

.onboarding-content {
  max-width: 600px;
  width: 100%;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.onboarding-header {
  text-align: center;
  margin-bottom: 32px;
}

.onboarding-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.onboarding-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.onboarding-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-step h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.onboarding-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.onboarding-input {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s;
}

.onboarding-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.connection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.connected-item {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-connect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.onboarding-connect-button:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.onboarding-connect-button svg {
  flex-shrink: 0;
}

.onboarding-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.onboarding-button-primary {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.onboarding-button-secondary {
  flex: 1;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-button-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .onboarding-container {
    padding: 20px 16px;
  }

  .onboarding-content {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .onboarding-header h1 {
    font-size: 24px;
  }

  .onboarding-header p {
    font-size: 14px;
  }

  .onboarding-step h2 {
    font-size: 20px;
  }

  .onboarding-actions {
    flex-direction: column;
    gap: 12px;
  }

  .onboarding-button-primary,
  .onboarding-button-secondary {
    width: 100%;
    padding: 12px 20px;
  }
}
.search-form {
  width: 100%;
  max-width: 500px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px 12px 44px;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input:focus {
  background: rgba(37, 43, 61, 0.25);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

/* Search Container Wrapper */
.search-container-wrapper {
  position: relative;
  width: 100%;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(26, 31, 53, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

.search-results-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item-wrapper:last-child {
  border-bottom: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.search-result-item:hover {
  background: rgba(37, 43, 61, 0.4);
}

.search-result-admin-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-right: 12px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #818cf8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-result-admin-button:hover {
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

.search-result-admin-button svg {
  flex-shrink: 0;
}

.search-result-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-slug {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .search-form {
    max-width: 100%;
  }

  .search-input {
    font-size: 14px;
  }

  .search-results-dropdown {
    max-height: 300px;
  }
}
.community-quest-card {
  width: 100%;
  height: 160px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.community-quest-card:hover,
.community-quest-card.hovered {
  background: rgba(37, 43, 61, 0.25);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5),
              0 7px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.community-quest-card.completed {
  background: rgba(107, 114, 128, 0.3);
  opacity: 0.9;
}

.quest-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  justify-content: flex-start;
}

.quest-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quest-difficulty {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.difficulty-beginner {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.difficulty-intermediate {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.difficulty-advanced {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.quest-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quest-time svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.quest-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  margin-top: auto;
  margin-bottom: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: visible;
  padding-bottom: 0;
  visibility: visible;
  opacity: 1;
}

.quest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-creator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 31, 53, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.creator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.creator-avatar-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.creator-address {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.quest-rewards {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}

.xp-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.participant-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.participant-count svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .quest-content {
    padding: 16px;
  }

  .quest-title {
    font-size: 18px;
  }

  .quest-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quest-rewards {
    width: 100%;
    justify-content: space-between;
  }
}

/* Completed IQ Badge Checkmark */
.xp-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.xp-badge.completed svg {
  color: #10b981;
}.create-space-section {
  position: relative;
  width: 85%;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px 30px;
  height: 250px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 24px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.create-space-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.create-space-background-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.create-space-foreground-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.create-space-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px 0;
  line-height: 1.3;
  position: relative;
  z-index: 3;
}

.create-space-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
  width: 100%;
  position: relative;
  z-index: 3;
}

.create-space-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 250px;
  width: 250px;
}

.step-icon-wrapper {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 12px 12px 16px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.step-icon-image {
  width: auto;
  height: 50px;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
  transform: translate(0, 0px);
}

.step-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  border-radius: 12px 12px 0 0;
  pointer-events: none;
  z-index: 1;
}

.step-icon-lock {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
}

.step-icon-build {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.step-icon-payment {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 10px;
}

.step-icon-overlay {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.step-icon-overlay svg {
  width: 8px;
  height: 8px;
}

.step-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.crypto-logos {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.eth-logo {
  z-index: 2;
  position: relative;
}

.eth-logo svg {
  width: 20px;
  height: 20px;
}

.sol-logo {
  margin-left: -10px;
  z-index: 1;
  position: relative;
}

.sol-logo svg {
  width: 20px;
  height: 20px;
}

.step-title {
  font-size: 13px;
  font-weight: 400;
  color: white;
  text-align: center;
  margin: 0;
  margin-top: 8px;
  line-height: 1.4;
  position: relative;
  z-index: 4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-arrow {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.step-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.create-space-button {
  display: block;
  margin: 0 auto;
  padding: 10px 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 3;
}

.create-space-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.create-space-button:active {
  transform: translateY(0);
}

.community-avatars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
  z-index: 1;
}

.community-avatar {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.5;
}

.avatar-pixel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(3px);
  }
}

@media (max-width: 1024px) {
  .create-space-steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .create-space-step {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .create-space-section {
    width: 90%;
    padding: 40px 24px;
    margin: 40px auto;
  }

  .create-space-heading {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .step-icon-wrapper {
    width: 100px;
    height: 100px;
  }

  .step-icon-wrapper svg {
    width: 40px;
    height: 40px;
  }

  .step-title {
    font-size: 16px;
  }

  .create-space-button {
    padding: 16px 36px;
    font-size: 16px;
  }

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

  .avatar-pixel {
    font-size: 16px;
  }
}.community-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
  gap: 40px;
}

.community-banner {
  width: 85%;
  max-width: 1000px;
  height: 150px;
  background: rgba(26, 31, 53, 0.2); /* 80% transparency (20% opacity) - same as statistics boxes */
  backdrop-filter: blur(36px); /* Increased blur - same as statistics boxes */
  -webkit-backdrop-filter: blur(36px); /* Safari support */
  border: none; /* No borderlines */
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4), /* Outer shadow for depth */
              0 4px 14px rgba(0, 0, 0, 0.3), /* Inner shadow for subtle depth */
              inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Subtle inner highlight */
  transition: all 0.2s;
  overflow: hidden;
}

.community-banner:hover {
  background: rgba(37, 43, 61, 0.25); /* Slightly more visible on hover, maintaining 80% transparency */
  backdrop-filter: blur(45px); /* Even more blur on hover */
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.5), /* Deeper shadow on hover */
              0 7px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15); /* Slightly brighter highlight */
  transform: translateY(-3px); /* Increased lift effect on hover */
}

.community-banner-text {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  text-align: left;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 24px;
  z-index: 1;
}

.community-banner-logo {
  height: 100%;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transform: scale(4);
  transform-origin: right center;
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) scale(4);
  z-index: 0;
}

.community-quests-title {
  width: 85%;
  max-width: 1400px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 60px 0 -20px 0;
  padding: 0 24px;
  text-align: left;
}

.community-quests-grid-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0;
}

.community-quests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  width: 100%;
}

.quest-card-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards that should animate start hidden */
.quest-card-wrapper:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)) {
  opacity: 0;
  transform: translateY(40px);
}

/* First 6 cards appear immediately without animation - already visible */
.quest-card-wrapper:first-child,
.quest-card-wrapper:nth-child(2),
.quest-card-wrapper:nth-child(3),
.quest-card-wrapper:nth-child(4),
.quest-card-wrapper:nth-child(5),
.quest-card-wrapper:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
}

.quest-card-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: ensure quests are visible after animation delay */
.community-quests-grid-container:has(.quest-card-wrapper:not(.animate-in)) .quest-card-wrapper {
  animation: fadeInFallback 0.8s ease-out 2s forwards;
}

@keyframes fadeInFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.community-see-more-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.community-see-more-button:hover {
  background: rgba(37, 43, 61, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.community-see-more-button:active {
  transform: translateY(0);
}

.community-see-more-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.community-see-more-button:hover svg {
  transform: translateX(4px);
}

.community-quests-slideshow {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-quests-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  flex: 1;
  padding: 20px 0;
}

.community-quests-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.community-quest-card-wrapper {
  flex: 0 0 auto;
  width: 400px;
  height: 250px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.community-quest-card-wrapper.active {
  transform: scale(1.05);
}

/* Community quest card wrapper styles are now handled by CommunityQuestCard component */

.community-nav {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.community-nav:hover {
  background: rgba(37, 43, 61, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.community-nav:active {
  transform: scale(0.95);
}

.community-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.community-quests-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.community-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.community-indicator-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.community-indicator-dot.active {
  background: var(--text-primary);
  width: 24px;
  border-radius: 5px;
}

.community-quests-loading {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  overflow-x: auto;
}

.community-quests-loading .quest-card-skeleton {
  flex: 0 0 auto;
  width: 400px;
  height: 200px;
}

@media (max-width: 768px) {
  .community-container {
    padding: 28px 16px;
    gap: 32px;
  }

  .community-banner {
    width: 90%;
    height: auto;
    min-height: 150px;
    padding: 32px 24px;
  }

  .community-banner-text {
    font-size: 22px;
  }

  .community-quest-card-wrapper {
    width: 320px;
  }

  .community-nav {
    width: 40px;
    height: 40px;
  }

  .community-nav svg {
    width: 20px;
    height: 20px;
  }

  .community-quests-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .community-quests-title {
    width: 90%;
    font-size: 24px;
    margin: 40px 0 -20px 0;
    padding: 0 16px;
  }
}

@media (max-width: 1024px) {
  .community-quests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}.all-quests-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  gap: 32px;
}

.all-quests-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.all-quests-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.all-quests-back-button:hover {
  background: rgba(37, 43, 61, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.all-quests-back-button:active {
  transform: translateY(0);
}

.all-quests-back-button svg {
  width: 20px;
  height: 20px;
}

.all-quests-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.all-quests-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.all-quests-filter-button {
  padding: 10px 20px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.all-quests-filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.all-quests-filter-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.all-quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.all-quests-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .all-quests-container {
    padding: 16px;
    gap: 24px;
  }

  .all-quests-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .all-quests-title {
    font-size: 24px;
  }

  .all-quests-grid {
    grid-template-columns: 1fr;
  }

  .all-quests-loading {
    grid-template-columns: 1fr;
  }
}



.rewards-container {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 200px);
  overflow-x: hidden;
  max-width: 100vw;
}

.rewards-glass-container {
  width: 85%;
  max-width: 1200px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100%;
}

.rewards-background-svg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  width: 50%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.rewards-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  max-width: 100%;
}

.rewards-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow-x: hidden;
  max-width: 100%;
}

.rewards-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rewards-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.rewards-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rewards-currency {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

.rewards-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.rewards-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(80px, auto);
}

.rewards-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  min-height: 80px;
}

.rewards-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
              0 4px 12px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.rewards-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

.staking-icon {
  background: rgba(0, 0, 0, 0.4);
}

.campaigns-icon {
  background: rgba(255, 140, 0, 0.2);
  color: #ff8c00;
}

.rewards-card-icon svg {
  width: 24px;
  height: 24px;
}

.staking-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rewards-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rewards-card-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.rewards-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}


@media (max-width: 768px) {
  .rewards-container {
    padding: 20px 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .rewards-glass-container {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
    overflow-x: hidden;
  }

  .rewards-background-svg {
    width: 40%;
    opacity: 0.3;
    right: -10%;
  }

  .rewards-content {
    gap: 24px;
  }

  .rewards-left {
    gap: 24px;
  }

  .rewards-header {
    gap: 12px;
  }

  .rewards-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .rewards-total {
    gap: 2px;
  }

  .rewards-currency {
    font-size: 24px;
  }

  .rewards-amount {
    font-size: 32px;
  }

  .rewards-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rewards-card {
    padding: 14px 16px;
    min-height: 70px;
  }

  .rewards-card-icon {
    width: 40px;
    height: 40px;
  }

  .rewards-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .rewards-card-label {
    font-size: 13px;
  }

  .rewards-card-value {
    font-size: 20px;
  }

  .rewards-graphic {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .rewards-container {
    padding: 16px 12px;
  }

  .rewards-glass-container {
    padding: 20px 16px;
  }

  .rewards-title {
    font-size: 18px;
  }

  .rewards-currency {
    font-size: 20px;
  }

  .rewards-amount {
    font-size: 28px;
  }

  .rewards-card {
    padding: 12px 14px;
    min-height: 65px;
  }

  .rewards-card-icon {
    width: 36px;
    height: 36px;
  }

  .rewards-card-value {
    font-size: 18px;
  }
}

/* Quest Detail - Exact Galxe Match with Glass Morphism */
.quest-detail-container.galxe-exact {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Top Header - Glass Morphism */
.quest-detail-top-header {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
  overflow-x: hidden;
  box-sizing: border-box;
}

.quest-detail-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quest-detail-creator-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quest-detail-creator-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quest-detail-creator-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.quest-detail-creator-info {
  display: flex;
  flex-direction: column;
}

.quest-detail-creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quest-detail-creator-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.quest-detail-verified-badge {
  color: #3b82f6;
  flex-shrink: 0;
}

.quest-detail-follow-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quest-detail-follow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.quest-detail-follow-btn span {
  font-size: 16px;
  font-weight: 600;
}

.quest-detail-follower-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quest-detail-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 101;
}

.quest-detail-header-icon-wrapper {
  position: relative;
  z-index: 101;
}

.quest-detail-header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 102;
}

.quest-detail-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.quest-detail-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quest-detail-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.quest-detail-dropdown-wrapper {
  position: relative;
  z-index: 101;
}

.quest-detail-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  overflow: hidden;
}

.quest-detail-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.quest-detail-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Quest Title Section - Glass Morphism */
.quest-detail-title-section {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 24px 24px 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.quest-detail-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.quest-detail-metadata-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quest-detail-participants-avatars {
  display: flex;
  align-items: center;
  gap: -8px;
}

.quest-detail-participant-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-left: -8px;
}

.quest-detail-participant-avatar:first-child {
  margin-left: 0;
}

.quest-detail-participant-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quest-detail-date {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Reward Section - Glass Morphism */
.quest-detail-reward-section {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  overflow-x: hidden;
  -webkit-backdrop-filter: blur(10px);
}

.quest-detail-reward-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Tasks Container */
.quest-detail-tasks-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Task Item - Exact Match with Glass Morphism */
.quest-detail-task-item-exact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s;
  cursor: default;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quest-detail-task-item-exact.clickable {
  cursor: pointer;
}

.quest-detail-task-item-exact.clickable:hover {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.quest-detail-task-item-exact.completed {
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Play Icon (Triangle) */
.quest-detail-task-play-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.quest-detail-task-item-exact.completed .quest-detail-task-play-icon {
  color: #10b981;
}

/* Task Content (Platform Icon + Text) */
.quest-detail-task-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.quest-detail-task-platform-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.quest-detail-task-platform-icon svg {
  width: 20px;
  height: 20px;
}

.quest-detail-task-item-exact.completed .quest-detail-task-platform-icon {
  color: #10b981;
}

.quest-detail-task-text-exact {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.quest-detail-task-link {
  color: #3b82f6;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.quest-detail-task-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.quest-detail-task-item-exact.completed .quest-detail-task-link {
  color: #10b981;
}

.quest-detail-task-item-exact.completed .quest-detail-task-link:hover {
  color: #34d399;
}

.quest-detail-task-item-exact.completed .quest-detail-task-text-exact {
  color: #10b981;
  font-weight: 600;
}

/* Refresh Icon */
.quest-detail-task-refresh-exact {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  position: relative;
}

.quest-detail-task-refresh-exact:hover:not(.disabled):not(.verified) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.quest-detail-task-refresh-exact.verifying {
  animation: rotate 1s linear infinite;
  cursor: wait;
  color: #3b82f6;
}

.quest-detail-task-refresh-exact.verified {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  cursor: default;
}

.quest-detail-task-refresh-exact.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quest-detail-task-refresh-exact .cooldown-timer {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Claim Button Container - Below Tasks, Right Aligned */
.quest-detail-claim-button-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  justify-content: flex-end;
  overflow-x: hidden;
}

.quest-detail-claim-button-inline {
  padding: 12px 32px;
  background: #1a1f35;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quest-detail-claim-button-inline:hover:not(.disabled) {
  background: #252b3d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quest-detail-claim-button-inline.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(26, 31, 53, 0.5);
  box-shadow: none;
}

.quest-detail-claim-button-inline.disabled:hover {
  transform: none;
  background: rgba(26, 31, 53, 0.5);
}

.claim-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Social Popup (keep existing styles) */
.social-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.social-popup-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.social-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.social-popup-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.social-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.social-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.social-popup-content {
  margin-bottom: 24px;
}

.social-popup-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.social-popup-actions {
  display: flex;
  gap: 12px;
}

.social-popup-button {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.social-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.social-popup-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-popup-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .quest-detail-container.galxe-exact {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 0;
  }

  .quest-detail-main-content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  .quest-detail-top-header {
    padding: 12px 16px;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .quest-detail-header-left {
    flex-wrap: wrap;
    gap: 8px;
  }

  .quest-detail-header-right {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .quest-detail-creator-logo {
    width: 32px;
    height: 32px;
  }

  .quest-detail-creator-name {
    font-size: 14px;
  }

  .quest-detail-follow-btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  .quest-detail-header-icon-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .quest-detail-title-section {
    padding: 16px;
  }

  .quest-detail-page-title {
    font-size: 20px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .quest-detail-reward-section {
    padding: 0 16px 16px;
  }

  .quest-detail-reward-text {
    font-size: 16px;
  }

  .quest-detail-tasks-container {
    padding: 0 16px 80px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .quest-detail-task-item {
    padding: 16px;
    margin-bottom: 12px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .quest-detail-task-title {
    font-size: 16px;
    line-height: 1.4;
  }

  .quest-detail-task-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
  }

  .quest-detail-task-link {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .quest-detail-task-text-exact {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: clip;
  }

  .quest-detail-task-item-exact {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .quest-detail-task-content {
    flex: 1 1 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .quest-detail-claim-button-container {
    padding: 16px;
    max-width: 100%;
    justify-content: center;
  }

  .quest-detail-task-platform-icon {
    flex-shrink: 0;
  }

  .quest-detail-task-play-icon {
    flex-shrink: 0;
  }

  .quest-detail-claim-button-inline {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0 0;
    padding: 14px 20px;
    font-size: 15px;
  }

  .quest-detail-claim-section-fixed {
    padding: 12px 16px;
  }

  .quest-detail-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .quest-detail-tooltip {
    right: 0;
    left: auto;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .quest-detail-top-header {
    padding: 10px 12px;
  }

  .quest-detail-page-title {
    font-size: 18px;
  }

  .quest-detail-task-item,
  .quest-detail-task-item-exact {
    padding: 12px;
    gap: 10px;
  }

  .quest-detail-creator-name {
    font-size: 13px;
  }

  .quest-detail-follow-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .quest-detail-task-text-exact {
    font-size: 13px;
  }

  .quest-detail-title-section {
    padding: 12px;
  }

  .quest-detail-reward-section {
    padding: 0 12px 12px;
  }

  .quest-detail-tasks-container {
    padding: 0 12px 60px;
  }

  .quest-detail-claim-button-container {
    padding: 12px;
  }
}
.raids-container {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 200px);
  max-width: 1400px;
  margin: 0 auto;
}

.raids-glass-container {
  width: 941.333px;
  height: 320px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: none;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.raids-background-svg {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  width: 50%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.raids-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.raids-text {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  text-align: left;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  z-index: 1;
  max-width: 60%;
}

@media (max-width: 1000px) {
  .raids-glass-container {
    width: 95%;
    max-width: 941.333px;
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .raids-container {
    padding: 20px;
    gap: 40px;
  }

  .raids-glass-container {
    width: 95%;
    padding: 24px;
    height: auto;
    min-height: 300px;
  }

  .raids-text {
    font-size: 22px;
    max-width: 100%;
  }

  .raids-background-svg {
    right: -50px;
    width: 40%;
  }
}

/* Raids Grid Section */
.raids-grid-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Bar */
.raids-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 8px;
}

.raids-new-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.raids-new-button:hover {
  background: rgba(37, 43, 61, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.raids-new-button svg {
  width: 16px;
  height: 16px;
}

.raids-view-toggles {
  display: flex;
  gap: 8px;
  align-items: center;
}

.raids-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.raids-view-toggle:hover {
  background: rgba(37, 43, 61, 0.5);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.raids-view-toggle.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.raids-view-toggle svg {
  width: 20px;
  height: 20px;
}

.raids-filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.raids-filter-button:hover {
  background: rgba(37, 43, 61, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.raids-filter-button svg {
  width: 20px;
  height: 20px;
}

/* Raids Cards Grid */
.raids-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}


.raids-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 3px solid #10b981;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.raids-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.raids-card.highlighted {
  border: 3px solid #10b981;
}

.raids-card-image-container {
  width: 100%;
  aspect-ratio: 941.333 / 358;
  position: relative;
  overflow: hidden;
  background: rgba(15, 20, 35, 0.5);
}

.raids-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.raids-card-top-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}

.raids-card-twitter-button,
.raids-card-discord-button {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.raids-card-twitter-button:hover,
.raids-card-discord-button:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

.raids-card-twitter-button svg,
.raids-card-discord-button svg {
  width: 16px;
  height: 16px;
}

.raids-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raids-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.raids-card-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: center;
}

.raids-card-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100%;
}

.raids-card-detail-item.currency {
  gap: 4px;
}

.raids-card-detail-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.raids-currency-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.raids-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.raids-card-enter-button {
  flex: 1;
  padding: 10px;
  background: rgba(26, 31, 53, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.raids-card-enter-button:hover {
  background: rgba(37, 43, 61, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.raids-card-hide-button {
  width: 40px;
  height: 40px;
  background: rgba(26, 31, 53, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.raids-card-hide-button:hover {
  background: rgba(37, 43, 61, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.raids-card-hide-button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1400px) {
  .raids-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .raids-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .raids-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .raids-grid-section {
    gap: 20px;
  }

  .raids-nav-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .raids-cards-grid {
    grid-template-columns: 1fr;
  }

  .raids-card-image-container {
    height: 300px;
  }
}

/* Raids Table View */
.raids-table-container {
  width: 100%;
  overflow-x: auto;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 3px solid #10b981;
  border-radius: 16px;
  padding: 0;
}

.raids-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.raids-table thead {
  background: rgba(0, 0, 0, 0.3);
}

.raids-table th {
  padding: 16px 12px;
  text-align: left;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.raids-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.raids-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.raids-table tbody tr.highlighted {
  background: rgba(16, 185, 129, 0.1);
}

.raids-table td {
  padding: 16px 12px;
  color: var(--text-primary);
  font-size: 13px;
  vertical-align: middle;
}

.raids-table-enter-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.raids-table-enter-button {
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.raids-table-enter-button:hover {
  background: rgba(37, 43, 61, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.raids-table-link-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.raids-table-link-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.raids-table-link-button svg {
  width: 16px;
  height: 16px;
}

.raids-table-name-cell {
  min-width: 200px;
}

.raids-table-name-link {
  background: none;
  border: none;
  padding: 0;
  color: #10b981;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.raids-table-name-link:hover {
  color: #34d399;
}

.raids-table-project-cell,
.raids-table-community-cell,
.raids-table-spots-cell,
.raids-table-end-cell,
.raids-table-rewards-cell {
  white-space: nowrap;
}

.raids-table-tasks-cell {
  width: 80px;
}

.raids-table-tasks-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.raids-table-tasks-icons svg {
  width: 16px;
  height: 16px;
}

.raids-table-menu-cell {
  width: 40px;
  text-align: center;
}

.raids-table-menu-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 0 auto;
}

.raids-table-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.raids-table-menu-button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1400px) {
  .raids-table {
    font-size: 12px;
  }
  
  .raids-table th,
  .raids-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 768px) {
  .raids-table-container {
    overflow-x: scroll;
  }
  
  .raids-table {
    min-width: 1200px;
  }
}

/* Filter Sidebar */
.raids-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.raids-filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: rgba(26, 31, 53, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-left: 3px solid #10b981;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
  overflow-y: auto;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.raids-filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.raids-filter-sidebar-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.raids-filter-sidebar-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.raids-filter-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.raids-filter-sidebar-close svg {
  width: 20px;
  height: 20px;
}

.raids-filter-sidebar-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

/* Search Bar */
.raids-filter-search {
  width: 100%;
}

.raids-filter-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.raids-filter-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

.raids-filter-search-input {
  width: 100%;
  padding: 12px 12px 12px 36px;
  background: rgba(26, 31, 53, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.raids-filter-search-input::placeholder {
  color: var(--text-secondary);
}

.raids-filter-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(37, 43, 61, 0.8);
}

/* Filter Sections */
.raids-filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.raids-filter-section-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.raids-filter-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raids-filter-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
  position: relative;
}

.raids-filter-radio:hover {
  background: rgba(255, 255, 255, 0.05);
}

.raids-filter-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #10b981;
}

.raids-filter-radio-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.raids-filter-check {
  position: absolute;
  right: 12px;
  color: #10b981;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.raids-filter-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.raids-filter-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.raids-filter-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #10b981;
}

.raids-filter-toggle-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .raids-filter-sidebar {
    width: 100%;
    max-width: 100vw;
  }
}

/* Empty State */
.raids-empty-state {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.raids-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  margin-bottom: 24px;
  opacity: 0.8;
}

.raids-empty-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.raids-empty-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  max-width: 400px;
}

.raids-empty-create-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.raids-empty-create-button:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.raids-empty-create-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .raids-empty-state {
    padding: 60px 24px;
    min-height: 300px;
  }

  .raids-empty-title {
    font-size: 20px;
  }

  .raids-empty-description {
    font-size: 14px;
  }
}

.raid-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raid-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.raid-detail-panel {
  position: relative;
  width: min(1100px, 95%);
  max-height: 90vh;
  background: linear-gradient(135deg, #0a0d12 0%, #050608 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 0 40px 40px;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.raid-detail-close {
  position: sticky;
  top: 20px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.raid-detail-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.raid-detail-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.raid-detail-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.raid-detail-logos {
  position: absolute;
  bottom: -34px;
  left: 32px;
  display: flex;
  gap: 12px;
}

.raid-detail-logo-card {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.raid-detail-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.raid-detail-tags {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 10px;
}

.raid-detail-tags span {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.raid-detail-tags span:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.raid-detail-header {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}

.raid-detail-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.raid-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.raid-detail-chip {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.raid-detail-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.raid-detail-actions {
  display: flex;
  gap: 12px;
}

.raid-detail-action-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.raid-detail-action-button.highlight {
  border-color: rgba(255, 0, 122, 0.6);
  background: rgba(255, 0, 122, 0.2);
  box-shadow: 0 4px 16px rgba(255, 0, 122, 0.3);
}

.raid-detail-action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.raid-detail-action-button.highlight:hover {
  background: rgba(255, 0, 122, 0.3);
  box-shadow: 0 6px 20px rgba(255, 0, 122, 0.4);
}

.raid-detail-body {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.raid-detail-winners {
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.raid-detail-winners h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.raid-detail-winners-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raid-detail-winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-detail-winner-rank {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 14px;
  min-width: 32px;
}

.raid-detail-winner-address {
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  flex: 1;
}

.raid-detail-winner-badge {
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.raid-detail-pick-winners {
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.raid-detail-pick-winners-button {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.raid-detail-pick-winners-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.raid-detail-pick-winners-button:active {
  transform: translateY(0);
}

.raid-detail-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.raid-detail-description p {
  margin: 0;
}

.raid-detail-requirements {
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  padding-left: 20px;
  margin-top: 8px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

.raid-detail-requirements h4 {
  margin: 0 0 12px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.raid-detail-requirements ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.raid-detail-requirements li {
  margin-bottom: 8px;
}

.raid-detail-tasks {
  background: rgba(17, 17, 26, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.raid-detail-tasks-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.raid-detail-tasks-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.raid-detail-wallet-input {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
}

.raid-detail-wallet-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
}

.raid-detail-wallet-input button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
}

.raid-detail-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raid-detail-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.raid-detail-task:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.raid-detail-task.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.raid-detail-task.pending {
  border-color: rgba(234, 179, 8, 0.4);
}

.raid-detail-task-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.raid-detail-task:hover .raid-detail-task-icon {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.raid-detail-task-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  min-width: 0;
}

.raid-detail-task-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
}

.raid-detail-task-content p:has(.raid-detail-task-link:not(:only-child)) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.raid-detail-task-link {
  color: var(--accent-blue, #3b82f6);
  text-decoration: none;
  font-size: inherit;
  opacity: 0.9;
  transition: opacity 0.2s;
  word-break: break-all;
  display: inline;
}

.raid-detail-task-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.raid-detail-task-link-inline {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline;
}

.raid-detail-task-link-inline:hover {
  color: var(--accent-blue, #3b82f6);
  text-decoration: underline;
}

.raid-detail-task-wallet-address {
  color: var(--accent-blue, #3b82f6);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  font-weight: 500;
}

.raid-detail-task-content span {
  color: var(--text-secondary);
  font-size: 12px;
}

.raid-detail-task.verified {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.raid-detail-task-verify {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  position: relative;
}

.raid-detail-task-verify:hover:not(.disabled):not(.verified) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.raid-detail-task-verify.verifying {
  animation: rotate 1s linear infinite;
  cursor: wait;
}

.raid-detail-task-verify.verifying svg {
  color: var(--accent-blue, #3b82f6);
}

.raid-detail-task-verify.verified {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  cursor: default;
}

.raid-detail-task-verify.verified svg {
  color: #10b981;
}

.raid-detail-task-verify.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

.raid-detail-task-cooldown {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.raid-detail-task-empty {
  text-align: center;
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-style: italic;
}

.raid-detail-edit-button {
  background: var(--accent-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.raid-detail-edit-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.raid-detail-edit-button:active {
  transform: translateY(0);
}

.raid-detail-enter-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.raid-detail-enter-button:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.raid-detail-enter-button:active {
  transform: translateY(0);
}

.raid-detail-enter-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.raid-detail-enter-button.entered {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.raid-detail-enter-button.entered:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.25) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.raid-detail-enter-button.entering {
  opacity: 0.8;
  cursor: wait;
}

.raid-detail-enter-shard-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.raid-detail-enter-shard-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  object-position: center;
}

.raid-detail-enter-shard-count {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .raid-detail-body {
    grid-template-columns: 1fr;
  }

  .raid-detail-tasks {
    order: -1;
  }
}

@media (max-width: 640px) {
  .raid-detail-panel {
    padding: 0 20px 24px;
  }

  .raid-detail-banner {
    height: 220px;
  }

  .raid-detail-logos {
    position: static;
    margin-top: 16px;
  }

  .raid-detail-header {
    margin-top: 24px;
  }

  .raid-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .raid-detail-actions {
    flex-wrap: wrap;
  }/* Space Builder Container */
.space-builder-container {
  width: 100%;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.space-builder-card {
  width: 100%;
  max-width: 700px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.space-builder-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px 0;
}

.space-builder-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.space-builder-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.space-builder-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-asterisk {
  color: #ef4444;
  font-weight: 600;
}

.space-builder-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Role Selection Buttons */
.space-builder-role-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.role-button {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.role-button:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.role-button.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text-primary);
  font-weight: 600;
}

.role-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0 0;
  line-height: 1.5;
}

/* Input Fields */
.space-builder-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.space-builder-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.space-builder-input:focus {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Textarea */
.textarea-wrapper {
  position: relative;
}

.space-builder-textarea {
  width: 100%;
  padding: 12px 16px;
  padding-bottom: 32px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.space-builder-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.space-builder-textarea:focus {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.character-count {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Logo Upload Area */
.logo-upload-area {
  width: 100%;
  min-height: 200px;
  padding: 40px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.logo-upload-area:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
  border-style: solid;
}

.upload-icon {
  color: var(--text-muted);
  opacity: 0.7;
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.logo-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  object-fit: contain;
}

.logo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.logo-remove:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

.logo-remove svg {
  width: 16px;
  height: 16px;
}

/* Action Buttons */
.space-builder-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.space-builder-cancel,
.space-builder-submit {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

.space-builder-cancel {
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.space-builder-cancel:hover:not(:disabled) {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.space-builder-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.space-builder-submit {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.space-builder-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.space-builder-submit:active:not(:disabled) {
  transform: translateY(0);
}

.space-builder-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(26, 31, 53, 0.3);
  color: var(--text-muted);
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .space-builder-container {
    padding: 20px 16px;
  }

  .space-builder-card {
    padding: 24px 20px;
  }

  .space-builder-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .space-builder-form {
    gap: 24px;
  }

  .space-builder-role-buttons {
    flex-direction: column;
  }

  .role-button {
    min-width: 100%;
  }

  .logo-upload-area {
    min-height: 150px;
    padding: 24px;
  }

  .space-builder-actions {
    flex-direction: column-reverse;
  }

  .space-builder-cancel,
  .space-builder-submit {
    width: 100%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .space-builder-container {
    padding: 20px 16px;
  }

  .space-builder-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .space-builder-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .space-builder-form {
    gap: 24px;
  }

  .space-builder-section {
    gap: 10px;
  }

  .space-builder-input,
  .space-builder-textarea {
    font-size: 14px;
    padding: 10px 14px;
  }

  .space-builder-actions {
    flex-direction: column;
    gap: 12px;
  }

  .space-builder-submit-button,
  .space-builder-back-button {
    width: 100%;
    padding: 12px 20px;
  }

  .space-builder-logo-preview {
    width: 80px;
    height: 80px;
  }
}

.space-detail-container {
  width: 100%;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.space-detail-card {
  width: 100%;
  max-width: 800px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.space-detail-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.space-detail-back:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.space-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.space-detail-logo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.space-detail-info {
  flex: 1;
}

.space-detail-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.space-detail-slug {
  font-size: 16px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  margin: 0;
}

.space-detail-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.space-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.space-detail-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.space-detail-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.space-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.space-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.space-detail-meta-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
}

.space-detail-meta-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.space-detail-link {
  font-size: 14px;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.space-detail-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.space-detail-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.space-detail-builder-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.space-detail-builder-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .space-detail-container {
    padding: 20px 16px;
  }

  .space-detail-card {
    padding: 24px 20px;
  }

  .space-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .space-detail-logo {
    width: 100px;
    height: 100px;
  }

  .space-detail-name {
    font-size: 24px;
  }

  .space-detail-meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .space-detail-meta-label {
    min-width: auto;
  }
}

.confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.confirmation-modal-content {
  background: rgba(26, 31, 53, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirmation-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.confirmation-modal-icon.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.confirmation-modal-icon.warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.confirmation-modal-icon.info {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.confirmation-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px;
}

.confirmation-modal-message {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

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

.confirmation-modal-button {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 120px;
}

.confirmation-modal-button-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-modal-button-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.confirmation-modal-button-confirm {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.confirmation-modal-button-confirm:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.confirmation-modal-button-confirm.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.confirmation-modal-button-confirm.danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
}

.confirmation-modal-button-confirm.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.confirmation-modal-button-confirm.warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.confirmation-modal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.builder-settings-container {
  width: 100%;
  padding: 32px;
  display: flex;
  justify-content: center;
}

.builder-settings-card {
  width: 100%;
  max-width: 800px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-settings-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 32px 0;
}

.builder-settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.builder-settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.builder-settings-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.required-asterisk {
  color: #ef4444;
}

.builder-settings-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-settings-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.builder-settings-radio:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.builder-settings-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.builder-settings-radio span {
  color: var(--text-primary);
  font-size: 14px;
}

.builder-settings-input,
.builder-settings-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.builder-settings-input:focus,
.builder-settings-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(37, 43, 61, 0.4);
}

.builder-settings-textarea {
  resize: vertical;
  min-height: 100px;
}

.builder-settings-char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.builder-settings-logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.builder-settings-logo-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.builder-settings-file-input {
  display: none;
}

.builder-settings-upload-button {
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.builder-settings-upload-button:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.builder-settings-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.builder-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.builder-settings-submit {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.builder-settings-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.builder-settings-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.builder-settings-delete-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-settings-delete-title {
  font-size: 18px;
  font-weight: 700;
  color: #ef4444;
  margin: 0 0 8px 0;
}

.builder-settings-delete-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.builder-settings-delete-button {
  padding: 12px 24px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.builder-settings-delete-button:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.builder-settings-delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .builder-settings-container {
    padding: 20px 16px;
  }

  .builder-settings-card {
    padding: 24px 20px;
  }

  .builder-settings-title {
    font-size: 24px;
  }
}

.create-quest-builder-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.create-quest-builder-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.create-quest-builder-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-quest-builder-back:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.create-quest-builder-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Progress Steps */
.create-quest-builder-steps {
  display: flex;
  gap: 8px;
  align-items: center;
}

.create-quest-builder-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26, 31, 53, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.create-quest-builder-step.active {
  background: rgba(26, 31, 53, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.create-quest-builder-step.completed {
  color: var(--text-muted);
}

.create-quest-builder-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
}

.create-quest-builder-step.active .create-quest-builder-step-number {
  background: var(--accent-blue);
  color: white;
}

.create-quest-builder-step-label {
  white-space: nowrap;
}

/* Distribution Options */
.create-quest-builder-distribution-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.create-quest-builder-distribution-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(26, 31, 53, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.create-quest-builder-distribution-option:hover {
  background: rgba(37, 43, 61, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.create-quest-builder-distribution-option.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.create-quest-builder-distribution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.create-quest-builder-distribution-option.active .create-quest-builder-distribution-icon {
  background: var(--accent-blue);
  color: white;
}

.create-quest-builder-distribution-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.create-quest-builder-distribution-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.create-quest-builder-distribution-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Form Card */
.create-quest-builder-form-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.create-quest-builder-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.create-quest-builder-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-quest-builder-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-asterisk {
  color: #ef4444;
}

.create-quest-builder-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.create-quest-builder-input,
.create-quest-builder-select,
.create-quest-builder-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.create-quest-builder-input:focus,
.create-quest-builder-select:focus,
.create-quest-builder-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(26, 31, 53, 0.4);
}

.create-quest-builder-input::placeholder,
.create-quest-builder-textarea::placeholder {
  color: var(--text-muted);
}

.create-quest-builder-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.create-quest-builder-char-count {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.create-quest-builder-textarea-wrapper {
  position: relative;
}

.create-quest-builder-textarea {
  resize: vertical;
  min-height: 120px;
}

.create-quest-builder-textarea-wrapper .create-quest-builder-char-count {
  bottom: 12px;
  right: 16px;
}

.create-quest-builder-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Tags */
.create-quest-builder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.create-quest-builder-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 500;
}

.create-quest-builder-tag-remove {
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.create-quest-builder-tag-remove:hover {
  background: rgba(59, 130, 246, 0.3);
}

/* Image Upload */
.create-quest-builder-image-upload {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.create-quest-builder-image-upload:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(26, 31, 53, 0.2);
}

.create-quest-builder-file-input {
  display: none;
}

.create-quest-builder-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.create-quest-builder-upload-label svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.create-quest-builder-upload-label:hover svg {
  color: var(--accent-blue);
}

.create-quest-builder-upload-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.create-quest-builder-upload-subtext {
  font-size: 14px;
  color: var(--text-muted);
}

.create-quest-builder-image-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 200px;
}

.create-quest-builder-image-preview img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.create-quest-builder-image-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.create-quest-builder-image-remove:hover {
  background: rgba(239, 68, 68, 0.9);
}

/* Duration */
.create-quest-builder-duration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.create-quest-builder-duration-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-quest-builder-datetime-wrapper {
  display: flex;
  gap: 8px;
}

.create-quest-builder-datetime-wrapper .create-quest-builder-input {
  flex: 1;
}

/* Style date and time input buttons to be white and visible */
.create-quest-builder-datetime-input {
  color-scheme: dark;
}

.create-quest-builder-datetime-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 1;
}

.create-quest-builder-datetime-input::-webkit-calendar-picker-indicator:hover {
  opacity: 0.8;
}

.create-quest-builder-datetime-input::-webkit-datetime-edit {
  color: var(--text-primary);
}

.create-quest-builder-datetime-input::-webkit-datetime-edit-fields-wrapper {
  color: var(--text-primary);
}

.create-quest-builder-datetime-input::-webkit-datetime-edit-text {
  color: var(--text-primary);
}

.create-quest-builder-datetime-input::-webkit-datetime-edit-month-field,
.create-quest-builder-datetime-input::-webkit-datetime-edit-day-field,
.create-quest-builder-datetime-input::-webkit-datetime-edit-year-field {
  color: var(--text-primary);
}

/* For Firefox */
.create-quest-builder-datetime-input::-moz-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 1;
}

.create-quest-builder-datetime-input::-moz-calendar-picker-indicator:hover {
  opacity: 0.8;
}

/* Step Content Placeholder */
.create-quest-builder-step-content {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.create-quest-builder-step-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(26, 31, 53, 0.2);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.create-quest-builder-actions-list,
.create-quest-builder-audiences-list,
.create-quest-builder-rewards-list {
  min-height: 200px;
}

/* Preview */
.create-quest-builder-preview {
  width: 100%;
}

.create-quest-builder-preview-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.create-quest-builder-preview-card {
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.create-quest-builder-preview-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.create-quest-builder-preview-content {
  padding: 24px;
}

.create-quest-builder-preview-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.create-quest-builder-preview-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.create-quest-builder-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.create-quest-builder-preview-badge {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 500;
}

.create-quest-builder-preview-date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0 0;
}

/* Action Buttons */
.create-quest-builder-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.create-quest-builder-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.create-quest-builder-button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-quest-builder-button.save {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-quest-builder-button.save:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.create-quest-builder-button.next {
  background: rgba(26, 31, 53, 0.5);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-quest-builder-button.next:hover:not(:disabled) {
  background: rgba(37, 43, 61, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.create-quest-builder-button.previous {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-quest-builder-button.previous:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.create-quest-builder-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Actions Tab Styles */
.create-quest-builder-actions-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.create-quest-builder-add-action-top-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent-blue);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-quest-builder-add-action-top-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.create-quest-builder-actions-empty {
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.create-quest-builder-actions-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
}

.create-quest-builder-lightning-icon {
  color: var(--text-primary);
  opacity: 0.8;
}

.create-quest-builder-actions-empty-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.create-quest-builder-actions-empty-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 400px;
}

.create-quest-builder-add-action-empty-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-blue);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.create-quest-builder-add-action-empty-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Actions List */
.create-quest-builder-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.create-quest-builder-action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.create-quest-builder-action-item.dropdown-open {
  z-index: 200;
}

.create-quest-builder-action-item:hover {
  background: rgba(26, 31, 53, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.create-quest-builder-action-item-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
}

.create-quest-builder-action-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.create-quest-builder-action-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.create-quest-builder-action-item-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  opacity: 0.8;
}

.create-quest-builder-action-item-warning {
  font-size: 13px;
  color: #f59e0b;
  font-weight: 400;
  margin-left: 8px;
}

.create-quest-builder-action-item-optional-badge {
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 400;
  margin-left: 8px;
}

.create-quest-builder-action-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-quest-builder-action-item-edit {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-quest-builder-action-item-edit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.create-quest-builder-action-item-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-quest-builder-action-item-menu:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.create-quest-builder-action-item-menu-container {
  position: relative;
}

.create-quest-builder-action-item-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(26, 31, 53, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 4px;
  animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.create-quest-builder-action-item-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.create-quest-builder-action-item-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.create-quest-builder-action-item-dropdown-item.delete {
  color: #ef4444;
}

.create-quest-builder-action-item-dropdown-item.delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.create-quest-builder-action-item-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Edit Action Modal */
.create-quest-builder-edit-action-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background: rgba(15, 20, 35, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
              0 8px 24px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

.create-quest-builder-edit-action-modal-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-quest-builder-edit-action-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.create-quest-builder-edit-action-modal-actions .create-quest-builder-button {
  padding: 10px 20px;
  min-width: 100px;
}

/* Poll Editor Styles */
.poll-editor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.poll-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.poll-editor-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent-blue);
}

.poll-editor-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.poll-customization-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poll-customization-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.poll-customization-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.poll-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.poll-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.poll-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

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

.poll-toggle-switch input:checked + .poll-toggle-slider {
  background-color: var(--accent-blue);
}

.poll-toggle-switch input:checked + .poll-toggle-slider:before {
  transform: translateX(20px);
}

.poll-customization-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.poll-customization-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(26, 31, 53, 0.4);
}

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

.poll-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.poll-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
}

.poll-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poll-question-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-question-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.poll-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.poll-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.poll-question-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.poll-question-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

.poll-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-choice-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-choice-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.poll-choice-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

.poll-choice-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poll-choice-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.poll-add-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poll-add-choice:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.poll-add-question {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.poll-add-question:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.poll-question-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.poll-question-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

/* Quiz Editor Styles */
.quiz-editor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.quiz-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.quiz-editor-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(234, 179, 8, 0.2);
  border-radius: 8px;
  color: #eab308;
}

.quiz-editor-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.quiz-editor-help-icon {
  color: var(--text-secondary);
  opacity: 0.6;
  cursor: help;
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-question {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
}

.quiz-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-question-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.quiz-question-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quiz-question-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

.quiz-question-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.quiz-question-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

.quiz-answers-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answers-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-answer-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.quiz-answer-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

.quiz-answer-correct {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quiz-answer-correct:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.quiz-answer-correct.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.quiz-answer-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quiz-answer-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.quiz-add-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.quiz-add-answer:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.quiz-add-question {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.quiz-add-question:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Open Link Editor Styles */
.open-link-editor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.open-link-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.open-link-editor-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(234, 179, 8, 0.2);
  border-radius: 8px;
  color: #eab308;
}

.open-link-editor-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.open-link-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.open-link-editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.open-link-editor-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.open-link-editor-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.open-link-editor-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

/* Wait Editor Styles */
.wait-editor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.wait-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wait-editor-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: var(--accent-blue);
}

.wait-editor-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.wait-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wait-editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wait-editor-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.wait-editor-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.wait-editor-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

.wait-editor-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.wait-editor-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: rgba(15, 20, 35, 0.6);
}

.wait-editor-select option {
  background: rgba(15, 20, 35, 0.95);
  color: var(--text-primary);
}

/* Custom Title Field (shared across all action editors) */
.action-editor-custom-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.action-editor-custom-title-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.action-editor-custom-title-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.action-editor-custom-title-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(15, 20, 35, 0.6);
}

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

/* Actions Modal */
.create-quest-builder-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.create-quest-builder-actions-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 1000px;
  max-height: 80vh;
  background: rgba(15, 20, 35, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
              0 8px 24px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.create-quest-builder-actions-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-radius: 24px 24px 0 0;
}

.create-quest-builder-actions-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.create-quest-builder-modal-close {
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.create-quest-builder-modal-close:hover {
  background: rgba(26, 31, 53, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.create-quest-builder-actions-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
}

.create-quest-builder-actions-modal-content .create-quest-builder-actions-content {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.create-quest-builder-actions-modal-content .create-quest-builder-actions-grid {
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}

.create-quest-builder-actions-modal-content .create-quest-builder-actions-categories {
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.create-quest-builder-actions-container {
  display: flex;
  gap: 24px;
  height: 600px;
}

.create-quest-builder-actions-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-quest-builder-actions-search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 4px;
}

.create-quest-builder-search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.create-quest-builder-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: rgba(26, 31, 53, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.create-quest-builder-search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(26, 31, 53, 0.3);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.create-quest-builder-search-input::placeholder {
  color: var(--text-muted);
}

.create-quest-builder-actions-content {
  display: flex;
  gap: 0;
  flex: 1;
  overflow: hidden;
  width: 100%;
}

.create-quest-builder-actions-categories {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 12px;
  flex-shrink: 0;
}

/* Custom Scrollbar for Categories */
.create-quest-builder-actions-categories::-webkit-scrollbar {
  width: 6px;
}

.create-quest-builder-actions-categories::-webkit-scrollbar-track {
  background: rgba(20, 25, 40, 0.3);
  border-radius: 3px;
}

.create-quest-builder-actions-categories::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.create-quest-builder-actions-categories::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.create-quest-builder-category-item {
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-quest-builder-category-item:hover {
  background: rgba(20, 25, 40, 0.5);
  color: var(--text-primary);
  transform: translateX(2px);
}

.create-quest-builder-category-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.create-quest-builder-actions-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 8px;
  width: 100%;
}

/* Custom Scrollbar for Actions Grid */
.create-quest-builder-actions-grid::-webkit-scrollbar {
  width: 8px;
}

.create-quest-builder-actions-grid::-webkit-scrollbar-track {
  background: rgba(20, 25, 40, 0.3);
  border-radius: 4px;
}

.create-quest-builder-actions-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.create-quest-builder-actions-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.create-quest-builder-action-card {
  padding: 18px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.create-quest-builder-action-card.pro-disabled,
.create-quest-builder-action-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.7);
  background: rgba(26, 31, 53, 0.3);
}

.create-quest-builder-action-card.pro-disabled:hover,
.create-quest-builder-action-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.create-quest-builder-action-card:hover {
  background: rgba(26, 31, 53, 0.5);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(59, 130, 246, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.create-quest-builder-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.create-quest-builder-action-icon.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.create-quest-builder-action-icon.purple {
  background: rgba(147, 51, 234, 0.2);
  color: #9333ea;
}

.create-quest-builder-action-icon.red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.create-quest-builder-action-icon.green {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.create-quest-builder-action-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.create-quest-builder-action-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.create-quest-builder-actions-preview {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-quest-builder-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.create-quest-builder-preview-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.create-quest-builder-preview-step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.create-quest-builder-add-action-button {
  width: 100%;
  padding: 12px;
  background: var(--accent-blue);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-quest-builder-add-action-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.create-quest-builder-preview-actions-list {
  flex: 1;
  min-height: 200px;
  background: rgba(26, 31, 53, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

@media (max-width: 768px) {
  .create-quest-builder-container {
    gap: 16px;
  }

  .create-quest-builder-title {
    font-size: 24px;
  }

  .create-quest-builder-steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .create-quest-builder-step {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .create-quest-builder-form-card {
    padding: 20px;
  }

  .create-quest-builder-duration-grid {
    grid-template-columns: 1fr;
  }

  .create-quest-builder-actions {
    flex-direction: column-reverse;
  }

  .create-quest-builder-actions-modal {
    width: 95%;
    max-width: none;
    max-height: 90vh;
  }

  .create-quest-builder-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .create-quest-builder-actions-grid {
    grid-template-columns: 1fr;
  }

  .create-quest-builder-button {
    width: 100%;
  }

  .create-quest-builder-actions-container {
    flex-direction: column;
    height: auto;
  }

  .create-quest-builder-actions-preview {
    width: 100%;
  }
}

/* Pro Badge */
.pro-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subscribe Popup */
.create-quest-builder-subscribe-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  z-index: 10001;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.create-quest-builder-subscribe-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.create-quest-builder-subscribe-popup-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin: 0;
}

.create-quest-builder-subscribe-popup-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-quest-builder-subscribe-popup-message {
  font-size: 14px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  line-height: 1.5;
  margin: 0;
}

/* Editor Styles for New Actions */
.staked-claim-editor,
.hold-token-editor,
.hold-nft-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staked-claim-editor-header,
.hold-token-editor-header,
.hold-nft-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.staked-claim-editor-header-icon,
.hold-token-editor-header-icon,
.hold-nft-editor-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staked-claim-editor-title,
.hold-token-editor-title,
.hold-nft-editor-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin: 0;
}

.staked-claim-editor-fields,
.hold-token-editor-fields,
.hold-nft-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staked-claim-editor-field,
.hold-token-editor-field,
.hold-nft-editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staked-claim-editor-label,
.hold-token-editor-label,
.hold-nft-editor-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.staked-claim-editor-input,
.hold-token-editor-input,
.hold-nft-editor-input {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  transition: all 0.2s ease;
}

.staked-claim-editor-input:focus,
.hold-token-editor-input:focus,
.hold-nft-editor-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.staked-claim-editor-hint,
.hold-token-editor-hint,
.hold-nft-editor-hint {
  font-size: 12px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  margin: 0;
}

/* Coming Soon Tooltip */
.coming-soon-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10001;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease;
}

.coming-soon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}


.builder-quests-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.builder-quests-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.builder-quests-back-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.builder-quests-back-button svg {
  width: 20px;
  height: 20px;
}

.builder-quests-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Sub-navigation Tabs */
.builder-quests-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.builder-quests-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -1px;
}

.builder-quests-tab:hover {
  color: var(--text-primary);
}

.builder-quests-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}

/* Empty State */
.builder-quests-empty-state {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-quests-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 24px;
  opacity: 0.8;
}

.builder-quests-empty-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.builder-quests-empty-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  max-width: 400px;
}

.builder-quests-create-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.builder-quests-create-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.builder-quests-create-button svg {
  width: 20px;
  height: 20px;
}

/* Drafts Grid */
.builder-quests-drafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.builder-quests-draft-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-quests-draft-card:hover {
  background: rgba(26, 31, 53, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 72px rgba(0, 0, 0, 0.5),
              0 7px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.builder-quests-draft-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.builder-quests-draft-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.builder-quests-draft-status {
  display: flex;
  align-items: center;
}

.builder-quests-draft-status-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.builder-quests-draft-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.builder-quests-draft-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.builder-quests-draft-date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.builder-quests-draft-card-new {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-style: dashed;
  border-width: 2px;
  background: rgba(26, 31, 53, 0.1);
}

.builder-quests-draft-card-new:hover {
  background: rgba(26, 31, 53, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.builder-quests-draft-new-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.builder-quests-draft-card-new:hover .builder-quests-draft-new-content {
  color: var(--accent-blue);
}

.builder-quests-draft-new-text {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .builder-quests-container {
    gap: 16px;
  }

  .builder-quests-title {
    font-size: 24px;
  }

  .builder-quests-tabs {
    overflow-x: auto;
  }

  .builder-quests-tab {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .builder-quests-empty-state {
    padding: 60px 24px;
    min-height: 300px;
  }

  .builder-quests-empty-title {
    font-size: 20px;
  }

  .builder-quests-empty-description {
    font-size: 14px;
  }

  .builder-quests-drafts-grid {
    grid-template-columns: 1fr;
  }
}


.builder-analytics {
  padding: 24px;
  color: var(--text-primary);
}

.builder-analytics-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.builder-analytics-loading p {
  color: var(--text-secondary);
  font-size: 14px;
}

.builder-analytics-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px 0;
  color: var(--text-primary);
}

.builder-analytics-section {
  margin-bottom: 48px;
  background: rgba(26, 31, 53, 0.3);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.builder-analytics-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}

.builder-analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.builder-analytics-stat-card {
  background: rgba(26, 31, 53, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.builder-analytics-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.builder-analytics-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.builder-analytics-stat-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.builder-analytics-chart-container {
  width: 100%;
  height: 300px;
  margin-bottom: 16px;
  background: rgba(26, 31, 53, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.builder-analytics-funnel-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.builder-analytics-funnel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(26, 31, 53, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.builder-analytics-funnel-stat span:first-child {
  font-size: 12px;
  color: var(--text-secondary);
}

.builder-analytics-funnel-stat span:last-child {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.builder-analytics-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 31, 53, 0.3);
}

.builder-analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.builder-analytics-table thead {
  background: rgba(26, 31, 53, 0.5);
}

.builder-analytics-table th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-analytics-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.builder-analytics-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.builder-analytics-table tbody tr:last-child td {
  border-bottom: none;
}

.builder-analytics-address {
  font-family: 'Courier New', monospace;
  color: var(--accent-blue);
}

.builder-analytics-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 32px;
}

.builder-analytics-empty-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  font-size: 14px;
}

@media (max-width: 768px) {
  .builder-analytics {
    padding: 16px;
  }

  .builder-analytics-stats-grid {
    grid-template-columns: 1fr;
  }

  .builder-analytics-funnel-stats {
    flex-direction: column;
    gap: 16px;
  }

  .builder-analytics-chart-container {
    height: 250px;
    padding: 8px;
  }
}

.builder-dashboard-page {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: block;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

.builder-dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Layout */
.builder-dashboard-layout {
  display: block;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Left Sidebar */
.builder-sidebar {
  width: 280px;
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.builder-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-logo-icon {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

.builder-tag {
  padding: 4px 12px;
  background: #1e3a8a; /* Navy blue */
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.builder-sidebar-community-card {
  background: rgba(26, 31, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-sidebar-community-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.builder-sidebar-community-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}

.builder-sidebar-community-badge {
  position: absolute;
  bottom: 40px;
  left: 12px;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.builder-sidebar-community-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Navigation */
.builder-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.builder-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.builder-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.builder-nav-item.active {
  background: rgba(26, 31, 53, 0.5);
  color: var(--text-primary);
}

.builder-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.builder-nav-item span {
  flex: 1;
}

/* Main Content */
.builder-main-content {
  flex: 1;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-left: 280px;
}

.builder-main-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Stats Grid */
.builder-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.builder-stat-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.builder-stat-icon.rocket {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.builder-stat-icon.checkmark {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.builder-stat-icon.trophy {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.builder-stat-icon.chart {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.builder-stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.builder-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.builder-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.builder-stat-button {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.builder-stat-button:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Sections */
.builder-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.builder-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Community Stats Grid */
.builder-community-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.builder-community-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-community-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.builder-community-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.builder-community-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.builder-community-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.builder-community-xp {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Staked Card */
.builder-staked-card {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.builder-staked-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.builder-staked-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.builder-staked-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.builder-staked-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.builder-staked-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.builder-staked-button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* Builder Rewards */
.builder-rewards-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-rewards-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.builder-rewards-message {
  background: rgba(26, 31, 53, 0.2);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  box-shadow: 0 14px 58px rgba(0, 0, 0, 0.4),
              0 4px 14px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Floating Action Button */
.builder-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  z-index: 50;
}

.builder-fab:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.builder-fab svg {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .builder-dashboard-page {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .builder-dashboard-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .builder-sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
  }

  .builder-main-content {
    height: auto;
    overflow: visible;
  }

  .builder-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .builder-stats-grid,
  .builder-community-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .builder-main-content {
    padding: 20px 16px;
  }

  .builder-header {
    padding: 12px 16px;
  }

  .builder-sidebar {
    padding: 16px;
  }
}.subscription-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.subscription-modal {
  background: rgba(26, 31, 53, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.subscription-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.subscription-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.subscription-modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.subscription-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.subscription-modal-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

.subscription-modal-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.subscription-plan-card {
  background: rgba(26, 31, 53, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

.subscription-plan-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subscription-plan-card.pro {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(26, 31, 53, 0.7);
}

.subscription-plan-card.pro:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.subscription-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subscription-plan-header {
  margin-bottom: 24px;
}

.subscription-plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.subscription-plan-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}

.subscription-plan-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.subscription-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.subscription-plan-features li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-plan-features li:last-child {
  border-bottom: none;
}

.subscription-plan-button {
  width: 100%;
  padding: 16px 24px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: var(--accent-blue);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscription-plan-button:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.subscription-plan-button.pro {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  color: white;
}

.subscription-plan-button.pro:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .subscription-modal {
    padding: 24px;
  }

  .subscription-modal-plans {
    grid-template-columns: 1fr;
  }

  .subscription-modal-title {
    font-size: 24px;
  }
}

.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-login-modal {
  background: linear-gradient(135deg, #1a1f35 0%, #2d1b3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.admin-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-login-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.admin-login-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-login-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.admin-login-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-login-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-login-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-login-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-login-button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-login-button.submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.admin-login-button.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.admin-login-button.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.admin-login-button.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-login-button.cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-login-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-login-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-login-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
