:root {
  --bg-color: #0d0914;
  --panel-bg: #1a1325;
  --primary: #7e57c2;
  --primary-hover: #9575cd;
  --accent: #b388ff;
  --danger: #ff4081;
  --text-main: #e0e0e0;
  --text-muted: #9e9e9e;
  --border-color: #312446;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
}

/* NEW: Navigation Back Link Styling */
.top-nav {
  width: 100%;
  max-width: 650px;
  margin-bottom: 20px;
}
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--primary-hover);
}

/* YOUR ORIGINAL CODEPEN CSS BELOW */
.container {
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.click {
  width: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #321f4c 0%, #201335 100%);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 24px;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.click:hover {
  background: linear-gradient(135deg, #3c255b 0%, #261740 100%);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(126, 87, 194, 0.2);
}

.click.fast-click-alert {
  background: linear-gradient(135deg, #6c1b3f 0%, #4a1029 100%) !important;
  border-color: var(--danger) !important;
  box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3) !important;
}

.click-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  pointer-events: none;
}

.illustration {
  width: 80px;
  flex-shrink: 0;
}

.illustration svg path {
  fill: #4b3668;
  transition: fill 0.1s ease;
}

.text-content {
  text-align: left;
}

.text-content h2 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 600;
}

.text-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.dashboard {
  width: 100%;
  display: flex;
  gap: 16px;
  background-color: var(--panel-bg);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
}

.stat-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-group label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

input[type="text"] {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: monospace;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  width: 70px;
  text-align: center;
  outline: none;
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: var(--primary-hover);
}

textarea {
  width: 100%;
  height: 250px;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: "Courier New", Courier, monospace;
  padding: 16px;
  border-radius: 12px;
  resize: none;
  outline: none;
  font-size: 0.9rem;
  line-height: 1.5;
  box-sizing: border-box;
}

textarea:focus {
  border-color: var(--primary);
}

textarea::-webkit-scrollbar {
  width: 10px;
}

textarea::-webkit-scrollbar-track {
  background: var(--panel-bg);
  border-radius: 0 12px 12px 0;
}

textarea::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
