@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg-purple: #0a0a0a;
  --bg-purple-light: #111111;
  --bg-gradient-2: #141414;
  --bg-gradient-3: #1a1a1a;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.02);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --accent-bg-subtle: rgba(124, 88, 204, 0.1);
  --text-main: #f8f8f2;
  --text-muted: #9d7ee0;
  --text-muted-bright: #b49cec;
  --grad-text-start: #7c58cc;
  --grad-text-end: #9d7ee0;
  --grad-title-start: #7c58cc;
  --accent-purple: #7c58cc;
  --accent-purple-dark: #6a47b8;
  --accent-focus-ring: rgba(124, 88, 204, 0.18);
  --heart: #ff4d4d;
  --btn-text: #ffffff;
  --shadow-md: rgba(0, 0, 0, 0.5);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --shadow-xl: rgba(0, 0, 0, 0.7);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.15);
  --input-bg: rgba(255, 255, 255, 0.04);
  --theme-default-border: #7c58cc;
  --theme-default-text: #b49cec;
}

.theme-green {
  --text-muted: #1ad76f;
  --text-muted-bright: #34d399;
  --grad-text-start: #1ad76f;
  --grad-text-end: #34d399;
  --grad-title-start: #1ad76f;
  --accent-purple: #1ad76f;
  --accent-purple-dark: #16b85e;
  --accent-focus-ring: rgba(26, 215, 111, 0.18);
}

.theme-red {
  --text-muted: #f99393;
  --text-muted-bright: #fbaaaa;
  --grad-text-start: #9c0c0c;
  --grad-text-end: #d94e4e;
  --grad-title-start: #a51111;
  --accent-purple: #c74343;
  --accent-purple-dark: #af3636;
  --accent-focus-ring: rgba(199, 67, 67, 0.2);
}

.theme-yellow {
  --text-muted: #f9d993;
  --text-muted-bright: #fbe8aa;
  --grad-text-start: #9c7a0c;
  --grad-text-end: #d9a84e;
  --grad-title-start: #a59011;
  --accent-purple: #c7a043;
  --accent-purple-dark: #af8836;
  --accent-focus-ring: rgba(199, 160, 67, 0.2);
}

.theme-blue {
  --text-muted: #93b8f9;
  --text-muted-bright: #aacafb;
  --grad-text-start: #0c4a9c;
  --grad-text-end: #4e84d9;
  --grad-title-start: #1155a5;
  --accent-purple: #4372c7;
  --accent-purple-dark: #3660af;
  --accent-focus-ring: rgba(67, 114, 199, 0.2);
}

.theme-pink {
  --text-muted: #ff7eb3;
  --text-muted-bright: #ff9ec8;
  --grad-text-start: #ff4080;
  --grad-text-end: #ff7eb3;
  --grad-title-start: #ff4080;
  --accent-purple: #ff7eb3;
  --accent-purple-dark: #e85a9a;
  --accent-focus-ring: rgba(255, 126, 179, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(
    125deg,
    var(--bg-purple) 0%,
    var(--bg-gradient-2) 35%,
    var(--bg-gradient-3) 100%
  );
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 24px;
}

.app-wrapper {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.navbar {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  height: 64px;
  background: var(--bg-purple-light);
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-md);
  position: sticky;
  top: 24px;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.navbar-brand-icon {
  width: 26px;
  height: 30px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--hover-bg);
}

.nav-link.active {
  color: var(--accent-purple);
  background: var(--accent-focus-ring);
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-md);
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 18px;
  padding: 28px;
}

.pfp {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 8px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px var(--shadow-md);
  flex-shrink: 0;
}

.profile-name {
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.8rem);
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.profile-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 420px;
  margin-top: 6px;
}

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tech-item-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}

.tech-item-link:hover .tech-icon {
  filter: brightness(1.2);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tech-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 6px;
  background: color-mix(in srgb, var(--brand-color) 18%, transparent);
  border: 2px solid transparent;
}

.tech-label {
  font-size: 0.7rem;
  color: var(--brand-color);
  font-weight: 500;
  text-align: center;
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  flex: 1;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-md);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: var(--panel-border);
  margin: 4px 0;
  border-radius: 2px;
  flex-shrink: 0;
}

