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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  padding-bottom: 88px;
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 46, 147, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(0, 245, 155, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 230, 0, 0.04) 0%, transparent 50%);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

button:active {
  transform: scale(0.96);
}

/* Header & Funky Navigation */
.nav {
  height: 64px;
  border-bottom: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  background: rgba(7, 8, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}

.logo {
  font-weight: 950;
  font-size: 26px;
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  gap: 2px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  color: #ffffff;
}

.logo span {
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink-glow);
}

.topAvatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #202738, #111520);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 10px var(--yellow-glow);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--yellow);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.topAvatar:active {
  transform: scale(0.92);
}

/* Page Layout */
.page {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* Welcome Area */
.welcome {
  margin: 4px 0 20px;
}

.welcome h1 {
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 6px;
  color: #ffffff;
}

.welcome h1 span {
  color: var(--yellow);
  text-shadow: 0 0 14px var(--yellow-glow);
}

.welcome p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* Funky Search Bar */
.search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: #ffffff;
  padding: 0 14px 0 42px;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search:focus {
  border-color: var(--pink);
  box-shadow: 0 0 15px var(--pink-glow);
  background: var(--panel2);
}

.search::placeholder {
  color: #6a7486;
}

/* Section Title */
.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 14px;
}

.sectiontitle h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sectiontitle a, .sectiontitle button {
  font-size: 12px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast);
}

.sectiontitle a:hover, .sectiontitle button:hover {
  opacity: 0.85;
}

.bottomNote {
  text-align: center;
  color: #6e7787;
  font-size: 11px;
  margin: 40px 0 14px;
  letter-spacing: 0.02em;
}
