/* Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0f0f12;
  --bg-secondary: #16161a;
  --bg-tertiary: #1e1e24;
  --bg-card: #222228;
  --bg-hover: #2a2a32;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --accent-muted: rgba(88, 101, 242, 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border: rgba(255,255,255,0.06);
  --danger: #ed4245;
  --danger-hover: #c03537;
  --success: #3ba55d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #7b8aff; }

/* ========== Login ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at top, #1a1a22 0%, var(--bg-primary) 50%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  text-align: center;
}

.login-card .form-group {
  margin-bottom: 1.25rem;
}

.login-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.login-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-card input::placeholder {
  color: var(--text-muted);
}

.login-card button {
  width: 100%;
  padding: 0.875rem;
  margin-top: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-card button:hover { background: var(--accent-hover); }

.login-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 1rem 0;
}

.login-discord-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #5865f2;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.2s;
}

.login-discord-btn:hover { background: #4752c4; }

.login-card .error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 1rem;
  text-align: center;
}

.login-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 1rem 0;
}

.login-discord-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #5865f2;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s;
}
.login-discord-btn:hover { background: #4752c4; }

/* ========== Index / Home ========== */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1a22 0%, var(--bg-primary) 50%);
}

.home-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-page p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.home-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}

.home-page .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ========== Dashboard ========== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  flex-shrink: 0;
}