.socials-section {
  padding: 18px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-icon {
  color: var(--text-muted-bright);
  flex-shrink: 0;
}

.section-header .section-title {
  margin-bottom: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.socials-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border: 2px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.social-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-button.email:hover {
  background: transparent;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.social-button.discord:hover {
  background: transparent;
  border-color: #5865f2;
  color: #5865f2;
}

.social-button.github:hover {
  background: transparent;
  border-color: #666;
  color: #a0a0a0;
}

.social-button.linktree:hover {
  background: transparent;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.friends-section {
  padding: 40px;
  text-align: center;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.friend-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 20px;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.friend-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
}

.friend-top {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.friend-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  padding: 6px;
  background: var(--panel-bg);
  flex-shrink: 0;
}

.friend-bullets ul {
  list-style: none;
}

.friend-bullets li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-bullets li::before {
  content: '▸';
  color: var(--text-muted);
  font-size: 1rem;
}

.friend-bullets li strong {
  color: var(--text-muted-bright);
  font-weight: 600;
}

.friend-action {
  border-top: 1px solid var(--panel-border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.friend-action p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  flex: 1;
}

.projects-section {
  padding: 40px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 20px;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
}

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

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border-color: #7c58cc;
  background: rgba(124, 88, 204, 0.1);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-bright);
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.project-card:hover .project-icon {
  background: var(--accent-focus-ring);
  color: var(--accent-purple);
}

.project-card:hover .project-icon-img {
  filter: brightness(1.2);
}

.project-icon-img {
  width: 46px;
  height: 46px;
  display: block;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-actions {
  margin-top: auto;
}

.project-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.project-tag {
  padding: 6px 12px;
  background: var(--glass-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.project-card:hover .project-tag {
  border-color: var(--accent-purple);
  color: var(--text-muted-bright);
}

.gaming-section {
  padding: 40px;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.game-card {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  background: var(--card-bg);
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
}

.game-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-img--minecraft {
  background-image: url('assets/minecraft.jpeg');
}

.game-img--portal {
  background-image: url('assets/portal.png');
}

.game-img--hollowknight {
  background-image: url('assets/hollowknight.jpeg');
}

.game-img--celeste {
  background-image: url('assets/celeste.jpeg');
}

.game-img--zelda {
  background-image: url('assets/zelda.jpeg');
}

.game-img--hades {
  background-image: url('assets/hades.jpeg');
}

.game-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85));
}

.game-info {
  padding: 22px;
  position: relative;
  z-index: 1;
}

.game-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.game-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent-purple);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn-primary:active {
  transform: scale(0.97);
}

.mcsh-section {
  padding: 40px 45px;
}

.mcsh-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mcsh-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.mcsh-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 2px solid transparent;
  padding: 10px;
  background: var(--panel-bg);
  flex-shrink: 0;
}

.mcsh-title .section-title {
  margin-bottom: 10px;
  text-align: left;
}

.mcsh-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

.mcsh-actions {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}

.mcsh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.mcsh-stats .stat-card {
  flex: 1;
  min-width: 130px;
  padding: 14px 20px;
}

.discord-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-color: var(--panel-border);
}

.discord-btn:hover {
  background: transparent;
  border-color: #5865f2;
  color: #5865f2;
}

.trustpilot-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-color: var(--panel-border);
}

.trustpilot-btn:hover {
  background: transparent;
  border-color: #00b67a;
  color: #00b67a;
}

.site-footer {
  width: 100%;
  max-width: 1400px;
  padding: 30px 35px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-md);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-logo {
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.social-link {
  color: var(--text-muted);
  display: flex;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

.social-link svg {
  width: 32px;
  height: 32px;
}

.footer-bottom {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  opacity: 0.8;
}

.text-heart {
  color: var(--heart);
}

.text-code-muted {
  color: var(--text-muted);
}

/* Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--shadow-lg);
  backdrop-filter: blur(10px);
  z-index: 9998;
}

.settings-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--bg-purple-light);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

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

.settings-section {
  margin-bottom: 24px;
}

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

.settings-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--panel-bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-btn--default {
  color: var(--theme-default-text);
}

.theme-btn--default:hover {
  border-color: #7c58cc;
  background: rgba(124, 88, 204, 0.1);
}

.theme-btn--green {
  color: #1ad76f;
}

.theme-btn--green:hover {
  border-color: #1ad76f;
  background: rgba(26, 215, 111, 0.1);
}

.theme-btn--red {
  color: #f99393;
}

.theme-btn--red:hover {
  border-color: #c74343;
  background: rgba(199, 67, 67, 0.1);
}

.theme-btn--yellow {
  color: #f9d993;
}

.theme-btn--yellow:hover {
  border-color: #c7a043;
  background: rgba(199, 160, 67, 0.1);
}

.theme-btn--blue {
  color: #93b8f9;
}

.theme-btn--blue:hover {
  border-color: #4372c7;
  background: rgba(67, 114, 199, 0.1);
}

.theme-btn--pink {
  color: #ff7eb3;
}

.theme-btn--pink:hover {
  border-color: #ff7eb3;
  background: rgba(255, 126, 179, 0.1);
}

.theme-btn.active,
.theme-btn--default.active {
  border-color: var(--theme-default-border);
  color: var(--theme-default-text);
  background: rgba(124, 88, 204, 0.15);
}

.theme-btn--green.active {
  border-color: #1ad76f;
  color: #1ad76f;
  background: rgba(26, 215, 111, 0.15);
}

.theme-btn--red.active {
  border-color: #c74343;
  color: #f99393;
  background: rgba(199, 67, 67, 0.15);
}

.theme-btn--yellow.active {
  border-color: #c7a043;
  color: #f9d993;
  background: rgba(199, 160, 67, 0.15);
}

.theme-btn--blue.active {
  border-color: #4372c7;
  color: #93b8f9;
  background: rgba(67, 114, 199, 0.15);
}

.theme-btn--pink.active {
  border-color: #ff7eb3;
  color: #ff7eb3;
  background: rgba(255, 126, 179, 0.15);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--accent-purple);
  background: var(--hover-bg);
}

.lang-flag {
  font-size: 1.3rem;
  line-height: 1;
}

.lang-name {
  flex: 1;
  text-align: left;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-top: 16px;
  margin-left: 4px;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  color: var(--text-main);
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--accent-purple);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--text-muted);
  border-color: var(--text-muted-bright);
}

.checkmark::after {
  content: '';
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.custom-checkbox .checkmark::after {
  left: 6px;
  top: 2.5px;
  width: 5px;
  height: 9px;
  border: solid var(--text-main);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.sync-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hint-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hint-icon:hover,
.hint-icon:focus {
  color: var(--text-main);
}

.hint-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg);
  color: var(--text-main);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  max-width: 300px;
  white-space: normal;
}

.hint-icon:hover .hint-tooltip,
.hint-icon:focus .hint-tooltip,
.hint-icon.show .hint-tooltip {
  opacity: 1;
}

.sync-checkbox {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .top-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
    gap: 18px;
  }

  .app-wrapper {
    gap: 18px;
  }

  .top-row {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0 16px;
    height: 56px;
    gap: 10px;
  }

  .navbar-brand {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .profile-card {
    padding: 22px;
  }

  .pfp {
    width: 110px;
    height: 110px;
  }

  .profile-name {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .profile-description {
    font-size: 0.85rem;
  }

  .platform-icons {
    max-width: 200px;
  }

  .stats-section {
    padding: 14px;
    gap: 12px;
  }

  .stat-card {
    padding: 10px 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .socials-section {
    padding: 16px 20px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .social-button {
    width: 100%;
    justify-content: center;
  }

  .friend-grid {
    grid-template-columns: 1fr;
  }

  .friends-section {
    padding: 28px 18px;
  }

  .friend-card {
    padding: 22px;
  }

  .friend-top {
    flex-direction: column;
    text-align: center;
  }

  .friend-bullets li {
    justify-content: center;
  }

  .friend-action {
    flex-direction: column;
    text-align: center;
  }

  .projects-section {
    padding: 28px 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 22px;
  }

  .gaming-section {
    padding: 28px 18px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-img {
    height: 200px;
  }

  .mcsh-section {
    padding: 28px 22px;
  }

  .mcsh-content {
    flex-direction: column;
    text-align: center;
  }

  .mcsh-header {
    flex-direction: column;
    text-align: center;
  }

  .mcsh-title .section-title {
    text-align: center;
  }

  .mcsh-actions {
    width: 100%;
    flex-direction: column;
  }

  .mcsh-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 0;
  }
}

.page-404-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.page-404-card {
  max-width: 500px;
  padding: 48px;
  text-align: center;
}

.page-404-title {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(
    147deg,
    var(--grad-text-start) 0%,
    var(--grad-text-end) 82%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}

.lang-toggle {
  background: none;
  border: 2px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lang-toggle:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.e404-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.e404-profile {
  margin-bottom: 24px;
}

.e404-img {
  width: 120px;
  height: 120px;
}

.e404-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 16px;
}

.e404-highlight {
  color: var(--accent-purple);
}

.e404-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.e404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.e404-protip {
  margin-top: 40px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}
