/* ============================================
   SOCIAL PANEL - Friends, Guilds, Private Messages
   ============================================ */

/* Inherit variables from social-react.css */

.social-panel-container {
  width: 100%;
  max-width: 500px;
  background: var(--social-bg-card);
  border-radius: 24px;
  border: 1px solid var(--social-border);
  box-shadow: var(--social-shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.social-tabs {
  display: flex;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--social-border);
}

.social-tabs button {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--social-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-tabs button svg {
  width: 18px;
  height: 18px;
}

.social-tabs button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--social-text-main);
}

.social-tabs button.active {
  background: var(--social-bg-hover);
  color: var(--social-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Guild Hub Button - Navigate to dedicated guild page */
.social-tabs button.guild-hub-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  position: relative;
  overflow: hidden;
}

.social-tabs button.guild-hub-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
  border-color: rgba(251, 191, 36, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.social-tabs button.guild-hub-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.15), transparent);
  animation: shimmerBtn 3s infinite;
}

@keyframes shimmerBtn {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Content */
.social-content {
  padding: 24px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--social-border) transparent;
}

.social-content::-webkit-scrollbar {
  width: 6px;
}

.social-content::-webkit-scrollbar-thumb {
  background: var(--social-border);
  border-radius: 3px;
}

/* Friends Panel - Header */
.social-friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.social-friends-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--social-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.social-friends-header h3 svg {
  width: 24px;
  height: 24px;
  color: var(--social-accent);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  color: var(--social-accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--social-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--social-accent-glow);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Add Friend Form */
.social-add-friend {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--social-border);
  border-radius: 16px;
}

.social-add-friend input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--social-text-main);
  font-size: 0.95rem;
}

.social-add-friend input:focus {
  outline: none;
}

.social-add-friend input::placeholder {
  color: var(--social-text-muted);
}

.social-add-friend button {
  padding: 0 24px;
  background: var(--social-accent);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-add-friend button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--social-accent-glow);
}

.social-add-friend button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Friend Requests */
.social-requests-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
}

.social-requests-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--social-accent);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.social-request-item:last-child {
  margin-bottom: 0;
}

.social-request-item:hover {
  border-color: var(--social-accent);
  transform: translateX(4px);
}

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

.social-request-info .username {
  font-size: 1rem;
  font-weight: 600;
  color: var(--social-text-main);
}

.social-request-info .level {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  padding: 2px 6px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
}

.social-request-actions {
  display: flex;
  gap: 8px;
}

.btn-accept {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: #10b981;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept:hover {
  background: #10b981;
  color: white;
  transform: scale(1.05);
}

.btn-accept svg {
  width: 18px;
  height: 18px;
}

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

.btn-reject:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.05);
}

.btn-reject svg {
  width: 18px;
  height: 18px;
}

/* Friends List */
.social-friends-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-friend-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.social-friend-item:hover {
  background: var(--social-bg-hover);
  border-color: var(--social-accent);
  transform: translateY(-2px);
  box-shadow: var(--social-shadow);
}

.social-friend-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6b7280;
  border: 3px solid var(--social-bg-card);
}

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

.social-friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-friend-info .username {
  font-size: 1rem;
  font-weight: 600;
  color: var(--social-text-main);
}

.social-friend-info .level {
  font-size: 0.8rem;
  color: var(--social-text-muted);
}

.social-friend-actions {
  display: flex;
  gap: 8px;
}

/* Empty State */
.social-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--social-text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px dashed var(--social-border);
}

.social-empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* MODALS */
.social-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.social-modal-content {
  width: 100%;
  max-width: 600px;
  background: #0f1115;
  border: 1px solid var(--social-border);
  border-radius: 24px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.social-modal-content.small {
  max-width: 400px;
  min-height: auto;
}

.guild-level-progress {
  margin: 20px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid var(--social-border);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--social-accent), #ec4899);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--social-text-muted);
  font-weight: 500;
}

