/* ============================================
   SOCIAL HUB - Clean Premium Design
   ============================================ */

:root {
  --sh-bg: #050507;
  --sh-bg-card: #0c0e14;
  --sh-bg-elevated: #12151e;
  --sh-bg-hover: #1a1e2a;
  
  --sh-green: #5bffb2;
  --sh-green-dim: rgba(91, 255, 178, 0.15);
  --sh-green-glow: rgba(91, 255, 178, 0.4);
  
  --sh-purple: #8b5cf6;
  --sh-purple-dim: rgba(139, 92, 246, 0.15);
  
  --sh-gold: #fbbf24;
  --sh-gold-dim: rgba(251, 191, 36, 0.15);
  
  --sh-red: #ef4444;
  --sh-red-dim: rgba(239, 68, 68, 0.15);
  
  --sh-text: #f8fafc;
  --sh-text-secondary: #94a3b8;
  --sh-text-muted: #64748b;
  
  --sh-border: rgba(255, 255, 255, 0.08);
  --sh-border-light: rgba(255, 255, 255, 0.12);
  
  --sh-radius: 12px;
  --sh-radius-lg: 20px;
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  background: var(--sh-bg);
  color: var(--sh-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

/* Loading */
.sh-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--sh-text-muted);
}

.sh-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sh-border);
  border-top-color: var(--sh-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Main Container */
.social-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 32px 24px;
}

/* ============================================
   HEADER
   ============================================ */
.sh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sh-border);
}

.sh-header-content {
  flex: 1;
}

.sh-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--sh-text);
}

.sh-title-icon {
  width: 32px;
  height: 32px;
  color: var(--sh-green);
}

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

.sh-subtitle {
  color: var(--sh-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.sh-quick-stats {
  display: flex;
  gap: 24px;
}

.sh-stat {
  text-align: center;
  padding: 12px 20px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
}

.sh-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sh-text);
}

.sh-stat-label {
  font-size: 0.75rem;
  color: var(--sh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sh-stat.guild {
  border-color: var(--sh-purple);
  background: var(--sh-purple-dim);
}

/* ============================================
   NAVIGATION
   ============================================ */
.sh-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--sh-bg-card);
  padding: 6px;
  border-radius: var(--sh-radius);
  border: 1px solid var(--sh-border);
}

.sh-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--sh-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

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

.sh-nav-btn:hover {
  background: var(--sh-bg-hover);
  color: var(--sh-text);
}

.sh-nav-btn.active {
  background: var(--sh-green-dim);
  color: var(--sh-green);
}

.sh-nav-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--sh-red);
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.sh-main {
  min-height: 400px;
}

/* ============================================
   CARDS
   ============================================ */
.sh-card {
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-lg);
  overflow: hidden;
}

.sh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sh-border);
}

.sh-card-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--sh-text);
}

.sh-card-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--sh-green);
}

.sh-card-count {
  font-size: 0.8rem;
  padding: 2px 8px;
  background: var(--sh-green-dim);
  color: var(--sh-green);
  border-radius: 10px;
}

.sh-card-body {
  padding: 20px;
}

.sh-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--sh-border);
  color: var(--sh-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-card-action:hover {
  background: var(--sh-bg-hover);
  color: var(--sh-green);
}

.sh-card-action svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   OVERVIEW GRID
   ============================================ */
.sh-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .sh-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Alert */
.sh-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--sh-purple-dim) 0%, transparent 100%);
  border: 1px solid var(--sh-purple);
  border-radius: var(--sh-radius);
  margin-bottom: 24px;
}

.sh-alert-icon {
  width: 40px;
  height: 40px;
  background: var(--sh-purple-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-purple);
}

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

.sh-alert-content {
  flex: 1;
}

.sh-alert-content strong {
  display: block;
  margin-bottom: 2px;
}

.sh-alert-content p {
  margin: 0;
  color: var(--sh-text-secondary);
  font-size: 0.85rem;
}

.sh-alert-btn {
  padding: 10px 20px;
  background: var(--sh-purple);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-alert-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ============================================
   FRIENDS MINI LIST
   ============================================ */
.sh-friend-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sh-friend-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--sh-bg-elevated);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-friend-mini:hover {
  background: var(--sh-bg-hover);
}

.sh-see-more {
  padding: 8px 12px;
  background: var(--sh-green-dim);
  border: none;
  border-radius: 8px;
  color: var(--sh-green);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* ============================================
   AVATARS
   ============================================ */
.sh-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  position: relative;
  flex-shrink: 0;
}

