:root {
  --accent: #5865f2;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(.3,1.2,.2,1);
}

body {
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem 2rem;
  font-family: 'Montserrat', 'ABC Ginto Nord', sans-serif;
  background: var(--header-bg);
  transition: background var(--transition);
}

.header h1 {
  font-family: 'Montserrat', 'ABC Ginto Nord', sans-serif;
  font-size: 2rem;
  margin: 0;
  letter-spacing: -1px;
}

.theme-switcher select {
  font-size: 1rem;
  padding: 0.4em 0.6em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.profile-edit {
  display: flex;
  gap: 2.5rem;
  padding: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-pic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#profilePic, #previewPic.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow var(--transition);
  background: var(--avatar-bg);
}

#picUpload {
  margin-top: 1em;
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}

.profile-fields label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  gap: 0.3em;
}

.profile-fields input,
.profile-fields textarea {
  font-size: 1rem;
  padding: 0.5em 0.8em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  resize: none;
  transition: background var(--transition), color var(--transition);
}

.profile-actions {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
}

.profile-actions button {
  padding: 0.65em 1.3em;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.profile-actions button:hover {
  background: #404eed;
}

.profile-preview {
  padding: 2rem;
  text-align: center;
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
}

.profile-preview h2 {
  font-family: 'Montserrat', 'ABC Ginto Nord', sans-serif;
  margin-bottom: 1.2rem;
}

.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
  transition: background var(--transition), box-shadow var(--transition);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.name-pronouns {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.5em;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
}

.profile-pronouns {
  font-size: 0.9rem;
  opacity: 0.7;
  background: var(--pronouns-bg);
  color: var(--pronouns-fg);
  padding: 0.15em 0.7em;
  border-radius: 1em;
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
}

.profile-description {
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--loading-bg, #23272a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.loading-spinner {
  border: 5px solid #eee;
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: spin 1.1s cubic-bezier(.3,1.2,.2,1) infinite;
  margin-bottom: 1em;
}

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

.loading-text {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', 'ABC Ginto Nord', sans-serif;
  letter-spacing: 0.5px;
}

.footer-credit {
  text-align: center;
  font-size: 1rem;
  margin: 2em 0 0 0;
  color: var(--text-secondary);
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
}

/* --- Modern Button Styles Module (DO NOT MODIFY) --- */
.modern-btn {
  display: inline-block;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 0.38em 1.2em;
  font-size: 0.97rem;
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  background: var(--modern-btn-bg, #e6e9f0);
  color: var(--modern-btn-fg, #23272a);
  box-shadow: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-right: 0.45em;
}

.modern-btn:hover,
.modern-btn:focus {
  background: var(--modern-btn-bg-hover, #d4d7de);
  color: var(--modern-btn-fg-hover, #23272a);
}

/* Color Variants */
.modern-btn-blue {
  --modern-btn-bg: #e6ebfa;
  --modern-btn-fg: #3c4ccf;
  --modern-btn-bg-hover: #d3defa;
}
.modern-btn-red {
  --modern-btn-bg: #fde7ea;
  --modern-btn-fg: #be2939;
  --modern-btn-bg-hover: #facfd7;
}
.modern-btn-green {
  --modern-btn-bg: #e5f7ed;
  --modern-btn-fg: #20734a;
  --modern-btn-bg-hover: #d0f0dc;
}
.modern-btn-gray {
  --modern-btn-bg: #f2f3f5;
  --modern-btn-fg: #666b7a;
  --modern-btn-bg-hover: #e3e5e8;
}
/* --- End Modern Button Styles Module --- */

/* Discord Button Styles */
.discord-btn {
  border: none;
  border-radius: var(--radius);
  padding: 0.65em 1.3em;
  font-size: 1rem;
  font-family: 'GG Sans', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), filter 0.1s;
  margin-right: 0.5em;
  outline: none;
  display: inline-block;
  position: relative;
}

.discord-btn:active {
  filter: brightness(0.95);
}

.discord-btn-blue {
  background: #5865F2;
  color: #fff;
}
.discord-btn-blue:hover, .discord-btn-blue:focus {
  background: #4752c4;
}

.discord-btn-red {
  background: #ed4245;
  color: #fff;
}
.discord-btn-red:hover, .discord-btn-red:focus {
  background: #b33c3d;
}

.discord-btn-green {
  background: #3ba55d;
  color: #fff;
}
.discord-btn-green:hover, .discord-btn-green:focus {
  background: #2d7d46;
}

.discord-btn-gray {
  background: #4f545c;
  color: #fff;
}
.discord-btn-gray:hover, .discord-btn-gray:focus {
  background: #36393f;
}
