* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  width: 90%;
  z-index: 10;
}

/* Logo */
.logo {
  text-align: center;
  margin: 2rem;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  background: linear-gradient(45deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Message board with ornate border */
.message-board {
  position: relative;
  padding: 1rem;
  margin-bottom: 3rem;
}

.ornate-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5)
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderRotate {
  0% {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5)
      border-box;
  }
  25% {
    background: linear-gradient(135deg, #8338ec, #3a86ff, #06ffa5, #ff006e)
      border-box;
  }
  50% {
    background: linear-gradient(225deg, #3a86ff, #06ffa5, #ff006e, #8338ec)
      border-box;
  }
  75% {
    background: linear-gradient(315deg, #06ffa5, #ff006e, #8338ec, #3a86ff)
      border-box;
  }
  100% {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5)
      border-box;
  }
}
#price-chart-container {
  width: 100%;
  height: 340px;
  background: #111;
  border-radius: 8px;
  border: 1px solid #333;
  margin-top: 2rem;
}

/* .chart-container - removed (chart is now standalone) */

.message-content {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 0.3rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.message-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(131, 56, 236, 0.1) 0%,
    transparent 70%
  );
}

.current-message {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.2);
}

.message-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  text-align: right;
}

/* Disclaimer indicator */
.disclaimer-indicator {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  user-select: none;
  text-decoration-style: dotted;
  font-weight: bold;
}

.disclaimer-indicator:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration-style: solid;
}

/* Navigation links */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.nav-links a.primary {
  background: linear-gradient(45deg, #8338ec, #3a86ff);
  border: none;
  color: #fff;
  font-weight: 500;
}

.nav-links a.primary:hover {
  box-shadow: 0 5px 30px rgba(131, 56, 236, 0.5);
}

/* Price Stats */
.price-stats {
  margin-bottom: 3rem;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(45deg, #fff, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chart Container */
/* .chart-container - removed (chart is now standalone) */

/* .chart-container h3 - removed (title now in Highcharts) */

.price-chart {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.price-line {
  filter: drop-shadow(0 0 10px rgba(131, 56, 236, 0.5));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Replace button styles */
.replace-button {
  display: inline-block;
  background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 0.85em 2.2em;
  border: none;
  border-radius: 2em;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.15),
    0 1.5px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.replace-button:hover,
.replace-button:focus {
  background: linear-gradient(90deg, #ff9800 0%, #ff5722 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: rgba(20, 20, 30, 0.95);
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(45deg, #fff, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal h3 {
  color: #fff;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.modal-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1.1rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body strong {
  color: #fff;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* FAQ Styles */
.faq-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.faq-content::-webkit-scrollbar {
  width: 8px;
}

.faq-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.faq-content::-webkit-scrollbar-thumb {
  background: rgba(131, 56, 236, 0.5);
  border-radius: 4px;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.faq-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }

  .logo {
    margin: 1rem 0;
  }

  .logo h1 {
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
  }

  .message-board {
    padding: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .message-content {
    padding: 0.8rem 1rem;
  }

  .current-message {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .message-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  /* Ensure better text wrapping on mobile */
  #message-meta-text {
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
    /* Prevent breaks around bullet separators */
    white-space: normal;
  }
  
  /* Treat bullet separators as non-breaking on mobile */
  @media (max-width: 600px) {
    #message-meta-text {
      /* Allow natural breaks but keep related content together */
      word-spacing: -0.1em;
    }
  }

  .price-stats {
    margin-bottom: 1.5rem;
  }

  .stat-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .stat {
    padding: 0.75rem 1rem;
    min-width: 0;
    flex: 1;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  #price-chart-container {
    height: 280px;
    margin-top: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .replace-button {
    font-size: 1rem;
    padding: 0.75em 1.8em;
  }

  .modal-content {
    margin: 5% auto;
    padding: 1.25rem;
    width: 96%;
  }

  .modal h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .modal h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
  }

  .modal-body {
    font-size: 0.95rem;
  }

  .faq-content {
    max-height: 60vh;
  }

  .close {
    right: 1rem;
    top: 1rem;
    font-size: 24px;
  }

  /* Very small mobile screens - better line breaking for meta text */
  @media (max-width: 380px) {
    #message-meta-text {
      font-size: 0.7rem;
    }
  }

  /* Content Pages Mobile Optimizations */
  .container .content-container {
    padding: 1rem 0.75rem;
  }

  .back-button {
    margin: 1rem 0;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .content-container h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .content-container h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
  }

  .content-body {
    font-size: 1rem;
  }

  .archive-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .archive-content {
    font-size: 1rem;
  }

  .archive-meta {
    font-size: 0.85rem;
    text-align: end;
  }

  .loading,
  .no-messages {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

/* Payment Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #b0b0b0;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8338ec;
}

#message-input {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  text-align: right;
  color: #666;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Stripe Elements container */
#card-element {
  background-color: #1a1a1a;
  padding: 0.75rem;
  border: 1px solid #333;
  border-radius: 4px;
}

#card-errors {
  color: #fa755a;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.price-display {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #1a1a1a;
  border-radius: 4px;
}

.price-display p {
  margin: 0;
  font-size: 1.2rem;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: #8338ec;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.submit-button:hover:not(:disabled) {
  background-color: #6c2dcf;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.3);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success and Error states */
#payment-success,
#payment-error {
  text-align: center;
  padding: 2rem;
}

#payment-success h3 {
  color: #4caf50;
}

#payment-error h3 {
  color: #f44336;
}

#payment-error button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#payment-error button:hover {
  background-color: #444;
}

.hidden {
  display: none !important;
}

/* Content Pages Styles (About, FAQ, Archive) */
.back-button {
  display: inline-block;
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.content-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1.1rem;
}

.content-body p {
  margin-bottom: 1rem;
}

.content-body strong {
  color: #fff;
}

.content-container h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(45deg, #fff, #8338ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-container h3 {
  color: #fff;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

/* Archive Page Styles */
.archive-list {
  margin-top: 2rem;
}

.archive-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.archive-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.archive-content {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.archive-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: end;
}

.loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
}

.no-messages {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem;
  font-size: 1.1rem;
}

/* Content Moderation Styles */
.blurred-content {
  position: relative;
}

.content-warning {
  position: relative;
  min-height: 100px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.blurred-text {
  filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  min-height: 6rem;
}

.warning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid rgba(255, 193, 7, 0.6);
}

.warning-text {
  text-align: center;
  padding: 1rem;
  color: #ffc107;
  font-size: 1.1rem;
}

.reveal-button {
  background: linear-gradient(45deg, #8338ec, #6a1b9a);
  color: white;
  border: none;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.reveal-button:hover {

  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

.unselectable-text {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE 10+ */
  user-select: none;         /* Standard */
}