.sh-avatar.online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--sh-green);
  border: 2px solid var(--sh-bg-card);
  border-radius: 50%;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.sh-empty {
  text-align: center;
  padding: 48px 24px;
}

.sh-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--sh-text-muted);
  opacity: 0.4;
}

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

.sh-empty h4 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: var(--sh-text);
}

.sh-empty p {
  margin: 0 0 20px 0;
  color: var(--sh-text-muted);
}

.sh-empty-mini {
  text-align: center;
  padding: 16px;
  color: var(--sh-text-muted);
  font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.sh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--sh-green);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--sh-green-glow);
}

.sh-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sh-btn-primary svg {
  width: 16px;
  height: 16px;
}

.sh-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--sh-bg-elevated);
  border: 1px solid var(--sh-border-light);
  border-radius: 8px;
  color: var(--sh-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-secondary:hover {
  background: var(--sh-bg-hover);
  border-color: var(--sh-green);
}

.sh-btn-secondary svg {
  width: 16px;
  height: 16px;
}

.sh-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--sh-red-dim);
  border: 1px solid var(--sh-red);
  border-radius: 8px;
  color: var(--sh-red);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-danger:hover {
  background: var(--sh-red);
  color: white;
}

.sh-btn-danger svg {
  width: 16px;
  height: 16px;
}

.sh-btn-chat {
  width: 40px;
  height: 40px;
  background: var(--sh-green-dim);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-chat:hover {
  background: var(--sh-green);
  color: #000;
}

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

.sh-btn-accept {
  width: 36px;
  height: 36px;
  background: var(--sh-green-dim);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-accept:hover {
  background: var(--sh-green);
  color: #000;
}

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

.sh-btn-reject {
  width: 36px;
  height: 36px;
  background: var(--sh-red-dim);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-red);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-btn-reject:hover {
  background: var(--sh-red);
  color: white;
}

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

/* ============================================
   SECTIONS
   ============================================ */
.sh-section {
  margin-bottom: 32px;
}

.sh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sh-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--sh-text);
}

.sh-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--sh-green);
}

.sh-count {
  font-size: 0.8rem;
  padding: 2px 10px;
  background: var(--sh-bg-elevated);
  border-radius: 10px;
  color: var(--sh-text-secondary);
}

/* ============================================
   FRIENDS GRID
   ============================================ */
.sh-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

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

.sh-friend-card:hover {
  border-color: var(--sh-border-light);
  background: var(--sh-bg-elevated);
}

.sh-friend-info {
  flex: 1;
  min-width: 0;
}

.sh-friend-name {
  display: block;
  font-weight: 600;
  color: var(--sh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-friend-status {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
}

/* ============================================
   REQUESTS LIST
   ============================================ */
.sh-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-request-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sh-purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--sh-radius);
}

.sh-request-info {
  flex: 1;
}

.sh-request-name {
  display: block;
  font-weight: 600;
  color: var(--sh-text);
}

.sh-request-time {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
}

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

/* ============================================
   SEARCH
   ============================================ */
.sh-search-box {
  position: relative;
  margin-bottom: 20px;
}

.sh-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--sh-text-muted);
}

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

.sh-search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  color: var(--sh-text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sh-search-input:focus {
  outline: none;
  border-color: var(--sh-green);
  box-shadow: 0 0 0 3px var(--sh-green-dim);
}

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

.sh-search-hint {
  text-align: center;
  color: var(--sh-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.sh-search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
}

.sh-result-info {
  flex: 1;
}

.sh-result-name {
  display: block;
  font-weight: 600;
  color: var(--sh-text);
}

.sh-result-level {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
}

.sh-result-action {
  display: flex;
  align-items: center;
}

.sh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.sh-badge.success {
  background: var(--sh-green-dim);
  color: var(--sh-green);
}

.sh-badge.pending {
  background: var(--sh-gold-dim);
  color: var(--sh-gold);
}

/* ============================================
   GUILD SECTION
   ============================================ */
.sh-guild-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-lg);
}

.sh-guild-banner-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-guild-icon-large {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.sh-guild-info {
  flex: 1;
}

.sh-guild-title {
  font-size: 1.5rem;
  margin: 0 0 4px 0;
}

.sh-guild-desc {
  margin: 0;
  color: var(--sh-text-muted);
}

.sh-guild-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .sh-guild-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sh-stat-card {
  text-align: center;
  padding: 20px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
}

.sh-stat-card .sh-stat-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--sh-green);
}

.sh-stat-card .sh-stat-icon svg {
  width: 100%;
  height: 100%;
}

