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

:root {
  --bg: #0a0a0f;
  --bg-light: #12121a;
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --success: #10b981;
  --border: #2a2a3a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  padding: 3rem 0;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

section {
  margin: 3rem 0;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--accent);
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

/* Pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tier {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.tier.featured {
  border-color: var(--accent);
  position: relative;
}

.tier.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.tier h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.tier ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tier li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.tier li:last-child {
  border-bottom: none;
}

button {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* File Rules */
.file-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.allowed, .not-allowed {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
}

.allowed h4 {
  color: var(--success);
}

.not-allowed h4 {
  color: #ef4444;
}

.file-rules ul {
  list-style: none;
  margin-top: 1rem;
}

.file-rules li {
  padding: 0.3rem 0;
  color: var(--text-dim);
}

.note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Donate */
.donate {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 16px;
}

.donate-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 1rem 0;
}

.crypto-donate {
  margin-top: 1rem;
}

.crypto-donate code {
  display: block;
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  word-break: break-all;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-dim);
}

footer a {
  color: var(--accent-light);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
}

.modal-content button {
  margin: 0.5rem 0;
}

.modal-content code {
  display: block;
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  word-break: break-all;
}

.modal-content input[type="file"] {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin: 1rem 0;
  color: var(--text);
}

/* Why Section */
.reasons {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.reasons li {
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.reasons li strong {
  color: var(--accent-light);
}

/* FAQ Section */
.faq-item {
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.faq-item h4 {
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-dim);
  margin: 0;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Existing Code Section */
.existing-code {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.code-check {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 1rem auto 0;
}

.code-check input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.code-check button {
  width: auto;
  padding: 0.8rem 1.5rem;
}

/* Payment Flow Styles */
.large-code {
  font-size: 1.5rem;
  text-align: center;
  padding: 1.5rem !important;
  background: var(--accent) !important;
  color: white;
}

.payment-code-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-instructions {
  margin: 1.5rem 0;
}

.payment-option {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.payment-option h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.payment-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.address {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem !important;
  margin: 0.3rem 0 !important;
}

.payment-check {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.primary-btn {
  background: var(--accent);
}

.small-btn {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--border);
}

.success-msg {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--success);
  padding: 1rem;
  border-radius: 8px;
  color: var(--success);
  margin-bottom: 1rem;
}

.success-display {
  text-align: center;
}

.warning {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  color: #fca5a5;
}

/* Retrieve Page */
.retrieve-section {
  text-align: center;
}

.retrieve-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 1.5rem auto;
}

.retrieve-form input {
  flex: 1;
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.retrieve-form button {
  width: auto;
  padding: 1rem 2rem;
}

#retrieve-result {
  text-align: left;
  margin-top: 2rem;
}

.files-container {
  margin: 1rem 0;
}

.retrieved-file {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.retrieved-file h4 {
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.retrieved-file pre {
  background: var(--bg);
  padding: 1rem;
  border-radius: 4px;
  max-height: 200px;
  overflow: auto;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.retrieved-file button {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.secondary-btn {
  background: var(--border);
  margin-top: 1rem;
}

.meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.info-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
}

.info-section h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.info-section h3:first-child {
  margin-top: 0;
}

.crypto-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.crypto-label {
  color: var(--text-dim);
  min-width: 40px;
}

.crypto-address code {
  flex: 1;
  margin: 0;
  font-size: 0.8rem;
}

/* 4 Steps Grid */
.steps {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 700px) {
  .steps, .tiers, .file-rules {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .code-check, .retrieve-form {
    flex-direction: column;
  }
  
  .code-check button, .retrieve-form button {
    width: 100%;
  }
}
