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

body {
  background: #0a0a0f;
  color: #e6e6e6;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.star-loader {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.star-loader svg {
  width: 48px;
  height: 48px;
  fill: #ff3d5a;
  animation: starPulse 2s ease-in-out infinite;
}

.star-loader svg:nth-child(2) {
  animation-delay: 0.3s;
  fill: #00d4aa;
}

.star-loader svg:nth-child(3) {
  animation-delay: 0.6s;
  fill: #ff6b6b;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 40px;
  text-align: center;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.glass-radio-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  position: relative;
  margin-bottom: 40px;
}

.glass-radio-group input[type="radio"] {
  display: none;
}

.glass-radio-group label {
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.glass-radio-group label:hover {
  color: rgba(255, 255, 255, 0.9);
}

.glass-radio-group input[type="radio"]:checked + label {
  color: #fff;
}

.glass-glider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, #ff3d5a, #ff6b6b);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 4px 20px rgba(255, 61, 90, 0.3);
}

.glass-radio-group input[type="radio"]:nth-child(1):checked ~ .glass-glider {
  width: 80px;
  transform: translateX(0);
}

.glass-radio-group input[type="radio"]:nth-child(3):checked ~ .glass-glider {
  width: 110px;
  transform: translateX(80px);
}

.glass-radio-group input[type="radio"]:nth-child(5):checked ~ .glass-glider {
  width: 90px;
  transform: translateX(190px);
}

.content {
  width: 100%;
  max-width: 800px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.card__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3d5a, #00d4aa, #ff6b6b);
  opacity: 0.6;
}

.card_title__container {
  margin-bottom: 24px;
}

.card_title {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.card_paragraph {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 0.95rem;
}

.card_paragraph strong {
  color: #ff3d5a;
}

.line {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.form-group.checkbox input {
  width: auto;
  height: auto;
}

.form-group label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff3d5a;
  box-shadow: 0 0 0 3px rgba(255, 61, 90, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.card-button-container {
  margin: 24px 0;
}

.card-button {
  position: relative;
  background: linear-gradient(135deg, #ff3d5a, #ff6b6b);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 61, 90, 0.3);
  overflow: hidden;
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 61, 90, 0.4);
}

.card-button:active {
  transform: translateY(0);
}

.card-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.card-button .sending-text {
  display: none;
}

.card-button.sending .text {
  display: none;
}

.card-button.sending .sending-text {
  display: inline;
}

.card-list {
  list-style: none;
  margin-top: 20px;
}

.card-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #ff3d5a;
  font-weight: bold;
}

.fallback-contact {
  margin-top: 24px;
  text-align: center;
}

.fallback-contact small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.fallback-contact a {
  color: #ff3d5a;
  text-decoration: none;
}

.fallback-contact a:hover {
  text-decoration: underline;
}

.member-count {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  font-weight: 400;
}

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

.member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.member-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.member-card__header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.member-card__header h3 a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.member-card__header h3 a:hover {
  color: #ff3d5a;
}

.member-card__header time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
}

.nsfw-badge {
  background: #ff3d5a;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-card__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 12px 0;
  line-height: 1.5;
}

.member-card__link {
  color: #00d4aa;
  font-size: 0.85rem;
  text-decoration: none;
  word-break: break-all;
}

.member-card__link:hover {
  text-decoration: underline;
}

.badge-options {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.badge-option h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.badge-option > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.code-block {
  position: relative;
  background: #0f0f14;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 20px;
  margin: 12px 0;
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #e6e6e6;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #ff3d5a;
  border-color: #ff3d5a;
}

.embed-box {
  width: 100%;
  height: 420px;
  background: #0f0f14;
  color: #e6e6e6;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  outline: none;
  white-space: pre;
}

.embed-box:focus {
  border-color: #ff3d5a;
  box-shadow: 0 0 0 1px #ff3d5a;
}

.badge-note {
  text-align: center;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.badge-note a {
  color: #ff3d5a;
  text-decoration: none;
}

.badge-note a:hover {
  text-decoration: underline;
}