.sh-stat-card .sh-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.sh-stat-card .sh-stat-label {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
  margin-top: 4px;
}

.sh-donate-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.sh-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--sh-bg-elevated);
  border: 1px solid var(--sh-border);
  border-radius: 8px;
  color: var(--sh-text);
  font-size: 1rem;
}

.sh-input:focus {
  outline: none;
  border-color: var(--sh-green);
}

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

/* Guild Preview Card */
.sh-guild-preview {
  text-align: center;
}

.sh-guild-banner {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-guild-icon {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.sh-guild-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.sh-guild-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sh-guild-stat {
  text-align: center;
}

.sh-guild-stat span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

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

/* Guild List */
.sh-guild-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.sh-guild-card:hover {
  border-color: var(--sh-border-light);
}

.sh-guild-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.sh-guild-card-info {
  flex: 1;
}

.sh-guild-card-info h4 {
  margin: 0 0 2px 0;
  font-size: 1rem;
}

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

/* Quick Actions */
.sh-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sh-bg-elevated);
  border: 1px solid var(--sh-border);
  border-radius: 10px;
  color: var(--sh-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sh-action-btn:hover {
  background: var(--sh-bg-hover);
  border-color: var(--sh-green);
}

.sh-action-btn svg {
  width: 20px;
  height: 20px;
  color: var(--sh-green);
}

/* ============================================
   MODALS
   ============================================ */
.sh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.sh-modal {
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.sh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--sh-border);
}

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

.sh-modal-close {
  width: 32px;
  height: 32px;
  background: var(--sh-bg-elevated);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-text-muted);
  cursor: pointer;
}

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

.sh-modal-close svg {
  width: 18px;
  height: 18px;
}

.sh-modal-body {
  padding: 20px;
}

.sh-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--sh-text-secondary);
}

.sh-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--sh-text-muted);
}

.sh-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--sh-border);
  background: var(--sh-bg-elevated);
}

/* ============================================
   CHAT MODAL
   ============================================ */
.sh-chat-modal {
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-lg);
  width: 100%;
  max-width: 450px;
  height: 70vh;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sh-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sh-border);
}

.sh-chat-title {
  flex: 1;
}

.sh-chat-title h3 {
  margin: 0;
  font-size: 1rem;
}

.sh-chat-title span {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
}

.sh-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-text-muted);
}

.sh-chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
}

.sh-chat-msg.mine {
  align-self: flex-end;
  background: var(--sh-green);
  color: #000;
}

.sh-chat-msg.theirs {
  align-self: flex-start;
  background: var(--sh-bg-elevated);
  border: 1px solid var(--sh-border);
}

.sh-chat-msg-content {
  font-size: 0.9rem;
  word-break: break-word;
}

.sh-chat-msg-time {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.7;
}

.sh-chat-input {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--sh-border);
  background: var(--sh-bg-elevated);
}

.sh-chat-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--sh-bg-card);
  border: 1px solid var(--sh-border);
  border-radius: 8px;
  color: var(--sh-text);
  font-size: 0.9rem;
}

.sh-chat-input input:focus {
  outline: none;
  border-color: var(--sh-green);
}

.sh-chat-input button {
  width: 44px;
  height: 44px;
  background: var(--sh-green);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sh-chat-input button:hover:not(:disabled) {
  transform: scale(1.05);
}

.sh-chat-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sh-chat-input button svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .sh-header {
    flex-direction: column;
    text-align: center;
  }
  
  .sh-quick-stats {
    justify-content: center;
  }
  
  .sh-nav {
    overflow-x: auto;
  }
  
  .sh-nav-btn span {
    display: none;
  }
  
  .sh-nav-btn {
    padding: 12px 16px;
  }
  
  .sh-friends-grid {
    grid-template-columns: 1fr;
  }
  
  .sh-guild-header {
    flex-direction: column;
    text-align: center;
  }
  
  .sh-guild-actions {
    flex-direction: column;
  }
}

/* ============================================
   GUILD CREATION CTA
   ============================================ */
.sh-create-guild-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(91, 255, 178, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--sh-radius-lg);
  margin-bottom: 32px;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.cta-icon svg {
  width: 28px;
  height: 28px;
}

.cta-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  color: var(--sh-text);
}

.cta-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sh-text-secondary);
}

.sh-btn-create-guild {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--sh-purple) 0%, var(--sh-green) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.sh-btn-create-guild:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.sh-btn-create-guild svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .sh-create-guild-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .cta-content {
    flex-direction: column;
  }
  
  .sh-btn-create-guild {
    width: 100%;
    justify-content: center;
  }
}

