:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1419;
  --bg-card: rgba(15, 20, 30, 0.95);
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.2);
  --accent-strong: #8b5cf6;
  --text: #ffffff;
  --text-muted: #b0b8c4;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --discord: #6366f1;
  --danger: #f97373;
  --green: #a855f7;
  --green-soft: rgba(168, 85, 247, 0.2);
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0a0e1a;
  color: var(--text);
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0, transparent 50%),
    url("background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* NAVBAR */

.nav {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  width: auto;
  padding: 0.65rem 0.8rem 0.65rem 1.2rem;
  background: rgba(4, 11, 33, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.85);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, var(--accent), var(--accent-strong));
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.9);
}

.logo-image {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1rem;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 600;
}

.nav-links a {
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  position: relative;
  color: var(--text);
  opacity: 0.82;
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-links a.active {
  color: #ffffff;
  opacity: 1;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #e6be6d, #8ac2ff);
  transform: scaleX(1);
  border-radius: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #e6be6d, #8ac2ff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 4px;
}

.nav-discord {
  font-size: 0.95rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(180deg, #53df64, #26a53f);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.1s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-discord:hover {
  background: linear-gradient(180deg, #62e872, #2db247);
  transform: translateY(-1px);
}

/* HERO */

.hero {
  position: relative;
  padding: 7.8rem 1.5rem 3.8rem;
  isolation: isolate;
  overflow: visible;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.2) 0, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15) 0, transparent 50%),
    url("background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.28;
  z-index: -1;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding-bottom: 0.6rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-logo-image {
  width: min(420px, 72vw);
  margin-top: 0.3rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
  }
  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 16px 40px rgba(24, 138, 255, 0.4));
  }
}

.hero-subtitle {
  display: none;
}

.hero-pill {
  display: none;
}