.dashboard-sidebar h1 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-sidebar .channel-btn {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.375rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.dashboard-sidebar .channel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dashboard-sidebar .channel-btn.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 500;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-header {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-wrap {
  position: relative;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 0;
  background: var(--bg-tertiary);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-avatar-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-initial {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 100;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
}

.user-dropdown-item:hover {
  background: var(--bg-hover);
}

.user-dropdown-logout:hover { color: var(--danger); }

.logout-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s;
}

.logout-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.messages-panel {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.messages-panel .messages-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Message bubbles */
.message {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.message:hover { border-color: rgba(255,255,255,0.08); }

.message-header {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.message-header strong { color: var(--accent); font-weight: 500; }

.message-content {
  color: var(--text-primary);
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

/* Mention badges - @kullanıcı ve #kanal */
.mention {
  display: inline;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.9em;
}
.mention-user {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35) 0%, rgba(88, 101, 242, 0.2) 100%);
  color: #a5b4fc;
  border: 1px solid rgba(88, 101, 242, 0.5);
}
.mention-channel {
  background: linear-gradient(135deg, rgba(87, 166, 255, 0.25) 0%, rgba(87, 166, 255, 0.12) 100%);
  color: #7eb8f5;
  border: 1px solid rgba(87, 166, 255, 0.45);
}

/* Embed cards - Discord style */
.embed-card {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  overflow: hidden;
}

.embed-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.embed-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.embed-body { flex: 1; min-width: 0; }

.embed-author {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.embed-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.embed-title a { color: var(--accent); }
.embed-title a:hover { text-decoration: underline; }

.embed-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 0.35rem 0;
}

.embed-field {
  font-size: 0.8125rem;
  margin: 0.5rem 0;
}

.embed-field-name {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.15rem;
}

.embed-field-value {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.embed-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Embed images - proper display */
.embed-img-wrap {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-primary);
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.embed-img-wrap {
  text-decoration: none;
  color: inherit;
}

.embed-img-wrap:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.embed-img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.embed-img:hover { opacity: 0.92; }

/* Message attachments - image grid */
.attachment {
  margin-top: 0.5rem;
}

.attachment a {
  color: var(--accent);
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.msg-attachment-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-primary);
}

.msg-attachment-img:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.attachment-img-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.attachments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.attachments-grid .attachment { margin-top: 0; }

.attachments-grid .msg-attachment-img {
  max-width: 220px;
  max-height: 220px;
  border-radius: var(--radius-md);
}

a.embed-img-wrap {
  text-decoration: none;
  color: inherit;
}

/* Message reactions */
.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  vertical-align: middle;
}

.reaction:hover {
  background: var(--bg-hover);
  border-color: rgba(255,255,255,0.1);
}

.reaction-emoji {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  vertical-align: middle;
}

.reaction-emoji-unicode {
  line-height: 1;
}

.reaction-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Empty / Loading states */
.empty-state, .loading {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
}

/* Link güvenlik modalı */
.link-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.link-modal[hidden] { display: none !important; }

.link-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  cursor: pointer;
}

.link-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.link-modal-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.link-modal-msg {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.link-modal-url {
  font-size: 0.8125rem;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.link-modal-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  cursor: pointer;
}

.link-modal-check input { cursor: pointer; }

.link-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.link-modal-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.link-modal-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.link-modal-cancel:hover { background: var(--bg-hover); }

.link-modal-go {
  background: var(--accent);
  border: none;
  color: #fff;
}

.link-modal-go:hover:not(:disabled) { background: var(--accent-hover); }

.link-modal-go:disabled { opacity: 0.5; cursor: not-allowed; }

a.ext-link { cursor: pointer; text-decoration: underline; }

/* ========== Profil Sayfası ========== */
.profile-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 0%, #1e1a2e 0%, var(--bg-primary) 45%, #0d0d12 100%);
}

.profile-header {
  padding: 0.875rem 1.25rem;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-back {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s, transform 0.15s;
}

.profile-back:hover { color: var(--accent); transform: translateX(-2px); }

.profile-main {
  padding: 1.5rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.profile-card,
.profile-wrapper {
  background: rgba(34, 34, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
}

/* Hero */
.profile-hero {
  position: relative;
  padding: 0 1.5rem 1rem;
}

.profile-banner {
  height: 140px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-size: cover;
  background-position: center;
}

.profile-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.profile-hero-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.25rem;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.profile-avatar-placeholder {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-muted) 0%, rgba(88, 101, 242, 0.25) 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
}

.profile-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0.75rem 0 0.15rem;
  letter-spacing: -0.02em;
}

.profile-username {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.profile-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: linear-gradient(135deg, var(--accent-muted) 0%, rgba(88, 101, 242, 0.2) 100%);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tab bar */
.profile-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1rem;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.profile-tab:hover { color: var(--text-secondary); }

.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-tab .tab-count {
  margin-left: 0.35rem;
  opacity: 0.8;
  font-size: 0.8em;
}

/* Tab panels */
.profile-panels,
.profile-tab-panels {
  padding: 1.25rem 1.5rem;
}

.profile-panel,
.profile-tab-panel {
  display: none;
  animation: profileFadeIn 0.25s ease;
}

.profile-panel.active,
.profile-tab-panel.active { display: block; }

.profile-tab-panel.hidden { display: none !important; }

.profile-panel-content { padding: 0.5rem 0; }

.profile-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

@keyframes profileFadeIn { from { opacity: 0; } to { opacity: 1; } }

.profile-section {
  text-align: left;
}

.profile-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.profile-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}

.profile-dl dt { color: var(--text-muted); font-size: 0.8125rem; }
.profile-dl dd { color: var(--text-primary); font-size: 0.875rem; }
.profile-dl code { background: var(--bg-tertiary); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }

/* Guilds grid - tüm sunucular */
.profile-guilds,
.profile-guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.profile-guilds::-webkit-scrollbar,
.profile-guilds-grid::-webkit-scrollbar { width: 6px; }
.profile-guilds::-webkit-scrollbar-track,
.profile-guilds-grid::-webkit-scrollbar-track { background: transparent; }
.profile-guilds::-webkit-scrollbar-thumb,
.profile-guilds-grid::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

.profile-guild,
.profile-guild-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.profile-guild:hover,
.profile-guild-card:hover {
  background: var(--bg-hover);
  border-color: rgba(88, 101, 242, 0.3);
}

.profile-guild-card .profile-guild-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-guild-card .profile-guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-guild-card .profile-guild-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-guild-owner {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-guild-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-guild-name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.profile-guild-stats {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.guild-no-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Connections - Sunucular ile aynı kart stili */
.profile-connections-list,
.profile-connections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.profile-connections-grid::-webkit-scrollbar { width: 6px; }
.profile-connections-grid::-webkit-scrollbar-track { background: transparent; }
.profile-connections-grid::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

.profile-connection-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.profile-connection-card:hover {
  background: var(--bg-hover);
  border-color: rgba(88, 101, 242, 0.3);
}

.profile-connection-card .profile-connection-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.profile-connection-card .profile-connection-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-connection-card .profile-connection-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-connection-card .profile-connection-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.profile-connection-card .profile-connection-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.15rem 0.4rem;
  background: rgba(59, 165, 93, 0.15);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  width: fit-content;
}

.profile-connection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.conn-type {
  text-transform: capitalize;
  color: var(--text-muted);
  font-size: 0.75rem;
  min-width: 80px;
}

.conn-verified { color: var(--success); font-size: 1rem; }

/* Arkadaşlar placeholder */
.profile-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.profile-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.profile-empty-state p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.profile-meta { color: var(--text-muted); font-size: 0.8125rem; }

/* Responsive - Profil mobil */
@media (max-width: 640px) {
  .profile-main { padding: 1rem 0.75rem; max-width: 100%; }
  .profile-hero { padding: 0 1rem 0.75rem; }
  .profile-banner { height: 100px; }
  .profile-hero-body { flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
  .profile-hero-info { padding-bottom: 0; }
  .profile-avatar-wrap { margin-top: 0; }
  .profile-avatar { width: 80px; height: 80px; border-width: 3px; }
  .profile-avatar-placeholder { width: 72px; height: 72px; font-size: 1.75rem; }
  .profile-name { font-size: 1.125rem; }
  .profile-tabs { padding: 0 0.75rem; margin-top: 1rem; }
  .profile-tab { padding: 0.6rem 0.75rem; font-size: 0.8125rem; }
  .profile-panels,
  .profile-tab-panels { padding: 1rem 1rem; }
  .profile-guilds,
  .profile-guilds-grid,
  .profile-connections-grid {
    grid-template-columns: 1fr;
    max-height: 320px;
  }
  .profile-guild-card,
  .profile-connection-card { padding: 0.75rem 1rem; }
}

@media (max-width: 768px) {
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  .dashboard-sidebar h1 { margin-bottom: 0; padding-bottom: 0; border: none; margin-right: auto; }
  .dashboard-sidebar .channel-btn { margin-bottom: 0; flex: 1 1 auto; min-width: 120px; }
}