.donate-input-group {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.donate-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.donate-input:focus {
  border-color: var(--social-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-donate-confirm {
  background: linear-gradient(135deg, var(--social-accent) 0%, #ec4899 100%);
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-donate-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn-admin-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--social-border);
  color: var(--social-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-admin-action.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-admin-action.promote:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.social-modal-header {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--social-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--social-text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-modal-header h3 svg {
  color: var(--social-accent);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--social-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

.social-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%);
}

.social-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-message.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.social-message.theirs {
  align-self: flex-start;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  color: var(--social-text-main);
  border-bottom-left-radius: 4px;
}

.social-message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 6px;
  text-align: right;
}

.social-message-input {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--social-border);
  display: flex;
  gap: 12px;
}

.social-message-input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.social-message-input input:focus {
  outline: none;
  border-color: var(--social-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.social-message-input button {
  background: var(--social-accent);
  color: white;
  border: none;
  border-radius: 12px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.social-message-input button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--social-accent-glow);
}

.social-message-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--social-bg-hover);
}

.btn-mini-action {
  padding: 4px 10px;
  font-size: 0.75rem;
  background: var(--social-accent);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-mini-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.social-modal-body {
  padding: 24px;
}

.modal-description {
  color: var(--social-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--social-border);
  background: transparent;
  color: var(--social-text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .social-panel-container {
    max-width: 100%;
    border-radius: 0;
  }

  .social-content {
    max-height: calc(100vh - 140px);
  }

  .social-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

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

/* ============================================
   GUILD PANEL STYLES
   ============================================ */

.social-guild-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guild-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--social-border);
}

.guild-nav-tabs button {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--social-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.guild-nav-tabs button:hover {
  color: var(--social-text-main);
  background: rgba(255, 255, 255, 0.05);
}

.guild-nav-tabs button.active {
  background: var(--social-bg-hover);
  color: var(--social-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guild-content-area {
  flex: 1;
  overflow-y: auto;
}

/* Guild Leaderboard */
.guild-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 40px 2fr 1fr 1.5fr;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--social-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 2fr 1fr 1.5fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  transition: all 0.2s;
}

.leaderboard-row:hover {
  background: var(--social-bg-hover);
  border-color: var(--social-accent);
  transform: translateX(4px);
}

.leaderboard-row.top-3 {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
  border-color: rgba(99, 102, 241, 0.2);
}

.rank-col {
  font-weight: 700;
  color: var(--social-text-muted);
}

.guild-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--social-text-main);
}

.guild-tag {
  color: var(--social-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.members-col, .wagered-col {
  font-size: 0.9rem;
  color: var(--social-text-muted);
}

.wagered-col {
  color: #10b981;
  font-weight: 600;
}

/* Guild Members */
.social-guild-members {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-guild-members h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: var(--social-text-muted);
  text-transform: uppercase;
}

.social-guild-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 12px;
}

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

.member-info .username {
  font-weight: 600;
  color: var(--social-text-main);
}

.role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.member-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--social-text-muted);
}

/* Guild Overview */
.social-guild-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guild-banner {
  padding: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid var(--social-border);
  border-radius: 16px;
  text-align: center;
}

.guild-identity h1 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guild-identity p {
  margin: 0 0 20px 0;
  color: var(--social-text-muted);
  font-size: 0.95rem;
}

.social-guild-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-guild-stats .stat {
  padding: 16px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.social-guild-stats .stat .label {
  font-size: 0.8rem;
  color: var(--social-text-muted);
  text-transform: uppercase;
}

.social-guild-stats .stat .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--social-text-main);
}

/* Create Guild Form */
.social-create-guild-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 16px;
}

.social-create-guild-form h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--social-text-main);
}

.social-create-guild-form input[type="text"],
.social-create-guild-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  color: var(--social-text-main);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.social-create-guild-form input[type="text"]:focus,
.social-create-guild-form textarea:focus {
  outline: none;
  border-color: var(--social-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.social-create-guild-form textarea {
  min-height: 100px;
  resize: vertical;
}

.social-create-guild-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--social-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.social-create-guild-form button {
  padding: 14px;
  background: var(--social-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.social-create-guild-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--social-accent-glow);
}

/* Guilds List (Browse) */
.social-guilds-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.social-guild-item:hover {
  background: var(--social-bg-hover);
  border-color: var(--social-accent);
  transform: translateY(-2px);
}

.guild-info h5 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--social-text-main);
}

.guild-info p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: var(--social-text-muted);
}

.guild-stats-small {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--social-text-muted);
}

.guild-stats-small span {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-join {
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--social-accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-join:hover {
  background: var(--social-accent);
  color: white;
  transform: translateY(-1px);
}

/* Enhanced Guild Nav Tabs */
.guild-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--social-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.guild-nav-tabs::-webkit-scrollbar {
  display: none;
}

.guild-nav-tabs button {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--social-border);
  border-radius: 10px;
  color: var(--social-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.guild-nav-tabs button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--social-text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.guild-nav-tabs button.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--social-accent);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Guild Stats Enhanced */
.social-guild-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.social-guild-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--social-border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.social-guild-stats .stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--social-accent);
  transform: translateY(-2px);
}

.social-guild-stats .stat .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--social-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-guild-stats .stat .value {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--social-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mini Action Button */
.btn-mini-action {
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: var(--social-accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mini-action:hover {
  background: var(--social-accent);
  color: white;
}

/* Guild Banner */
.guild-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.guild-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--social-gradient);
}

.guild-identity h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--social-text-main);
  margin: 0 0 8px;
}

.guild-identity p {
  color: var(--social-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.guild-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.guild-actions .btn-danger {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: var(--social-danger);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guild-actions .btn-danger:hover {
  background: var(--social-danger);
  color: white;
}

/* Guild Members Enhanced */
.social-guild-members h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--social-text-main);
  margin-bottom: 16px;
}

.social-guild-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--social-bg-card);
  border: 1px solid var(--social-border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.social-guild-member:hover {
  background: var(--social-bg-hover);
  border-color: var(--social-accent);
}

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

.member-info .username {
  font-weight: 600;
  color: var(--social-text-main);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--social-gold);
}

.role-badge svg {
  width: 12px;
  height: 12px;
}

.member-stats {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--social-text-muted);
}

