* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Ensure scrolling works everywhere */
*, *::before, *::after {
  overscroll-behavior: auto;
}

p {
  word-wrap: break-word;
  width: 100%;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  overscroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  overflow-y: scroll;
  height: auto;
  min-height: 100vh;
  width: 100%;
  overscroll-behavior: auto;
  touch-action: pan-y;
  cursor: auto;
}

#root {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.light-theme {
  background: #ffffff;
  color: #000000;
}

/* Light theme - all text to black */
body.light-theme * {
  color: #000000 !important;
}

body.light-theme .header {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .post,
body.light-theme .feed-header,
body.light-theme .create-post,
body.light-theme .left-nav,
body.light-theme .sidebar-section,
body.light-theme .comment-item {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .search-input,
body.light-theme textarea,
body.light-theme input {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme button {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .btn-icon-stack,
body.light-theme .btn-disconnect-stack,
body.light-theme .icon-stack {
  background: #ffffff !important;
}

body.light-theme .btn-disconnect-stack {
  background: #ffffff !important;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

/* Background decoration removed for better performance */

@keyframes pulse-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.15;
  }
  25% {
    transform: translate(-30px, -20px) scale(1.1);
    opacity: 0.2;
  }
  50% {
    transform: translate(0, -40px) scale(0.9);
    opacity: 0.15;
  }
  75% {
    transform: translate(30px, -20px) scale(1.05);
    opacity: 0.18;
  }
}

@keyframes pulse-float-reverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  25% {
    transform: translate(30px, 20px) scale(0.95);
    opacity: 0.15;
  }
  50% {
    transform: translate(0, 40px) scale(1.1);
    opacity: 0.12;
  }
  75% {
    transform: translate(-30px, 20px) scale(1.05);
    opacity: 0.14;
  }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 255, 0.5);
}

/* Button animations */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.profile-modal {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  width: 350px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  animation: slideDown 0.3s ease-out;
  margin-top: 80px;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px 20px 0 0;
}

.profile-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Profile Header Section */
.profile-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  gap: 0.4rem;
}

.profile-header-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.1);
  font-size: 1.3rem;
  font-weight: 700;
}

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

.profile-header-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-header-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-header-username {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  margin: 0;
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-header-wallet svg {
  color: #8b5cf6;
}

.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.profile-loading svg {
  color: #8b5cf6;
}

.close-button {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-button:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.profile-form {
  padding: 12px 14px;
}

.profile-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 12px;
  border: 1px dashed rgba(139, 92, 246, 0.3);
}

.profile-image-preview {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.profile-image-placeholder {
  color: rgba(139, 92, 246, 0.5);
}

.upload-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #8b5cf6;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-button:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.image-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.form-group {
  margin-bottom: 8px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 7px 10px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:disabled,
.form-group textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.char-count {
  position: absolute;
  right: 12px;
  bottom: -20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-cancel,
.btn-save {
  flex: 1 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-save {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-cancel:disabled,
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Scrollbar styling */
.profile-modal::-webkit-scrollbar {
  width: 8px;
}

.profile-modal::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.05);
}

.profile-modal::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.profile-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .profile-modal {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 100px);
  }
}

@media (max-width: 640px) {
  .profile-modal {
    top: 70px;
    right: 5px;
    left: 5px;
    width: auto;
    max-height: calc(100vh - 80px);
  }

  .profile-modal-header,
  .profile-form {
    padding: 12px;
  }

  .profile-image-preview {
    width: 100px;
    height: 100px;
  }
}

.notifications-dropdown {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: 10000 !important;
  animation: fadeIn 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  visibility: visible !important;
  opacity: 1 !important;
}

.notifications-modal-content {
  width: 90% !important;
  max-width: 800px !important;
  max-height: 90vh !important;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%) !important;
  border: 2px solid rgba(0, 102, 255, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0, 102, 255, 0.3), 0 0 100px rgba(139, 92, 246, 0.2) !important;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 10001 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(0, 102, 255, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  flex-shrink: 0;
  min-height: 80px;
}

.notifications-header h3 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  letter-spacing: -0.025em;
  visibility: visible !important;
  opacity: 1 !important;
}

.notifications-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clear {
  padding: 0.375rem 0.75rem !important;
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  border-radius: 0.5rem !important;
  color: #f87171 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}

.btn-close-notifications {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(239, 68, 68, 0.2) !important;
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  border-radius: 10px !important;
  color: #f87171 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-close-notifications:hover {
  background: rgba(239, 68, 68, 0.4) !important;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.notifications-list {
  flex: 1 1 !important;
  overflow-y: auto !important;
  padding: 1rem !important;
  min-height: 200px !important;
  background: rgba(17, 24, 39, 0.6) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(74, 85, 104, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: rgba(17, 24, 39, 0.5);
}

.notification-item:hover {
  background: rgba(249, 115, 22, 0.15);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.notification-item.unread {
  background: rgba(249, 115, 22, 0.08);
  border-left: 3px solid #f97316;
}

.notification-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  border: 3px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

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

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

.notification-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.notification-icon {
  flex-shrink: 0;
}

.notification-icon.follow {
  color: #f97316;
}

.notification-icon.post {
  color: #fb923c;
}
.notification-icon.like {
  color: #f87171;
}

.notification-icon.comment {
  color: #fb923c;
}

.notification-icon.mention {
  color: #f97316;
}

.notification-username {
  font-weight: 600;
  color: #e5e7eb;
}

.notification-message {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.25rem 0;
  word-wrap: break-word;
}

.notification-preview {
  color: #9ca3af;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border-left: 2px solid #f97316;
  border-radius: 4px;
  word-wrap: break-word;
}

.notification-time {
  color: #d1d5db;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 500;
}

.unread-dot {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 10px;
  height: 10px;
  background: #f97316;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.no-notifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 300px;
}

.empty-icon {
  color: #4b5563;
  margin-bottom: 1rem;
}

.no-notifications p {
  color: #9ca3af !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.no-notifications span {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .notifications-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .notifications-header {
    padding: 1.25rem 1.5rem;
  }
  
  .notifications-header h3 {
    font-size: 1.5rem;
  }
  
  .notification-item {
    padding: 1rem;
  }
  
  .notification-avatar {
    width: 48px;
    height: 48px;
  }
}

.follow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.follow-button.small {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.follow-button.medium {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.follow-button.large {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
}

.follow-button.not-following {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.follow-button.not-following:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.follow-button.following {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.follow-button.following:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.follow-button.following:hover:not(:disabled) span {
  display: none;
}

.follow-button.following:hover:not(:disabled)::after {
  content: 'Unfollow';
}

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

.spinning {
  animation: spin 1s linear infinite;
}

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

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

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

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(30, 41, 59, 0.5);
}

.search-results-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.btn-close-search-dropdown {
  padding: 0.375rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-search-dropdown:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.search-results-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: #9ca3af;
}

.no-results p {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.no-results span {
  font-size: 0.875rem;
}

.results-section {
  margin-bottom: 2rem;
}

.results-section:last-child {
  margin-bottom: 0;
}

.results-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
}

.result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateX(4px);
}

.result-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 0.5rem;
  color: #60a5fa;
}

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

.result-text {
  color: #e2e8f0;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.highlight-match {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.result-username {
  color: #60a5fa;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

.result-address {
  color: #9ca3af;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  margin: 0;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.result-author {
  color: #60a5fa;
  font-weight: 600;
}

/* User Result Item Styles */
.user-result-item {
  align-items: center;
}

.user-result-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(249, 115, 22, 0.3);
}

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

.user-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-separator {
  color: #4b5563;
}

.user-result-actions {
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 768px) {
  .search-modal {
    max-width: 100%;
    max-height: 90vh;
    margin: 1rem;
  }

  .search-modal-overlay {
    padding: 0;
  }
}

/* Sun Logo Container */
.sun-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

/* Canvas for sun animation */
.sun-logo-canvas {
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
}

/* HELIOS Text */
.helios-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.helios-main {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffa726 0%, #ff6f00 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.helios-sub {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
}

/* Light theme adjustments */
body.light-theme .helios-main {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .helios-sub {
  color: #64748b;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sun-logo-canvas {
    filter: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .helios-main {
    font-size: 1.5rem;
  }
  
  .helios-sub {
    font-size: 0.875rem;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999 !important;
  width: 100%;
  height: 100px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  pointer-events: auto !important;
}

.header *,
.header button,
.header input,
.header form {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.header input {
  cursor: text !important;
}

.header.finisher-header {
  position: fixed;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
  position: relative;
}

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

.header-logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.3));
  transition: all 0.3s ease;
}

.header-logo-image:hover {
  filter: drop-shadow(0 0 15px rgba(255, 152, 0, 0.5));
  transform: scale(1.05);
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-disconnect-header-with-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.2s;
  pointer-events: auto !important;
  z-index: 99999;
  position: relative;
  white-space: nowrap;
}

.btn-disconnect-header-with-text:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%);
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.btn-disconnect-header-with-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Make all header buttons explicitly clickable */
.btn-stack-icon {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 99999 !important;
  position: relative;
}

.btn-stack-icon.btn-profile-stack {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.header-search-center {
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.search-input {
  cursor: text !important;
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.header-logo {
  display: flex;
  gap: 0.75rem;
}

.logo-icon {
  color: #0066ff;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.3));
}

.animated-sun {
  animation: rotateSun 8s linear infinite;
}

.sun-rays {
  transform-origin: center;
  animation: pulseSun 2s ease-in-out infinite;
}

@keyframes rotateSun {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseSun {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.header-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search Bar - Centered */
.header-search-center {
  position: relative;
  width: 100%;
  max-width: 650px;
  z-index: 30;
  pointer-events: auto;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3.5rem 0.875rem 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 15px;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2), 0 0 30px rgba(255, 152, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: text;
  pointer-events: auto;
  position: relative;
  z-index: 2004;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 152, 0, 0.6);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15), 0 0 25px rgba(255, 152, 0, 0.4), 0 4px 15px rgba(255, 152, 0, 0.3);
  transform: translateY(-1px);
}

.search-input.searching {
  border-color: rgba(255, 152, 0, 0.9);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.25), 0 0 45px rgba(255, 152, 0, 0.6);
  animation: searchPulse 0.8s ease-out, searchGlow 1.5s ease-in-out;
}

@keyframes searchPulse {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  30% {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 0 0 15px rgba(255, 152, 0, 0), 0 0 50px rgba(255, 152, 0, 0.7);
  }
  60% {
    transform: scale(1.01) translateY(-1px);
    box-shadow: 0 0 0 20px rgba(255, 152, 0, 0), 0 0 40px rgba(255, 152, 0, 0.5);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.25), 0 0 30px rgba(255, 152, 0, 0.4);
  }
}

@keyframes searchGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 152, 0, 0.5));
  }
}

