@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --gs-bg: #100a0e;
  --gs-box: #1c121a;
  --gs-header: #241621;
  --gs-accent: #f8c8dc;
  --gs-border: #3a2430;
  --gs-text: #f0e2e8;
  --gs-text-muted: #a38491;
  --gs-radius: 2px;
}

[data-theme="classic"] {
  --gs-bg: #100a0e;
  --gs-box: #1c121a;
  --gs-header: #241621;
  --gs-accent: #f8c8dc;
  --gs-border: #3a2430;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(248, 200, 220, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(248, 200, 220, 0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(248, 200, 220, 0.3), 0 0 20px rgba(248, 200, 220, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(248, 200, 220, 0.6), 0 0 40px rgba(248, 200, 220, 0.2);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-in {
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.section-card {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(248, 200, 220, 0.05), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.section-card:nth-child(1) {
  animation-delay: 0.1s;
}

.section-card:nth-child(2) {
  animation-delay: 0.2s;
}

.section-card:nth-child(3) {
  animation-delay: 0.3s;
}

.section-card:nth-child(4) {
  animation-delay: 0.4s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  background: linear-gradient(135deg, #100a0e 0%, #1c121a 50%, #100a0e 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--gs-text);
  min-height: 100%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background-color: var(--gs-bg);
  color: var(--gs-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.select-none {
  -webkit-user-select: none;
  user-select: none;
}

::selection {
  background-color: var(--gs-accent);
  color: #000;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
}


.page {
  display: flex;
  min-height: 100dvh;
  min-height: 100%;
  width: 100%;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--gs-bg);
  color: var(--gs-text);
  position: relative;
}


.gs-box {
  background: var(--gs-box);
  border: 1px solid var(--gs-border);
  background-image: linear-gradient(rgba(255, 255, 255, 0.02), transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gs-box-header {
  background: var(--gs-header);
  border-bottom: 1px solid var(--gs-border);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03), transparent);
  padding: 0.5rem 1rem;
}


.header {
  margin: 0.5rem 0.5rem 0;
  width: calc(100% - 1rem);
  min-width: 0;
  max-width: 72rem;
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(248, 200, 220, 0.08);
  background: linear-gradient(135deg, rgba(30, 20, 26, 0.8) 0%, rgba(38, 24, 32, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header:hover {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(248, 200, 220, 0.12), 0 0 30px rgba(248, 200, 220, 0.08);
}

@media (min-width: 640px) {
  .header {
    margin: 1rem auto 0;
    width: 100%;
  }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.75rem 0.75rem;
}

@media (min-width: 640px) {
  .header-top {
    padding: 1.25rem 1.5rem 1.25rem 1rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--gs-text);
  text-transform: uppercase;
  cursor: default;
  position: relative;
  transition: all 0.3s ease;
}

.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(248, 200, 220, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.logo:hover::before {
  opacity: 1;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(248, 200, 220, 0.5);
}

@media (min-width: 640px) {
  .logo {
    font-size: 1.875rem;
  }
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 1rem;
  }
}

.auth-group {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--gs-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gs-text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(248, 200, 220, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-btn:hover::before {
  left: 100%;
}

@media (min-width: 640px) {
  .auth-btn {
    padding: 0.5rem 1rem;
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gs-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 200, 220, 0.2);
}

.auth-btn-border {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.header-divider {
  display: none;
  height: 1.25rem;
  width: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .header-divider {
    display: block;
  }
}

.discord-link {
  flex-shrink: 0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem;
  transition: color 0.2s;
}

@media (min-width: 640px) {
  .discord-link {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

.discord-link:hover {
  color: var(--gs-accent);
  animation: glow 2s ease-in-out infinite;
}


.nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gs-border);
}

@media (min-width: 640px) {
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.mobile-nav-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.625rem 0.75rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@media (min-width: 640px) {
  .nav-links {
    gap: 2.5rem;
    padding: 0 0 0 1rem;
    font-size: 13px;
    letter-spacing: 0.15em;
  }
}

.nav-link {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: all 0.3s;
  color: var(--gs-text-muted);
}

.nav-link:hover {
  color: var(--gs-accent);
  transform: translateY(-2px);
}

.nav-link-active {
  color: var(--gs-accent);
  letter-spacing: 0.1em;
}

@media (min-width: 640px) {
  .nav-link-active {
    transform: scale(1.1);
    letter-spacing: 0.15em;
  }
}

.nav-icons {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  border-top: 1px solid var(--gs-border);
  background: var(--gs-header);
  padding: 0.375rem 0.75rem;
}

@media (min-width: 640px) {
  .nav-icons {
    gap: 0.25rem;
    border-top: none;
    background: transparent;
    padding: 0 1.5rem 0 0;
  }
}


.main {
  margin: 0.75rem auto 0;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  padding: 0 0.75rem;
  transition: all 0.5s;
  max-width: 72rem;
  padding-bottom: 1rem;
}

@media (min-width: 640px) {
  .main {
    margin-top: 1rem;
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .main {
    padding: 0 1.5rem;
  }
}

.main-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sections {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.section-card {
  overflow: hidden;
  border: 1px solid var(--gs-border);
  background: linear-gradient(135deg, rgba(30, 20, 26, 0.6) 0%, rgba(38, 24, 32, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(248, 200, 220, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(248, 200, 220, 0.15), 0 0 30px rgba(248, 200, 220, 0.1);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  border-bottom: 1px solid rgba(58, 36, 48, 0.5);
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-header {
    font-size: 12px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.section-title {
  color: var(--gs-text);
  font-weight: 700;
}

.section-items {
  display: flex;
  flex-direction: column;
}

.section-items > * + * {
  border-top: 1px solid rgba(58, 36, 48, 0.3);
}

.section-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  background: linear-gradient(90deg, transparent 0%, transparent 100%);
}

.section-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gs-accent), rgba(248, 200, 220, 0.3));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.section-item:hover::before {
  transform: scaleY(1);
}

@media (min-width: 640px) {
  .section-item {
    flex-direction: row;
    align-items: center;
  }
}

.section-item:hover {
  background: linear-gradient(90deg, rgba(248, 200, 220, 0.15) 0%, rgba(248, 200, 220, 0.05) 50%, transparent 100%);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(248, 200, 220, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-item-content {
  flex: 1;
  min-width: 0;
}

.section-item-title {
  font-size: 1.125rem;
  color: var(--gs-text);
  font-weight: 400;
  transition: all 0.3s;
}

.section-item:hover .section-item-title {
  color: var(--gs-accent);
  transform: translateX(4px);
}

.section-item-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gs-text-muted);
  transition: all 0.3s;
}

.section-item:hover .section-item-desc {
  color: var(--gs-text);
  transform: translateX(4px);
}

.section-item-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--gs-border);
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .section-item-meta {
    width: auto;
    justify-content: flex-start;
    gap: 1.25rem;
    border-top: none;
    padding-top: 0;
  }
}

.post-count {
  text-align: left;
  font-size: 0.875rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.post-count-num {
  color: var(--gs-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.section-item:hover .post-count-num {
  color: var(--gs-accent);
}

.post-count-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gs-text-muted);
  font-weight: 900;
}

.meta-divider {
  display: none;
  height: 2.25rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .meta-divider {
    display: block;
  }
}

.meta-activity {
  display: none;
  min-width: 9rem;
  max-width: 11rem;
  text-align: right;
}

@media (min-width: 640px) {
  .meta-activity {
    display: block;
  }
}

.meta-activity span {
  font-size: 10px;
  color: var(--gs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.chevron {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}

.section-item:hover .chevron {
  color: var(--gs-accent);
}


.dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.dropdown-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gs-accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-toggle:hover::before {
  transform: scaleY(1);
}

.dropdown-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown-content.open {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}


.footer {
  margin: 2rem auto 1.5rem;
  max-width: 72rem;
  padding: 0 1rem;
  transition: all 0.3s;
}


.sidebar-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 20rem;
  margin: 0 auto;
}


.dashboard-square {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-square {
    aspect-ratio: 1 / 1;
    width: min(100vw, 100dvh);
    height: min(100vw, 100dvh);
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0 auto;
  }

  .sidebar-layout {
    position: static;
    transform: none;
    max-width: 20rem;
  }
}


.dashboard-username {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gs-text);
  padding: 0.5rem 0.75rem;
}

.dashboard-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(248, 200, 220, 0.15);
  color: var(--gs-accent);
  border: 1px solid rgba(248, 200, 220, 0.3);
  box-shadow: 0 0 10px rgba(248, 200, 220, 0.2);
}

.dashboard-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--gs-text-muted);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-icon-btn:hover {
  color: var(--gs-accent);
  background: rgba(248, 200, 220, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 200, 220, 0.2);
}

.dashboard-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gs-text-muted);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-copy-btn:hover {
  color: var(--gs-accent);
  background: rgba(248, 200, 220, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(248, 200, 220, 0.3);
}

.dashboard-license-key {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--gs-text-muted);
  filter: blur(4px);
  transition: filter 0.2s, color 0.2s;
  user-select: none;
}

.dashboard-license-key:hover {
  filter: none;
  color: var(--gs-accent);
  text-shadow: 0 0 10px rgba(248, 200, 220, 0.5);
}

@media (min-width: 640px) {
  .footer {
    padding: 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-text {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gs-text-muted);
}


.discord-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 22rem;
  padding: 1rem 1.25rem;
  background: var(--gs-box);
  border: 1px solid var(--gs-border);
  background-image: linear-gradient(rgba(255, 255, 255, 0.02), transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--gs-radius);
  animation: toast-in 0.4s ease-out;
}

.discord-toast.hidden {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem;
  color: var(--gs-text-muted);
  transition: color 0.2s;
  line-height: 0;
}

.toast-close:hover {
  color: var(--gs-text);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--gs-border);
  background: var(--gs-header);
  color: var(--gs-text-muted);
}

.toast-body {
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

.toast-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gs-text-muted);
  margin-bottom: 0.375rem;
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--gs-text);
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.toast-link {
  font-size: 0.8125rem;
  color: var(--gs-accent);
  text-decoration: underline;
  word-break: break-all;
}

.toast-link:hover {
  opacity: 0.85;
}

@media (max-width: 639px) {
  .gs-box.header {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  .discord-toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}