.ip-banner {
  margin-top: 0.25rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(3, 8, 29, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.ip-text-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ip-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34d34f;
  box-shadow: 0 0 14px rgba(52, 211, 79, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.ip-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2ef252;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Outfit", system-ui, sans-serif;
}

.ip-value {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.mode-cards {
  width: 100%;
  max-width: 980px;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.mode-card {
  background: rgba(14, 22, 53, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 1.05rem 1rem 0.95rem;
  min-height: 176px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}

.mode-card h3 {
  margin: 0;
  font-size: 1.55rem;
  color: #d6e4ff;
  font-family: "Outfit", system-ui, sans-serif;
}

.mode-card p {
  margin: 0.65rem 0 0.8rem;
  color: #a9b7d6;
  font-size: 0.9rem;
  min-height: 52px;
}

.mode-card .btn {
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: 1px solid rgba(216, 180, 254, 0.7);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
  font-size: 0.84rem;
  padding: 0.42rem 1rem;
}

.mode-card .btn:hover {
  background: linear-gradient(135deg, #9333ea, #6d28d9);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.5);
}

.hero-actions {
  display: none;
}

.hero-note {
  display: none;
}

/* HERO CARD */

.hero-card {
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 0.6rem;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.96),
    rgba(88, 28, 135, 0.55)
  );
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.status-online {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.9);
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-value {
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-card-body {
  padding: 0.9rem 1rem 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.08rem;
}

.hero-card-footer {
  padding: 0.6rem 1rem 0.8rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  padding: 0.52rem 1.1rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.65);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(248, 250, 252, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.btn-ghost {
  background: rgba(10, 14, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.85rem;
  padding-inline: 1rem;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(20, 24, 36, 0.98);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-discord {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
  font-weight: 600;
}

.btn-discord:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

/* SECTIONS */

.section {
  padding: 3.1rem 1.5rem;
}

.section-alt {
  background: rgba(10, 14, 26, 0.5);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  max-width: 620px;
  margin-bottom: 1.9rem;
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1rem 1.3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.05rem 1.1rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-card li::before {
  content: "◆";
  margin-right: 0.4rem;
  color: var(--accent);
  font-size: 0.7rem;
}

.feature-card h3 {
  color: var(--accent);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 0.25rem;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
}

.gallery-card-1 {
  background-image: url("background.jpg");
}

.gallery-card-2 {
  background-image: url("background.jpg");
}

.gallery-card-3 {
  background-image: url("background.jpg");
}

/* STAFF SECTION */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.staff-card {
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(10px);
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  margin: 0 auto 0.5rem;
  image-rendering: pixelated;
  border: 2px solid rgba(168, 85, 247, 0.8);
  background: #020617;
}

.staff-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.staff-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.staff-role[data-role="Owner"] {
  border-color: #facc15;
  color: #facc15;
}

.staff-role[data-role="Admin"] {
  border-color: #f97373;
  color: #fecaca;
}

.staff-role[data-role="Helper"] {
  border-color: #4ade80;
  color: #bbf7d0;
}

.staff-role[data-role="Developer"] {
  border-color: #38bdf8;
  color: #bae6fd;
}

.staff-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* VOTING SECTION */

.voting-container {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.8rem 1.5rem 1.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.voting-form {
  margin-bottom: 1.5rem;
}

.voting-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.voting-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  font-size: 0.95rem;
  font-family: "Poppins", system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voting-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.voting-input::placeholder {
  color: var(--text-muted);
}

.voting-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.voting-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.voting-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.voting-icon {
  flex-shrink: 0;
  line-height: 1;
  font-size: 1.05rem;
}

.voting-info {
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.voting-info p {
  margin: 0;
}

.voting-info strong {
  color: var(--accent);
}

/* JOIN SECTION */

.join-container {
  display: flex;
  justify-content: center;
}

.join-text {
  max-width: 640px;
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 55%),
    var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(168, 85, 247, 0.6);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 24px 50px rgba(168, 85, 247, 0.3);
}

.join-text h2 {
  margin: 0 0 0.35rem;
}

.join-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps {
  margin: 0.9rem 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1rem 1.5rem 1.2rem;
  background: rgba(10, 14, 26, 0.95);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy p {
  margin: 0 0 0.25rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer-link {
  color: #9ca3ff;
}

.footer-link:hover {
  color: #c7d2fe;
}

.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card {
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.legal-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1rem;
}

.legal-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  background: rgba(8, 12, 24, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.7);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a:first-child,
  .nav-links a:nth-child(2) {
    display: block;
  }

  .hero {
    padding: 6.4rem 1rem 3rem;
    min-height: 100svh;
  }

  .mode-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .section {
    padding-inline: 1.1rem;
  }

  .hero {
    padding-inline: 1.1rem;
    padding-top: 6.1rem;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-logo-image {
    width: min(300px, 92vw);
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-discord {
    padding: 0.45rem 1.05rem;
    font-size: 0.85rem;
  }

  .mode-card {
    padding: 1.3rem 1rem 1rem;
  }

  .nav-inner {
    padding-inline: 1.1rem;
  }

  .join-text {
    padding-inline: 1.15rem;
  }
}

/* SHOP SECTION */

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.shop-category-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-category-btn:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.15);
}

.shop-category-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  color: #0b0414;
  font-weight: 600;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

.shop-product-card {
  position: relative;
  background: rgba(15, 20, 30, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.shop-product-card:hover,
.shop-product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.4);
  z-index: 2;
}

.shop-product-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(100%, 300px);
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  margin: 0;
  background: rgba(8, 12, 24, 0.97);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.shop-product-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: rgba(168, 85, 247, 0.45);
}

.shop-product-card:hover .shop-product-tooltip,
.shop-product-card:focus-within .shop-product-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.shop-product-tooltip-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.shop-product-tooltip-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.shop-product-tooltip-list li {
  margin-bottom: 0.35rem;
}

.shop-product-tooltip-list li:last-child {
  margin-bottom: 0;
}

.shop-product-hint {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.shop-product-image-frame {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(129, 140, 248, 0.3));
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.shop-product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.shop-product-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-product-category {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.6rem;
  width: fit-content;
}

.shop-product-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.shop-product-description {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.shop-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.shop-product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Outfit", system-ui, sans-serif;
}

.shop-product-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.2), transparent 55%),
    var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text);
}

.modal-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
}

.payment-success-modal-content .modal-title {
  margin-bottom: 1rem;
  color: #86efac;
}

.payment-success-lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.payment-success-note {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.payment-success-discord-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.payment-success-discord-link:hover {
  color: #c4b5fd;
}

.payment-success-ok {
  width: 100%;
}

.checkout-product {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.checkout-product-image-frame {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(129, 140, 248, 0.3));
  overflow: hidden;
}

.checkout-product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
}

.checkout-product-details {
  flex-grow: 1;
}

.checkout-product-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.checkout-product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.checkout-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  font-size: 0.95rem;
  font-family: "Poppins", system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
}

.checkout-total-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-total-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Outfit", system-ui, sans-serif;
}

.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .shop-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-content {
    padding: 1.5rem;
  }

  .checkout-product {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .checkout-product-image-frame {
    margin-inline: auto;
  }
}