.btn-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: 2px solid rgba(59, 130, 246, 0.5);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  padding: 0;
  box-shadow: none;
}

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

.btn-profile-avatar:hover {
  border-color: rgba(59, 130, 246, 0.8);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Header Button Stack */
.header-button-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 1rem;
  padding: 0.5rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.icon-buttons-row {
  display: flex;
  gap: 0.5rem;
}

.btn-stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 0;
  position: relative;
}

.btn-stack-icon:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  transform: translateY(-2px);
}

.btn-stack-icon.btn-profile-stack {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: 3px solid #10b981;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  animation: greenPulse 2s ease-in-out infinite;
}

.btn-stack-icon.btn-profile-stack:hover {
  border-color: #34d399;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.5);
}

@keyframes greenPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.5);
  }
}

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

.notification-badge-small {
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgba(255, 152, 0, 0.9);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.btn-disconnect-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-disconnect-header:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

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

/* Connect Wallet Button - Header */
.btn-connect-wallet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: 2px solid rgba(59, 130, 246, 0.6);
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
  white-space: nowrap;
}

.btn-connect-wallet-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.9);
  background: linear-gradient(135deg, #4f93ff 0%, #9d6fff 100%);
}

.btn-connect-wallet-header:active {
  transform: translateY(-1px);
}

/* Disconnected State Buttons */
.header-buttons-disconnected {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-theme-standalone {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  padding: 0;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  position: relative;
  z-index: 100;
}

.btn-theme-standalone:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(30, 41, 59, 0.95);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.btn-theme-standalone:active {
  transform: scale(1.05);
}

/* Profile Circle Button */
.btn-profile-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: 3px solid #10b981;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  position: relative;
  z-index: 100;
}

.btn-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.btn-profile-circle:hover {
  border-color: #34d399;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.5);
}

.btn-profile-circle:active {
  transform: scale(1.05);
}

/* Icon Stack */
.icon-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(26, 31, 58, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 1.5rem;
}

.icon-stack-row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.btn-icon-stack {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.4rem;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-stack:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: scale(1.05);
}

.user-avatar-stack {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(96, 165, 250, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.user-avatar-stack:hover {
  transform: scale(1.05);
  border-color: rgba(96, 165, 250, 0.6);
}

.user-avatar-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.btn-notifications {
  position: relative;
}

.btn-notifications.btn-icon-stack {
  background: rgba(255, 152, 0, 0.1);
  border: 2px solid rgba(255, 152, 0, 0.4);
  color: #ff9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

.btn-notifications.btn-icon-stack:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 152, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
  transform: scale(1.05);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgba(255, 152, 0, 0.9);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 1rem;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.user-username-header {
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

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

.btn-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #8b5cf6;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-profile:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* User Profile Display in Header */
.user-profile-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 2rem;
  transition: all 0.2s;
}

.user-profile-display:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(96, 165, 250, 0.3);
}

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

.user-username {
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.5rem;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-connect,
.btn-disconnect {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-connect {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-disconnect {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-disconnect:hover {
  background: rgba(239, 68, 68, 0.5);
}

.icon-stack {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon-stack-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-disconnect-stack {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
  height: 36px;
}

.btn-disconnect-stack:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

@media (max-width: 768px) {
  .btn-profile {
    padding: 10px 12px;
  }
  
  .btn-profile span {
    display: none;
  }
}

/* Wallet Modal Styles */
.wallet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wallet-modal {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
  animation: slideUp 0.3s ease;
}

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

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.wallet-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.close-button {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-button:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.wallet-modal-content {
  padding: 1.5rem;
}

.wallet-modal-description {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.wallet-option:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.wallet-option:active {
  transform: translateY(0);
}

.wallet-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-name {
  flex: 1 1;
}

.wallet-status {
  font-size: 0.75rem;
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

.hamburger-menu:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(59, 130, 246, 0.3);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(15, 23, 42, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  overflow: visible;
}

@keyframes slideDown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

@media (max-width: 768px) {
  .hamburger-menu-mobile {
    display: flex;
  }

  .header-right {
    display: none;
  }

  .header-search-center {
    max-width: 100%;
  }

  .header {
    height: 70px;
  }
  
  .mobile-nav {
    top: 100px;
  }
  
  .header-container {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .header-search {
    display: none;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  .header-logo h1 {
    font-size: 1.25rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.6rem;
  }
  
  .user-username {
    display: none;
  }
  
  .user-profile-display {
    padding: 0.375rem;
  }
  
  .wallet-address span {
    display: none;
  }
  
  .wallet-address {
    padding: 0.5rem;
  }
  
  .wallet-info {
    gap: 8px;
  }
  
  .btn-disconnect span,
  .btn-connect span {
    display: none;
  }

  .wallet-modal {
    width: 95%;
  }

  .wallet-modal-header {
    padding: 1rem;
  }

  .wallet-modal-content {
    padding: 1rem;
  }

  .wallet-option {
    padding: 0.875rem 1rem;
  }
  
  .icon-stack-row {
    gap: 0.375rem;
  }
  
  .btn-icon-stack {
    width: 32px;
    height: 32px;
  }
}

.online-users-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(74, 85, 104, 0.3);
  border-radius: 1rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.online-users-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.online-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.online-user-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: all 0.2s;
  width: 100%;
}

.online-user-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.online-user-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.online-user-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.online-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  border: 1.5px solid rgba(96, 165, 250, 0.2);
}

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

.online-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #1a1f35;
}

.online-status.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

.online-status.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
  }
}

.online-user-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.online-user-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.online-user-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: #9ca3af;
}

.online-user-stats span {
  white-space: nowrap;
}

.stat-separator {
  color: #6b7280;
  font-weight: 700;
}

.online-user-address {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: 'Courier New', monospace;
}

.online-user-status-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

.online-user-status-text.online {
  color: #10b981;
}

.online-user-status-text.offline {
  color: #ef4444;
}

.online-user-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.online-user-actions button {
  width: 100%;
  justify-content: center;
}

.no-users {
  text-align: center;
  color: #9ca3af;
  font-size: 0.75rem;
  padding: 0.75rem;
  font-style: italic;
}

.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
  max-width: 250px;
  width: 250px;
}

.left-sidebar-content {
  padding: 0 0.5rem;
  width: 100%;
}

.left-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
}

.nav-tab {
  padding: 1rem 1.25rem;
  background: transparent;
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.nav-tab:hover {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.5);
  color: #ff9800;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.nav-tab.active {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
  border: 2px solid #ff9800;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, #ff9800 0%, #ff6f00 100%);
  border-radius: 0 4px 4px 0;
}

.nav-tab svg {
  flex-shrink: 0;
}

/* Profile Tab - Special Styling */
.nav-tab.profile-tab {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 111, 0, 0.1) 100%);
  border: 2px solid rgba(255, 152, 0, 0.4);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.nav-tab.profile-tab:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 111, 0, 0.2) 100%);
  color: #ff9800;
  border-color: #ff9800;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.left-sidebar-content {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 1rem;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

@media (max-width: 1024px) {
  .left-sidebar {
    display: none;
  }
}

.create-post {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.success-banner {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: slideDown 0.3s ease-out;
  z-index: 10;
}

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

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

.create-post-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.hint-container {
  position: relative;
}

.hint-icon {
  color: #9ca3af;
  cursor: help;
  transition: color 0.2s;
}

.hint-icon:hover {
  color: #60a5fa;
}

.hint-tooltip {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #d1d5db;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.create-post textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.create-post textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.create-post textarea::placeholder {
  color: #6b7280;
}

.create-post textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.create-post textarea.over-limit {
  border-color: #ef4444;
}

.image-preview-container {
  position: relative;
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  max-height: 400px;
}

.image-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.btn-remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-image:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(1.1);
}

.create-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

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

.btn-add-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-image:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.char-counter {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.char-counter span.over-limit {
  color: #ef4444;
  font-weight: 600;
}

.btn-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 111, 0, 0.3) 100%);
  color: #ff9800;
  border: 2px solid rgba(255, 152, 0, 0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.btn-post.active {
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 152, 0, 0.6);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-post.active:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffa726 0%, #ff8f00 100%);
  border-color: rgba(255, 152, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
}

.btn-post:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  border: 2px solid rgba(255, 152, 0, 0.5) !important;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 111, 0, 0.2) 100%) !important;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

