/* ============================================
   GhostPay — Ultra-Premium Dark Mode Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --cyan-glow: rgba(0, 229, 255, 0.08);
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot-grid background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #fff;
}

::selection {
  background: rgba(0, 229, 255, 0.3);
  color: #fff;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.mono {
  font-family: var(--font-mono);
}

.text-cyan {
  color: var(--cyan);
}

.text-muted {
  color: var(--text-secondary);
}

.text-dim {
  color: var(--text-muted);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 2rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links .btn-nav {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.nav-links .btn-nav:hover {
  background: var(--cyan-dim);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 2rem;
  background: var(--bg-primary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-onion {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.03);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: #000;
}

.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section spacing --- */
.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ============================================
   HOMEPAGE
   ============================================ */

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--cyan);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* How It Works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.2rem;
}

.step-card h4 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
}

.feature-card .feature-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Stats */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-value .prefix {
  color: var(--cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.testimonial-initials {
  color: var(--cyan);
  font-weight: 600;
  margin-right: 0.75rem;
}

.testimonial-badge {
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 8rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   APPLICATION PAGE
   ============================================ */

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

.apply-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.apply-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Progress bar */
.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 3rem auto 2rem;
  max-width: 600px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.progress-step.active .progress-step-dot {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.progress-step.completed .progress-step-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #000;
}

.progress-step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.progress-step.active .progress-step-label {
  color: var(--cyan);
}

.progress-step.completed .progress-step-label {
  color: var(--text-secondary);
}

.progress-line {
  width: 60px;
  height: 1px;
  background: var(--border-glass);
  margin: 0 8px;
}

.progress-line.completed {
  background: var(--cyan);
}

/* Form steps */
.apply-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

.form-group .label-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: none;
  display: block;
  margin-top: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
}

/* Fee section */
.fee-display {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 2rem;
}

.fee-amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.fee-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.wallet-group {
  margin-bottom: 1.5rem;
}

.wallet-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.wallet-copy {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  transition: all var(--transition);
}

.wallet-copy:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Review summary */
.review-summary {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--bg-secondary);
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.85rem;
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--text-muted);
}

.review-value {
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-align: right;
}

/* ============================================
   FEATURES PAGE
   ============================================ */

.feature-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.feature-deep:nth-child(even) .feature-deep-content {
  order: 2;
}

.feature-deep:nth-child(even) .feature-deep-visual {
  order: 1;
}

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

.feature-deep-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-deep-content ul {
  list-style: none;
  padding: 0;
}

.feature-deep-content li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.feature-deep-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
}

.feature-deep-visual {
  padding: 2rem;
}

/* Architecture diagram (CSS/SVG) */
.arch-diagram {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.arch-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 8px;
}

.arch-node.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.arch-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 4px 0;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arch-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Audit card */
.audit-card {
  border-left: 2px solid var(--cyan);
  padding-left: 1.5rem;
}

.audit-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.audit-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}

/* Compliance */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.compliance-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.compliance-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   PRICING PAGE
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.05);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.pricing-fee {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-fee-cycle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '—';
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

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

.entrance-fee-section {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
}

.entrance-fee-section h3 {
  margin-bottom: 0.5rem;
}

.entrance-fee-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tiered entrance fee grid */
.entrance-fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.entrance-fee-card {
  padding: 2rem;
  text-align: center;
}

.entrance-fee-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.05);
  position: relative;
}

.entrance-fee-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
}

.entrance-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.entrance-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.entrance-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
  min-height: calc(100vh - 64px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.login-box {
  max-width: 420px;
  width: 100%;
  padding: 3rem;
}

.login-box h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.login-box .form-group {
  margin-bottom: 1.25rem;
}

.tfa-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tfa-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.tfa-digit:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.pgp-verify {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.pgp-verify:hover {
  border-color: var(--border-glow);
}

.pgp-verify input[type="checkbox"] {
  accent-color: var(--cyan);
}

.pgp-verify span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.login-box .btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  padding: 2rem 0;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--cyan);
  background: var(--cyan-glow);
  border-left-color: var(--cyan);
}

.dashboard-main {
  padding: 2rem 3rem;
  overflow-y: auto;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: transform var(--transition);
}

.sidebar-toggle:hover {
  transform: scale(1.1);
}

.sidebar-toggle-icon {
  width: 24px;
  height: 2px;
  background: #000;
  position: relative;
}

.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #000;
  left: 0;
}

.sidebar-toggle-icon::before {
  top: -7px;
}

.sidebar-toggle-icon::after {
  top: 7px;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1099;
}

.sidebar-overlay.active {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.5rem;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: var(--cyan);
}

/* Balance cards */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.balance-card {
  padding: 1.5rem;
}

.balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.balance-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.balance-value .currency {
  color: var(--cyan);
  font-size: 1rem;
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  padding: 1.5rem;
}

.action-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.action-card .form-input {
  margin-bottom: 0.75rem;
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* Transactions table */
.tx-section {
  margin-bottom: 2rem;
}

.tx-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.tx-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.tx-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tx-table .tx-hash {
  color: var(--cyan);
  cursor: pointer;
}

.tx-table .tx-amount.positive {
  color: #00ff88;
}

.tx-table .tx-amount.negative {
  color: #ff4466;
}

/* Dashboard tabs */
.dash-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.dash-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.dash-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.dash-tab:hover {
  color: var(--text-secondary);
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

/* Security settings */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.security-item {
  padding: 1.5rem;
}

.security-item h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.security-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ============================================
   404 PAGE
   ============================================ */

.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found h1 {
  font-size: 6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.not-found .sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-success {
  border-color: #00ff88;
}

.toast-success .toast-icon {
  color: #00ff88;
}

.toast-error {
  border-color: #ff4466;
}

.toast-error .toast-icon {
  color: #ff4466;
}

.toast-warning {
  border-color: #ffaa00;
}

.toast-warning .toast-icon {
  color: #ffaa00;
}

.toast-info {
  border-color: var(--cyan);
}

.toast-info .toast-icon {
  color: var(--cyan);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Form validation */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ff4466;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 68, 102, 0.1);
}

.error-message {
  font-size: 0.75rem;
  color: #ff4466;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
}

.btn-primary.loading {
  color: #000;
}

.btn-primary.loading::after {
  border-color: #000;
  border-top-color: transparent;
}

.btn-outline.loading::after {
  border-color: var(--cyan);
  border-top-color: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 3.5rem; }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-deep {
    grid-template-columns: 1fr;
  }
  
  .feature-deep:nth-child(even) .feature-deep-content,
  .feature-deep:nth-child(even) .feature-deep-visual {
    order: unset;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-layout {
    grid-template-columns: 200px 1fr;
  }
  
  .balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .security-grid {
    grid-template-columns: 1fr;
  }
  
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .entrance-fee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.75rem; }
  h2 { font-size: 1.75rem; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .how-steps {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .dashboard-main {
    padding: 1.5rem;
  }
  
  .balance-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-inner {
    flex-direction: column;
  }
  
  .stat-value {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .login-box {
    padding: 2rem 1.5rem;
  }
  
  .tfa-digit {
    width: 38px;
    height: 46px;
    font-size: 1.1rem;
  }
  
  .progress-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .progress-line {
    display: none;
  }
}