@media (max-width: 640px) {
  .create-post {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .create-post textarea {
    min-height: 100px;
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .btn-post {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .hint-tooltip {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    width: 200px;
    text-align: center;
  }
}

.comments-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-show-comments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-show-comments:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.comments-container {
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

.comment-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-item:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.15);
}

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

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

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(148, 163, 184, 0.2);
}

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

.comment-text {
  color: #e2e8f0;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.625rem;
  word-wrap: break-word;
}

.comment-author {
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.own-badge-small {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #60a5fa;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-timestamp {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-comment-action {
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-comment-action:hover {
  color: #60a5fa;
}

.btn-comment-action.btn-delete:hover {
  color: #f87171;
}

.comment-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

.btn-like-comment,
.btn-reply-comment,
.btn-toggle-replies {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-like-comment:hover:not(:disabled),
.btn-reply-comment:hover:not(:disabled),
.btn-toggle-replies:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.btn-like-comment.liked {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.comment-edit-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.comment-edit-input {
  flex: 1 1;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.comment-edit-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.4);
}

.comment-edit-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-comment-save,
.btn-comment-cancel {
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-comment-save {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.btn-comment-save:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
}

.btn-comment-cancel {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.btn-comment-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
}

.comment {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.15);
}

.btn-toggle-comments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-toggle-comments:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.comments-list {
  margin-top: 1rem;
}

.no-comments {
  text-align: center;
  color: #94a3b8;
  padding: 2rem;
  font-style: italic;
}

.reply-input-container {
  padding-left: 2.5rem;
}

.reply-input {
  flex: 1 1;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.btn-send-reply,
.btn-submit-comment {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit-comment:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-cancel-reply {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel-reply:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-delete-comment {
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-delete-comment:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.comment-author {
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.01em;
}

.comment-time {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.625rem;
  font-weight: 400;
}

.comment-input {
  flex: 1 1;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  line-height: 1.6;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-replies {
  margin-left: 2.5rem;
  margin-top: 0.5rem;
  border-left: 2px solid rgba(96, 165, 250, 0.2);
  padding-left: 1rem;
}

.connect-to-comment {
  text-align: center;
  color: #9ca3af;
  padding: 1rem;
  background: rgba(96, 165, 250, 0.05);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

@media (max-width: 640px) {
  .comment-item {
    padding: 0.5rem;
  }

  .comment-avatar {
    width: 28px;
    height: 28px;
  }

  .comment-input {
    font-size: 0.8125rem;
  }
}

.user-profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.user-profile-modal {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  width: 350px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  margin-top: 80px;
}

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

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.user-profile-modal-content {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 1.25rem;
}

.user-profile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.user-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

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

.user-profile-avatar svg {
  color: white;
}

.user-profile-username {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-profile-address {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}

.user-profile-bio {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

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

.stat-item {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.stat-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.stat-item svg {
  color: #3b82f6;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-profile-actions {
  margin-bottom: 2rem;
}

.user-profile-actions button {
  width: 100%;
}

.user-profile-posts {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
}

.posts-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.posts-title svg {
  color: #3b82f6;
}

.posts-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.post-preview-item {
  aspect-ratio: 1;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.post-preview-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.post-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.post-preview-likes,
.post-preview-comments {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.no-posts {
  text-align: center;
  color: #64748b;
  padding: 2rem;
  font-style: italic;
}

/* Scrollbar styling */
.user-profile-modal::-webkit-scrollbar {
  width: 8px;
}

.user-profile-modal::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 4px;
}

.user-profile-modal::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.user-profile-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .user-profile-modal {
    padding: 1.5rem;
    max-width: 95%;
  }

  .user-profile-avatar {
    width: 100px;
    height: 100px;
  }

  .user-profile-username {
    font-size: 1.25rem;
  }

  .user-profile-stats {
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}

.post {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.post:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

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

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-address {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.own-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #60a5fa;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.author-address-small {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-family: 'Courier New', monospace;
  font-weight: 400;
}

.post-timestamp {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 400;
}

.btn-delete-post {
  padding: 0.625rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-post:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

.btn-delete-post:active:not(:disabled) {
  transform: translateY(0);
}

.btn-delete-post:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-content {
  color: #e2e8f0;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

.post-image-container {
  margin: 0.75rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  max-height: 500px;
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.post-footer {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-like {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-like:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

.btn-like.liked {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
}

.btn-like.liked:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
}

.btn-like:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-like.loading {
  pointer-events: none;
}

@keyframes highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    border-color: rgba(249, 115, 22, 0.8);
    background: rgba(249, 115, 22, 0.2);
  }
  50% {
    box-shadow: 0 0 30px 10px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 1);
    background: rgba(249, 115, 22, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.95);
  }
}

@media (max-width: 640px) {
  .post {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .author-avatar {
    width: 42px;
    height: 42px;
  }
  
  .post-content {
    font-size: 0.875rem;
  }
  
  .btn-like,
  .btn-delete-post {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

.feed {
  width: 100%;
  max-width: 680px;
}

.feed-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
}

.feed-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 0.375rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  width: -webkit-fit-content;
  width: fit-content;
}

.feed-tab {
  padding: 0.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.feed-tab:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.feed-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.5);
}

.feed-tab-x-helios {
  background: rgba(29, 161, 242, 0.15);
  border-color: rgba(29, 161, 242, 0.4);
  color: #1da1f2;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(29, 161, 242, 0.3), 0 0 20px rgba(29, 161, 242, 0.15);
}

.feed-tab-x-helios:hover {
  background: rgba(29, 161, 242, 0.25);
  border-color: rgba(29, 161, 242, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.5), 0 0 30px rgba(29, 161, 242, 0.25);
}

.feed-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.feed-subtitle {
  font-size: 0.9375rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.5;
}

.btn-refresh,
.btn-clear-cache,
.btn-clear-filter {
  padding: 0.625rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-refresh:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-clear-cache:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-clear-filter:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-refresh.refreshing svg {
  animation: spin 1s linear infinite;
}

.feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: #cbd5e1;
}

.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

.empty-feed {
  text-align: center;
  padding: 5rem 2.5rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.empty-feed-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.empty-feed h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.empty-feed p {
  font-size: 1.0625rem;
  color: #cbd5e1;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .feed-header h2 {
    font-size: 1.5rem;
  }
  
  .empty-feed {
    padding: 3rem 1rem;
  }
}

/* Profile New - Modern & Compact Design */

.profile-new-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
  overflow-y: auto;
}

.profile-new-modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-radius: 12px;
  width: 320px;
  max-width: 90vw;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(249, 115, 22, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 20px;
}

.profile-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(251, 146, 60, 0.08) 100%);
}

.profile-new-header h2 {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.profile-new-close {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  transition: all 0.2s ease;
}

.profile-new-close:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.profile-new-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 10px;
  color: #60a5fa;
}

.profile-new-form {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

/* Avatar Section */
.profile-new-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 6px;
}

.profile-new-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(251, 146, 60, 0.2) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.profile-new-avatar svg {
  color: #f97316;
  width: 26px;
  height: 26px;
}

.profile-new-upload-btn {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.profile-new-upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Form Fields */
.profile-new-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.profile-new-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.profile-new-field input,
.profile-new-field textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 5px;
  padding: 8px 10px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
  resize: none;
}

.profile-new-field input:focus,
.profile-new-field textarea:focus {
  outline: none;
  border-color: #f97316;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.profile-new-field textarea {
  min-height: 40px;
  max-height: 40px;
}

.profile-new-field input::placeholder,
.profile-new-field textarea::placeholder {
  color: #64748b;
}

.profile-new-count {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.65rem;
  color: #64748b;
  pointer-events: none;
}

/* Actions */
.profile-new-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.profile-new-btn {
  flex: 1 1;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.profile-new-btn-cancel {
  background: rgba(71, 85, 105, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.profile-new-btn-cancel:hover:not(:disabled) {
  background: rgba(71, 85, 105, 0.5);
  border-color: #64748b;
}

.profile-new-btn-save {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: white;
  border: none;
}

.profile-new-btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.profile-new-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Username validation */
.profile-new-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-new-input-wrapper input {
  flex: 1 1;
  padding-right: 36px;
}

.profile-new-input-wrapper input.input-error {
  border-color: #ef4444;
}

.profile-new-input-wrapper input.input-success {
  border-color: #10b981;
}

.profile-new-status {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
}

.profile-new-status.checking {
  color: #60a5fa;
}

.profile-new-status.available {
  color: #10b981;
}

.profile-new-status.taken {
  color: #ef4444;
}

.profile-new-feedback {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.profile-new-error {
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 500;
}

.profile-new-success {
  color: #10b981;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Delete Section */
.profile-new-delete-section {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.profile-new-btn-delete {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.profile-new-btn-delete:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.profile-new-confirm {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-new-confirm p {
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.profile-new-confirm-actions {
  display: flex;
  gap: 8px;
}

.profile-new-btn-cancel-small,
.profile-new-btn-delete-confirm {
  flex: 1 1;
  padding: 8px 12px;
  font-size: 0.75rem;
}

.profile-new-btn-cancel-small {
  background: rgba(71, 85, 105, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.profile-new-btn-delete-confirm {
  background: #ef4444;
  border: 1px solid #dc2626;
  color: white;
}

.profile-new-btn-delete-confirm:hover:not(:disabled) {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.spinning {
  animation: spin 1s linear infinite;
}

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

/* Remove scrollbar */
.profile-new-form::-webkit-scrollbar {
  display: none;
}

.profile-new-form {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive */
@media (max-width: 640px) {
  .profile-new-modal {
    width: 90vw;
    max-width: 280px;
  }
  
  .profile-new-header {
    padding: 8px 12px;
  }
  
  .profile-new-form {
    padding: 10px;
  }
  
  .profile-new-avatar {
    width: 38px;
    height: 38px;
  }
}

/* Modern Wallet Modal - Dark Theme */
.wallet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.wallet-modal-modern {
  background: #1a1a1a;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.wallet-modal-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-modal-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.wallet-modal-header-modern h2 {
  flex: 1 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.wallet-modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wallet-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Wallet Info Section */
.wallet-info-section {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem;
}

.wallet-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.info-icon {
  font-size: 1.25rem;
}

.wallet-info-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f97316;
  margin: 0;
}

.wallet-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wallet-info-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.5;
}

.step-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
}

.step-text {
  flex: 1 1;
}

.step-text strong {
  color: #ffffff;
  font-weight: 600;
}

.wallet-info-note {
  margin: 0;
  padding: 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #fb923c;
  text-align: center;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Wallet Warning Section */
.wallet-warning-section {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.wallet-warning-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.warning-icon {
  font-size: 1.5rem;
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.wallet-warning-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ef4444;
  margin: 0;
}

.wallet-warning-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.warning-text {
  margin: 0;
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(239, 68, 68, 0.5);
}

.warning-text strong {
  color: #fecaca;
  font-weight: 700;
}

.wallet-modal-content-modern {
  padding: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

.wallet-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wallet-item-modern:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.wallet-item-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wallet-item-modern.connecting {
  background: linear-gradient(90deg, #242424 0%, #2a2a2a 50%, #242424 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-color: rgba(59, 130, 246, 0.5);
}

.wallet-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-item-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.wallet-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.wallet-item-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.wallet-item-badge.connecting {
  background: #3b82f6;
  animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Connection Error Message */
.wallet-connection-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin: 0 1rem 1rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

.wallet-connection-error .error-icon {
  font-size: 1.25rem;
}

.wallet-connection-error .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1 1;
}

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

/* Scrollbar styling */
.wallet-modal-content-modern::-webkit-scrollbar {
  width: 8px;
}

.wallet-modal-content-modern::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.wallet-modal-content-modern::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.wallet-modal-content-modern::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* Old styles - keeping for compatibility */
.wallet-connect-container {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 24px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.wallet-connect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wallet-connect-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0;
}

.btn-close-wallet {
  padding: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-wallet:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.wallet-connect-description {
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.wallet-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wallet-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.wallet-option-card:hover:not(.unavailable) {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.wallet-option-card.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
}

.wallet-icon-large {
  font-size: 3rem;
  line-height: 1;
}

.wallet-name-large {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  text-align: center;
}

.wallet-status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.25rem;
  color: #ef4444;
  font-weight: 600;
}

.wallet-status-badge.mobile-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.wallet-connect-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.wallet-connect-footer p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.wallet-connect-footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.wallet-connect-footer a:hover {
  color: #8b5cf6;
  text-decoration: underline;
}

/* Loading spinner for connecting state */
.wallet-item-modern.connecting::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Smooth transitions for modal */
.wallet-modal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

.wallet-modal-modern.closing {
  animation: slideDown 0.3s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .wallet-options-grid {
    grid-template-columns: 1fr;
  }
  
  .wallet-connect-container {
    padding: 1.5rem;
  }
  
  .wallet-modal-modern {
    width: 95%;
    max-width: none;
  }
  
  .wallet-connection-error {
    margin: 0 0.5rem 0.5rem 0.5rem;
    padding: 0.75rem 1rem;
  }
}

/* Suggested Users - Galaxy Theme */
.suggested-users {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 111, 0, 0.15) 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
  border: 2px solid rgba(255, 152, 0, 0.4);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  width: 100%;
  max-width: 340px;
  min-width: 340px;
}

.suggested-users::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 111, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.suggested-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.suggested-users-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.star-icon {
  font-size: 1.5rem;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.refresh-btn {
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.refresh-btn:hover:not(:disabled) {
  background: rgba(255, 152, 0, 0.4);
  transform: rotate(180deg);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading State */
.suggested-users-loading {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border: 3px solid rgba(255, 152, 0, 0.2);
  border-top-color: #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.suggested-users-loading p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Error State */
.suggested-users-error {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

.suggested-users-error p {
  color: #ff6b6b;
  margin-bottom: 15px;
}

.suggested-users-error button {
  background: rgba(255, 152, 0, 0.3);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggested-users-error button:hover {
  background: rgba(255, 152, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

/* Empty State */
.suggested-users-empty {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.suggested-users-empty p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
}

.empty-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* User Cards List */
.suggested-users-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

/* Individual User Card */
.suggested-user-card {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 111, 0, 0.1) 100%);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 152, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

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

.suggested-user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
  border-color: rgba(255, 152, 0, 0.6);
}

/* Twinkling Stars Effect */
.twinkling-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  animation: twinkleStars 4s ease-in-out infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes twinkleStars {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Card Shimmer Effect */
.card-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Card Content */
.user-card-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Avatar */
.user-avatar {
  position: relative;
  flex-shrink: 0;
}

.user-avatar img,
.avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 152, 0, 0.5);
}

.avatar-placeholder {
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.avatar-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.4) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* User Info */
.user-info {
  flex: 1 1;
  min-width: 0;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.username {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.high-match-badge {
  font-size: 0.9rem;
  animation: twinkle 2s ease-in-out infinite;
}

.user-bio {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* User Stats from Blockchain */
.user-stats-sidebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.7rem;
  color: #9ca3af;
  margin: 8px 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 152, 0, 0.2);
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
}

.user-stats-sidebar .stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}

.user-stats-sidebar .stat-separator {
  color: rgba(255, 152, 0, 0.4);
  font-weight: 300;
}

/* User Meta */
.user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.reason-tag {
  font-size: 0.75rem;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 152, 0, 0.3);
  white-space: nowrap;
}

.post-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* User Actions */
.user-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Footer */
.suggested-users-footer {
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.see-more-btn {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 111, 0, 0.3) 100%);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
}

.see-more-btn:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.5) 0%, rgba(255, 111, 0, 0.5) 100%);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .suggested-users {
    padding: 15px;
    max-width: 100%;
    min-width: 100%;
  }

  .suggested-users-header h3 {
    font-size: 1.1rem;
  }

  .user-card-content {
    gap: 10px;
  }

  .user-avatar img,
  .avatar-placeholder {
    width: 45px;
    height: 45px;
  }

  .username {
    font-size: 0.95rem;
  }

  .user-bio {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .suggested-users {
    padding: 12px;
    max-width: 100%;
    min-width: 100%;
  }

  .suggested-user-card {
    padding: 12px;
  }

  .user-avatar img,
  .avatar-placeholder {
    width: 40px;
    height: 40px;
  }

  .avatar-placeholder {
    font-size: 1.1rem;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  width: 360px;
  padding-top: 1.5rem;
}

.btn-disconnect-sidebar {
  padding: 1.25rem;
}

/* Users Section */
.online-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.online-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.online-user-item:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.online-user-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.online-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

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

.online-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #1a1f35;
}

.online-status.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.online-status.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.online-user-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.online-user-name {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.online-user-status-text {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 400;
}

.online-user-status-text.online {
  color: #10b981;
}

.online-user-status-text.offline {
  color: #ef4444;
}

.no-users {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  padding: 1rem;
  font-style: italic;
}

.sidebar-section {
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 111, 0, 0.15) 100%);
  border: 2px solid rgba(255, 152, 0, 0.4);
  border-radius: 16px;
  padding: 1.25rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  text-align: center;
}

/* Trending Topics */
.trending-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
}

.trending-item {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-item:hover {
  background: rgba(255, 152, 0, 0.25);
  border-color: rgba(255, 152, 0, 0.6);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.trending-empty {
  padding: 1.5rem;
  text-align: center;
  color: #6b7280;
}

.trending-empty p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.trending-empty span {
  font-size: 0.875rem;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item:hover {
  opacity: 0.8;
}

.trending-tag {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.trending-count {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Suggested Users */
.suggested-users-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
}

.suggested-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.suggested-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255, 152, 0, 0.4);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.suggested-user-info {
  flex: 1 1;
  min-width: 0;
}

.suggested-user-name {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.suggested-user-stats {
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 400;
}

.btn-follow-small {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  border: 2px solid rgba(255, 152, 0, 0.4);
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-follow-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
  border-color: rgba(255, 152, 0, 0.6);
}

@media (max-width: 1200px) {
  .sidebar {
    display: none;
  }
}

.registration-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.registration-modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  border-radius: 12px;
  width: 300px;
  max-width: 80vw;
  max-height: calc(80vh - 30px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 115, 22, 0.2);
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
}

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

.registration-header {
  text-align: center;
  padding: 0.75rem 0.875rem 0.5rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  flex-shrink: 0;
}

.first-time-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 6px;
  color: #f97316;
  font-size: 0.8rem;
  font-weight: 500;
}

.registration-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 50%;
  margin-bottom: 0.25rem;
  color: white;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.registration-header h2 {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.25rem;
}

.registration-subtitle {
  color: #9ca3af;
  font-size: 0.65rem;
  margin: 0;
}

.registration-form {
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1 1;
  min-height: 0;
}

/* Custom Scrollbar for Registration Form */
.registration-form::-webkit-scrollbar {
  width: 6px;
}

.registration-form::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 3px;
}

.registration-form::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.5);
  border-radius: 3px;
}

.registration-form::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.7);
}

/* Profile Picture Section */
.profile-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.profile-picture-preview {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
  cursor: pointer;
  transition: all 0.3s;
}

.profile-picture-preview:hover {
  border-color: rgba(249, 115, 22, 0.7);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

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

.profile-picture-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
}

.picture-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-picture-preview:hover .picture-overlay {
  opacity: 1;
}

.picture-upload-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-picture-button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-picture-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.picture-hint {
  color: #9ca3af;
  font-size: 0.65rem;
  text-align: center;
  margin: 0;
}

.form-group {
  margin-bottom: 0.5rem;
  position: relative;
}

.form-group label {
  display: block;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.required {
  color: #f87171;
}

.form-group input,
.bio-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: inherit;
}

.bio-textarea {
  resize: none;
  min-height: 50px;
  max-height: 60px;
}

.form-group input:focus,
.bio-textarea:focus {
  outline: none;
  border-color: #f97316;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-group input.valid {
  border-color: rgba(34, 197, 94, 0.5);
}

.form-group input.invalid {
  border-color: rgba(239, 68, 68, 0.5);
}

.username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.username-prefix {
  position: absolute;
  left: 0.875rem;
  color: #f97316;
  font-weight: 600;
  font-size: 0.85rem;
  pointer-events: none;
}

.username-input-wrapper input {
  padding-left: 2rem;
  padding-right: 2.5rem;
}

.username-status {
  position: absolute;
  right: 0.875rem;
  color: #f97316;
}

.username-status.valid {
  color: #22c55e;
}

.username-status.invalid {
  color: #ef4444;
}

.username-hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.char-count {
  color: #6b7280;
  font-size: 0.75rem;
}

.hint {
  color: #9ca3af;
  font-size: 0.75rem;
}

.error-message {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 5px;
  color: #d1d5db;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.info-box strong {
  color: #f97316;
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.btn-register,
.btn-login {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-register {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-register:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-login {
  background: rgba(107, 114, 128, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-login:hover:not(:disabled) {
  background: rgba(107, 114, 128, 0.2);
  border-color: rgba(107, 114, 128, 0.5);
}

.btn-register:disabled,
.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

/* Success State */
.registration-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  color: #22c55e;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.registration-success h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.registration-success p {
  color: #9ca3af;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.success-username {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f97316;
  margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .registration-modal {
    width: 95%;
    max-width: none;
  }

  .registration-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .registration-icon {
    width: 64px;
    height: 64px;
  }

  .registration-header h2 {
    font-size: 1.5rem;
  }

  .registration-form {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-skip,
  .btn-register {
    width: 100%;
  }
}

.welcome-back-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.welcome-back-modal {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 25px 80px rgba(34, 197, 94, 0.3);
  animation: slideUp 0.4s ease;
  max-width: 400px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.welcome-icon {
  color: #22c55e;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

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

.welcome-back-modal h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.welcome-username {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.welcome-message {
  color: #9ca3af;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 640px) {
  .welcome-back-modal {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

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

  .welcome-back-modal h2 {
    font-size: 1.5rem;
  }

  .welcome-username {
    font-size: 1.25rem;
  }
}

.welcome-choice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome-choice-modal {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 80px rgba(0, 102, 255, 0.4);
  animation: slideUp 0.4s ease;
  overflow: hidden;
}

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

.welcome-choice-header {
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.welcome-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.welcome-choice-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.welcome-choice-subtitle {
  color: #9ca3af;
  font-size: 0.95rem;
  margin: 0;
}

.welcome-choice-options {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.choice-button {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 102, 255, 0.05);
  border: 2px solid rgba(0, 102, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.choice-button:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.choice-button svg {
  flex-shrink: 0;
  color: #60a5fa;
}

.choice-content {
  flex: 1 1;
}

.choice-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.choice-content p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.choice-button.create:hover {
  border-color: rgba(34, 197, 94, 0.4);
}

.choice-button.create:hover svg {
  color: #22c55e;
}

.choice-button.login:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.welcome-choice-note {
  text-align: center;
  padding: 1rem 2rem 2rem;
  color: #6b7280;
  font-size: 0.8125rem;
  margin: 0;
}

@media (max-width: 640px) {
  .welcome-choice-modal {
    width: 95%;
  }

  .choice-button {
    padding: 1.25rem;
    gap: 1rem;
  }

  .choice-content h3 {
    font-size: 1rem;
  }
}

.login-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-success-container {
  text-align: center;
  padding: 3rem;
  animation: slideUp 0.5s ease-out;
}

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

.success-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.success-icon {
  color: #10b981;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
  animation: checkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 2;
}

@keyframes checkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid #10b981;
  border-radius: 50%;
  animation: circleExpand 0.8s ease-out;
  opacity: 0;
}

@keyframes circleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.success-message {
  font-size: 1.125rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

.success-username {
  color: #60a5fa;
  font-weight: 600;
  background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-loader {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 50%, #60a5fa 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: loadProgress 2.5s ease-out forwards, shimmer 1.5s ease-in-out infinite;
}

@keyframes loadProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

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

/* Particle effects */
.login-success-overlay::before,
.login-success-overlay::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  animation: float 3s ease-in-out infinite;
}

.login-success-overlay::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.login-success-overlay::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.5;
  }
}

.network-switcher-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  border-bottom: 2px solid rgba(239, 68, 68, 0.5);
  padding: 12px 20px;
  z-index: 999;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.network-switcher-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.network-switcher-content svg {
  flex-shrink: 0;
}

.network-switch-btn {
  background: white;
  color: #ef4444;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.network-switch-btn:hover:not(:disabled) {
  background: #fee2e2;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.network-switch-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinning {
  animation: spin 1s linear infinite;
}

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .network-switcher-banner {
    padding: 10px 16px;
  }
  
  .network-switcher-content {
    font-size: 0.8rem;
    gap: 8px;
  }
  
  .network-switcher-content span {
    font-size: 0.75rem;
  }
  
  .network-switch-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}

/* Creative Button Styles - Glowing Effect */

/* CSS Variables for Glow Colors */
:root {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.781);
  --enhanced-glow-color: rgb(231, 206, 255);
  --btn-color: rgb(100, 61, 136);
  --glow-green: rgb(16, 185, 129);
  --glow-green-spread: rgba(16, 185, 129, 0.781);
  --glow-red: rgb(239, 68, 68);
  --glow-red-spread: rgba(239, 68, 68, 0.781);
  --glow-blue: rgb(96, 165, 250);
  --glow-blue-spread: rgba(96, 165, 250, 0.781);
}

/* Primary Button - Gradient with Glow */
.btn-primary,
.btn-post,
.btn-connect {
  position: relative;
  padding: 1em 3em;
  background-color: rgb(100, 61, 136);
  background-color: var(--btn-color);
  border: 0.25em solid rgb(217, 176, 255);
  border: 0.25em solid var(--glow-color);
  border-radius: 1em;
  color: rgb(217, 176, 255);
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  overflow: visible;
  transition: all 0.3s;
  box-shadow: 0 0 0.5em 0.15em rgb(217, 176, 255),
    0 0 2em 0.5em rgba(191, 123, 255, 0.781),
    inset 0 0 0.4em 0.15em rgb(217, 176, 255);
  box-shadow: 0 0 0.5em 0.15em var(--glow-color),
    0 0 2em 0.5em var(--glow-spread-color),
    inset 0 0 0.4em 0.15em var(--glow-color);
  text-shadow: 0 0 0.3em rgb(217, 176, 255);
  text-shadow: 0 0 0.3em var(--glow-color);
}

.btn-primary::after,
.btn-post::after,
.btn-connect::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(191, 123, 255, 0.781);
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.btn-primary:hover,
.btn-post:hover,
.btn-connect:hover {
  color: rgb(100, 61, 136);
  color: var(--btn-color);
  background-color: rgb(217, 176, 255);
  background-color: var(--glow-color);
  box-shadow: 0 0 0.6em 0.2em rgb(217, 176, 255),
    0 0 2.5em 1em rgba(191, 123, 255, 0.781),
    inset 0 0 0.5em 0.2em rgb(217, 176, 255);
  box-shadow: 0 0 0.6em 0.2em var(--glow-color),
    0 0 2.5em 1em var(--glow-spread-color),
    inset 0 0 0.5em 0.2em var(--glow-color);
}

.btn-primary:active,
.btn-post:active,
.btn-connect:active {
  box-shadow: 0 0 0.4em 0.15em rgb(217, 176, 255),
    0 0 1.5em 1em rgba(191, 123, 255, 0.781),
    inset 0 0 0.3em 0.15em rgb(217, 176, 255);
  box-shadow: 0 0 0.4em 0.15em var(--glow-color),
    0 0 1.5em 1em var(--glow-spread-color),
    inset 0 0 0.3em 0.15em var(--glow-color);
}

/* Secondary Button - Outlined with Fill */
.btn-secondary {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #60a5fa;
  border-radius: 12px;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: white;
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

/* Icon Button - Glow Effect */
.btn-icon,
.btn-icon-stack {
  position: relative;
  padding: 0.5rem;
  background-color: rgba(100, 61, 136, 0.3);
  border: 0.15em solid rgb(96, 165, 250);
  border: 0.15em solid var(--glow-blue);
  border-radius: 10px;
  color: rgb(96, 165, 250);
  color: var(--glow-blue);
  cursor: pointer;
  overflow: visible;
  transition: all 0.3s;
  box-shadow: 0 0 0.3em 0.1em rgb(96, 165, 250),
    0 0 1em 0.3em rgba(96, 165, 250, 0.781),
    inset 0 0 0.3em 0.1em rgb(96, 165, 250);
  box-shadow: 0 0 0.3em 0.1em var(--glow-blue),
    0 0 1em 0.3em var(--glow-blue-spread),
    inset 0 0 0.3em 0.1em var(--glow-blue);
}

.btn-icon:hover,
.btn-icon-stack:hover {
  color: rgba(100, 61, 136, 0.9);
  background-color: rgb(96, 165, 250);
  background-color: var(--glow-blue);
  box-shadow: 0 0 0.4em 0.1em rgb(96, 165, 250),
    0 0 1.5em 0.5em rgba(96, 165, 250, 0.781),
    inset 0 0 0.4em 0.1em rgb(96, 165, 250);
  box-shadow: 0 0 0.4em 0.1em var(--glow-blue),
    0 0 1.5em 0.5em var(--glow-blue-spread),
    inset 0 0 0.4em 0.1em var(--glow-blue);
  transform: scale(1.05);
}

.btn-icon:active,
.btn-icon-stack:active {
  box-shadow: 0 0 0.2em 0.1em rgb(96, 165, 250),
    0 0 1em 0.5em rgba(96, 165, 250, 0.781),
    inset 0 0 0.2em 0.1em rgb(96, 165, 250);
  box-shadow: 0 0 0.2em 0.1em var(--glow-blue),
    0 0 1em 0.5em var(--glow-blue-spread),
    inset 0 0 0.2em 0.1em var(--glow-blue);
}

/* Danger Button - Red Glow Effect */
.btn-danger,
.btn-delete,
.btn-delete-post,
.btn-disconnect-stack {
  position: relative;
  padding: 0.75em 1.5em;
  background-color: rgba(100, 61, 61, 0.5);
  border: 0.25em solid rgb(239, 68, 68);
  border: 0.25em solid var(--glow-red);
  border-radius: 1em;
  color: rgb(239, 68, 68);
  color: var(--glow-red);
  font-weight: bold;
  cursor: pointer;
  outline: none;
  overflow: visible;
  transition: all 0.3s;
  box-shadow: 0 0 0.5em 0.15em rgb(239, 68, 68),
    0 0 2em 0.5em rgba(239, 68, 68, 0.781),
    inset 0 0 0.4em 0.15em rgb(239, 68, 68);
  box-shadow: 0 0 0.5em 0.15em var(--glow-red),
    0 0 2em 0.5em var(--glow-red-spread),
    inset 0 0 0.4em 0.15em var(--glow-red);
  text-shadow: 0 0 0.3em rgb(239, 68, 68);
  text-shadow: 0 0 0.3em var(--glow-red);
}

.btn-danger::after,
.btn-delete::after,
.btn-delete-post::after,
.btn-disconnect-stack::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(239, 68, 68, 0.781);
  background-color: var(--glow-red-spread);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.btn-danger:hover,
.btn-delete:hover,
.btn-delete-post:hover,
.btn-disconnect-stack:hover {
  color: rgb(100, 61, 61);
  background-color: rgb(239, 68, 68);
  background-color: var(--glow-red);
  box-shadow: 0 0 0.6em 0.2em rgb(239, 68, 68),
    0 0 2.5em 1em rgba(239, 68, 68, 0.781),
    inset 0 0 0.5em 0.2em rgb(239, 68, 68);
  box-shadow: 0 0 0.6em 0.2em var(--glow-red),
    0 0 2.5em 1em var(--glow-red-spread),
    inset 0 0 0.5em 0.2em var(--glow-red);
}

.btn-danger:active,
.btn-delete:active,
.btn-delete-post:active,
.btn-disconnect-stack:active {
  box-shadow: 0 0 0.4em 0.15em rgb(239, 68, 68),
    0 0 1.5em 1em rgba(239, 68, 68, 0.781),
    inset 0 0 0.3em 0.15em rgb(239, 68, 68);
  box-shadow: 0 0 0.4em 0.15em var(--glow-red),
    0 0 1.5em 1em var(--glow-red-spread),
    inset 0 0 0.3em 0.15em var(--glow-red);
}

/* Success Button - Green Glow */
.btn-success,
.btn-follow {
  position: relative;
  padding: 0.75em 1.5em;
  background-color: rgba(61, 100, 80, 0.5);
  border: 0.25em solid rgb(16, 185, 129);
  border: 0.25em solid var(--glow-green);
  border-radius: 1em;
  color: rgb(16, 185, 129);
  color: var(--glow-green);
  font-weight: bold;
  cursor: pointer;
  outline: none;
  overflow: visible;
  transition: all 0.3s;
  box-shadow: 0 0 0.5em 0.15em rgb(16, 185, 129),
    0 0 2em 0.5em rgba(16, 185, 129, 0.781),
    inset 0 0 0.4em 0.15em rgb(16, 185, 129);
  box-shadow: 0 0 0.5em 0.15em var(--glow-green),
    0 0 2em 0.5em var(--glow-green-spread),
    inset 0 0 0.4em 0.15em var(--glow-green);
  text-shadow: 0 0 0.3em rgb(16, 185, 129);
  text-shadow: 0 0 0.3em var(--glow-green);
}

.btn-success::after,
.btn-follow::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(16, 185, 129, 0.781);
  background-color: var(--glow-green-spread);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.btn-success:hover,
.btn-follow:hover {
  color: rgb(61, 100, 80);
  background-color: rgb(16, 185, 129);
  background-color: var(--glow-green);
  box-shadow: 0 0 0.6em 0.2em rgb(16, 185, 129),
    0 0 2.5em 1em rgba(16, 185, 129, 0.781),
    inset 0 0 0.5em 0.2em rgb(16, 185, 129);
  box-shadow: 0 0 0.6em 0.2em var(--glow-green),
    0 0 2.5em 1em var(--glow-green-spread),
    inset 0 0 0.5em 0.2em var(--glow-green);
}

.btn-success:active,
.btn-follow:active {
  box-shadow: 0 0 0.4em 0.15em rgb(16, 185, 129),
    0 0 1.5em 1em rgba(16, 185, 129, 0.781),
    inset 0 0 0.3em 0.15em rgb(16, 185, 129);
  box-shadow: 0 0 0.4em 0.15em var(--glow-green),
    0 0 1.5em 1em var(--glow-green-spread),
    inset 0 0 0.3em 0.15em var(--glow-green);
}

/* Floating Action Button */
.btn-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
  z-index: 100;
}

.btn-fab:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
}

/* Neon Button */
.btn-neon {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #60a5fa;
  border-radius: 12px;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.btn-neon:hover {
  background: #60a5fa;
  color: #1a1f35;
  box-shadow: 
    0 0 20px rgba(96, 165, 250, 0.6),
    0 0 40px rgba(96, 165, 250, 0.4),
    0 0 60px rgba(96, 165, 250, 0.2);
  text-shadow: none;
}

/* Glass Button */
.btn-glass {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Disabled State */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Glossy Navigation Buttons */
.glossy-nav-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.glossy-nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.9) 100%);
  border: 2px solid transparent;
  border-radius: 50px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Glossy gradient border effect */
.glossy-nav-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.6) 0%,
    rgba(59, 130, 246, 0.6) 50%,
    rgba(16, 185, 129, 0.6) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
          mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Inner glow effect */
.glossy-nav-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 100%);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}

.glossy-nav-button:hover {
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.95) 0%, 
    rgba(51, 65, 85, 0.9) 100%);
  color: #e2e8f0;
  transform: translateX(4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(59, 130, 246, 0.3);
}

.glossy-nav-button:hover::before {
  opacity: 1;
}

/* Active/Selected state */
.glossy-nav-button.active {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.9) 100%);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 20px rgba(139, 92, 246, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.glossy-nav-button.active::before {
  opacity: 1;
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.8) 0%,
    rgba(59, 130, 246, 0.8) 50%,
    rgba(16, 185, 129, 0.8) 100%);
}

.glossy-nav-button.active::after {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 100%);
}

/* Icon styling */
.glossy-nav-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.glossy-nav-button:hover svg {
  transform: scale(1.1);
}

.glossy-nav-button.active svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

/* Text styling */
.glossy-nav-button span {
  flex: 1 1;
  text-align: left;
  letter-spacing: 0.3px;
}

/* Pressed state */
.glossy-nav-button:active {
  transform: translateX(2px) scale(0.98);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Golden/Premium variant (like your first image) */
.glossy-nav-button.golden {
  background: linear-gradient(135deg, 
    rgba(251, 191, 36, 0.2) 0%, 
    rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.glossy-nav-button.golden::before {
  background: linear-gradient(135deg,
    rgba(251, 191, 36, 0.8) 0%,
    rgba(245, 158, 11, 0.8) 50%,
    rgba(217, 119, 6, 0.8) 100%);
}

.glossy-nav-button.golden:hover {
  background: linear-gradient(135deg, 
    rgba(251, 191, 36, 0.3) 0%, 
    rgba(245, 158, 11, 0.3) 100%);
  color: #fcd34d;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 20px rgba(251, 191, 36, 0.4),
    0 6px 20px rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .glossy-nav-button {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
  
  .glossy-nav-button svg {
    width: 18px;
    height: 18px;
  }
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background-image: url(/static/media/unnamed.8fdb6b3dfb8b4feb5b8f.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overscroll-behavior: auto;
}

/* Disconnected State - Only Background */
.disconnected-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease;
}

.connect-prompt {
  text-align: center;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  -webkit-backdrop-filter: blur(30px);
          backdrop-filter: blur(30px);
  border: 2px solid rgba(251, 146, 60, 0.6);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(251, 146, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 480px;
  max-height: 95vh;
  overflow: hidden;
  animation: slideUp 0.6s ease;
  position: relative;
}

.connect-prompt::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.connect-prompt-logo {
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  animation: float 3s ease-in-out infinite;
  transform-origin: center;
  scale: 1;
  filter: drop-shadow(0 10px 30px rgba(251, 146, 60, 0.5));
}

.logo-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 0;
}

.connect-prompt h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.tagline {
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.btn-connect-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 35px rgba(251, 146, 60, 0.4);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-connect-large::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;
}

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

.btn-connect-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 45px rgba(251, 146, 60, 0.6);
}

.btn-connect-large:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-connect-large .wallet-icon {
  width: 20px;
  height: 20px;
}

/* Welcome Info Box */
.welcome-info-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 0.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.welcome-info-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.info-icon-welcome {
  font-size: 1rem;
}

.welcome-info-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f97316;
  margin: 0;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.welcome-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #e5e7eb;
  font-size: 0.75rem;
}

.step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: white;
}

.welcome-step strong {
  color: #ffffff;
}

/* Welcome Warning Box */
.welcome-warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0.75rem;
  text-align: left;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.welcome-warning-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.warning-icon-welcome {
  font-size: 1rem;
  animation: pulse-warning 2s ease-in-out infinite;
}

.welcome-warning-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ef4444;
  margin: 0;
}

.welcome-warnings {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.welcome-warning-text {
  margin: 0;
  color: #fca5a5;
  font-size: 0.7rem;
  line-height: 1.4;
  padding-left: 0.4rem;
  border-left: 2px solid rgba(239, 68, 68, 0.5);
}

.welcome-warning-text strong {
  color: #fecaca;
  font-weight: 700;
}

/* Features Section */
.features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Trending View */
.trending-view {
  width: 100%;
}

.trending-view-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trending-view-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 2rem;
  padding-left: 2.25rem;
}

/* Communities View */
.communities-view {
  width: 100%;
}

.communities-view-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.communities-view-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 2rem;
  padding-left: 2.25rem;
}

/* Communities Modal */
.communities-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.communities-modal {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
  animation: slideUp 0.3s ease;
}

.communities-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.communities-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.communities-modal-close {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.communities-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.1);
}

.communities-modal-subtitle {
  padding: 0 1.5rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  margin: 0.5rem 0 1rem 0;
}

.communities-modal-content {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  max-height: calc(85vh - 140px);
  min-height: 300px;
}

.communities-modal-content::-webkit-scrollbar {
  width: 10px;
}

.communities-modal-content::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 5px;
  margin: 4px 0;
}

.communities-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 5px;
  border: 2px solid rgba(30, 41, 59, 0.5);
}

.communities-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
  border-color: rgba(30, 41, 59, 0.7);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.main-content {
  padding-top: 140px;
  padding-bottom: 2rem;
  flex: 1 1;
  width: 100%;
}

/* No padding when disconnected (no header) */
.app:not(:has(.header)) .main-content {
  padding-top: 2rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-with-sidebar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
}

.main-feed {
  width: 500px;
  flex-shrink: 0;
  margin: 0 auto;
}

.search-results-container {
  width: 100%;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.search-results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.025em;
}

.search-hint {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 1rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #60a5fa;
  border-radius: 8px;
}

/* User Search Results */
.search-users-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.search-posts-section {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.search-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Separator between sections */
.search-users-section::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  margin-top: 2rem;
}

.search-user-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  transition: all 0.2s;
}

.search-user-main {
  display: flex;
  gap: 1rem;
  cursor: pointer;
}

.search-user-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.search-user-main:hover .search-user-name {
  color: #60a5fa;
}

.btn-follow-search {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-follow-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.btn-follow-search.following {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-follow-search.following:hover {
  background: rgba(239, 68, 68, 0.3);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.search-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.search-user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.search-user-info {
  flex: 1 1;
  min-width: 0;
}

.search-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.search-user-address {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0 0 0.5rem 0;
  font-family: monospace;
}

.search-user-bio {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.search-user-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.user-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.user-stat strong {
  color: #f8fafc;
  font-weight: 700;
}

.user-stat-separator {
  color: #475569;
}

.search-posts-section {
  margin-top: 2rem;
}

/* User Profile View */
.user-profile-view {
  width: 100%;
}

.user-profile-header {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.btn-back {
  padding: 0.75rem 1.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.btn-back:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

.user-profile-info-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.user-profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(59, 130, 246, 0.4);
}

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

.user-profile-avatar-placeholder-large {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.user-profile-details {
  flex: 1 1;
}

.user-profile-info-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.75rem 0;
}

.user-profile-bio {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.user-profile-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.profile-stat strong {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.125rem;
}

.profile-stat-separator {
  color: #475569;
}

.btn-follow-profile {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-follow-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-follow-profile.following {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-follow-profile.following:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.user-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-close-search {
  padding: 0.625rem 1.25rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-close-search:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

@media (max-width: 1400px) {
  .container-with-sidebar {
    max-width: 1200px;
  }
}

.right-sidebar-container {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .container-with-sidebar {
    max-width: 800px;
  }
  
  .right-sidebar-container {
    display: none;
  }
}

@media (max-width: 1024px) {
  .container-with-sidebar {
    justify-content: center;
  }
}

.twitter-profile-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #1da1f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.5);
  transition: all 0.3s;
  z-index: 999;
  text-decoration: none;
}

.twitter-profile-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.7);
  background: #1a8cd8;
}

.twitter-profile-button svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.footer {
  background: rgba(17, 24, 39, 0.8);
  border-top: 1px solid rgba(74, 85, 104, 0.3);
  padding: 2rem 0;
  margin-top: 4rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-content p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-links a {
  color: #0066ff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #3385ff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container-with-sidebar {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 1.5rem 0;
  }
  
  .container-with-sidebar {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .footer {
    margin-top: 2rem;
  }
  
  /* Disconnected state mobile */
  .connect-prompt {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .connect-prompt h1 {
    font-size: 2rem;
  }
  
  .connect-prompt p {
    font-size: 1rem;
  }
  
  .connect-prompt-logo {
    scale: 1;
  }
  
  .btn-connect-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Mobile-First Responsive Design */
/* Ensures mobile and desktop have the same functionality and UX */

/* ========================================
   GLOBAL MOBILE OPTIMIZATIONS
   ======================================== */

/* Prevent horizontal scroll on mobile */
* {
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

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

/* Touch-friendly tap targets (minimum 44x44px) */
button, a, input, select, textarea {
  min-height: 44px;
  min-width: 44px;
}

/* ========================================
   MOBILE BREAKPOINTS
   ======================================== */

/* Mobile devices (portrait phones, less than 768px) */
@media (max-width: 767px) {
  
  /* App Container */
  .app-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Main Content Area */
  .main-content {
    padding: 10px !important;
    margin-top: 60px !important; /* Account for fixed header */
  }

  /* Feed */
  .feed-container {
    width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
  }

  /* Posts */
  .post-card {
    margin-bottom: 15px !important;
    border-radius: 12px !important;
  }

  .post-content {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .post-image {
    max-height: 300px !important;
    border-radius: 8px !important;
  }

  /* Header - Mobile Navigation */
  .header {
    padding: 10px 15px !important;
    height: 60px !important;
  }

  .header-logo {
    font-size: 18px !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .header-actions button {
    padding: 8px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Hide desktop-only elements on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Sidebars - Stack vertically on mobile */
  .sidebar-left,
  .sidebar-right {
    display: none !important; /* Hide sidebars on mobile, show in bottom nav instead */
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 0;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-bottom-nav button {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-bottom-nav button.active {
    color: #60a5fa;
  }

  .mobile-bottom-nav button:hover {
    color: #60a5fa;
  }

  /* Modals - Full screen on mobile */
  .modal-overlay {
    padding: 0 !important;
  }

  .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Profile Modal */
  .user-profile-modal {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }

  /* Notifications Panel */
  .notifications-dropdown {
    width: 100% !important;
    height: 100% !important;
  }

  /* Create Post */
  .create-post-container {
    padding: 15px !important;
  }

  .create-post-textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 100px !important;
  }

  /* Comments */
  .comments-section {
    padding: 10px !important;
  }

  .comment-input {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* Search */
  .search-container {
    width: 100% !important;
    padding: 10px !important;
  }

  .search-input {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* User Cards */
  .user-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }

  .user-avatar {
    width: 50px !important;
    height: 50px !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px !important;
    font-size: 15px !important;
    min-height: 44px !important;
  }

  /* Forms */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 12px !important;
    min-height: 44px !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Text */
  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  p {
    font-size: 15px !important;
  }

  /* Spacing */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Add bottom padding to account for mobile nav */
  .main-content {
    padding-bottom: 80px !important;
  }
}

/* Tablet devices (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  
  .sidebar-left {
    width: 200px !important;
  }

  .sidebar-right {
    width: 250px !important;
  }

  .feed-container {
    max-width: 600px !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Desktop devices (larger than 1024px) */
@media (min-width: 1025px) {
  
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-only {
    display: none !important;
  }
}

/* ========================================
   TOUCH OPTIMIZATIONS
   ======================================== */

/* Larger touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  
  button,
  a,
  .clickable {
    min-height: 48px;
    min-width: 48px;
    padding: 12px;
  }

  /* Increase spacing between interactive elements */
  .action-buttons {
    gap: 15px !important;
  }
}

/* ========================================
   LANDSCAPE MODE (Mobile)
   ======================================== */

@media (max-width: 767px) and (orientation: landscape) {
  
  .header {
    height: 50px !important;
  }

  .main-content {
    margin-top: 50px !important;
  }

  .mobile-bottom-nav {
    padding: 5px 0 !important;
  }
}

/* ========================================
   SAFE AREA INSETS (iPhone X+)
   ======================================== */

@supports (padding: max(0px)) {
  
  .header {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .mobile-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .main-content {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}

/* ========================================
   PWA OPTIMIZATIONS
   ======================================== */

/* Standalone mode (installed as PWA) */
@media (display-mode: standalone) {
  
  .header {
    padding-top: 20px; /* Extra padding for status bar */
  }

  .main-content {
    margin-top: 70px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus indicators for keyboard navigation */
*:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  button,
  .card {
    border-width: 2px !important;
  }
}

/* ========================================
   LOADING STATES
   ======================================== */

/* Skeleton loading for better perceived performance */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for smooth animations */
.animated {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

/* Lazy load images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

