/* ==========================================================================
   CYBERPUNK DOMAIN MARKETPLACE - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-dark: #050711;
  --bg-card: rgba(13, 17, 33, 0.75);
  --bg-card-hover: rgba(22, 28, 54, 0.85);
  --bg-modal: rgba(8, 10, 22, 0.95);
  
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff007f;
  --neon-purple: #9d00ff;
  --neon-yellow: #ffee00;
  --neon-green: #00ff66;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  
  --border-neon: rgba(0, 243, 255, 0.3);
  --border-pink: rgba(255, 0, 127, 0.3);
  
  --shadow-cyan: 0 0 15px rgba(0, 243, 255, 0.4), 0 0 30px rgba(0, 243, 255, 0.2);
  --shadow-magenta: 0 0 15px rgba(255, 0, 127, 0.4), 0 0 30px rgba(255, 0, 127, 0.2);
  
  --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* CRT Scanline Overlay */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.6;
}

/* Navigation Header */
.cyber-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 7, 17, 0.85);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  box-shadow: var(--shadow-cyan);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-select {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.currency-select:focus, .currency-select:hover {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.btn-cyber-sm {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cyber-sm:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: #fff;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-magenta);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--neon-cyan);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(10px, 9999px, 40px, 0); }
  20% { clip: rect(50px, 9999px, 80px, 0); }
  40% { clip: rect(20px, 9999px, 60px, 0); }
  60% { clip: rect(70px, 9999px, 90px, 0); }
  80% { clip: rect(30px, 9999px, 50px, 0); }
  100% { clip: rect(60px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(60px, 9999px, 100px, 0); }
  25% { clip: rect(10px, 9999px, 30px, 0); }
  50% { clip: rect(80px, 9999px, 95px, 0); }
  75% { clip: rect(40px, 9999px, 70px, 0); }
  100% { clip: rect(20px, 9999px, 50px, 0); }
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--neon-magenta);
  color: var(--neon-magenta);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-magenta);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 0, 127, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

.featured-domain-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 1.5rem auto 3rem;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.featured-domain-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
}

.hero-domain-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.hero-domain-title .tld {
  color: var(--neon-magenta);
  text-shadow: 0 0 15px var(--neon-magenta);
}

.hero-domain-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-price-tag {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.price-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

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

/* Primary Cyber Button */
.btn-cyber-lg {
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-cyan), #0099ff);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cyber-lg:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #00ffff, var(--neon-magenta));
  color: #fff;
  box-shadow: var(--shadow-magenta);
}

.btn-cyber-outline {
  padding: 0.9rem 2.5rem;
  background: rgba(255, 0, 127, 0.08);
  color: var(--neon-magenta);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--neon-magenta);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.btn-cyber-outline:hover {
  background: var(--neon-magenta);
  color: #fff;
  box-shadow: var(--shadow-magenta);
  transform: translateY(-3px);
}

/* Feature Badges Grid */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: left;
}

.hl-card {
  background: rgba(10, 14, 29, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hl-icon {
  font-size: 1.5rem;
  color: var(--neon-cyan);
}

.hl-text h4 {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
}

.hl-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Domain Marketplace Container */
.marketplace-section {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-neon);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--neon-cyan);
}

/* Search & Filter Controls */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2rem;
}

.search-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: rgba(13, 17, 33, 0.9);
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-cyan);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.tag-btn {
  padding: 0.6rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.tag-btn:hover, .tag-btn.active {
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Domain Grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.domain-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
  background: var(--bg-card-hover);
}

.domain-card.hot-badge::after {
  content: 'HOT';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--neon-magenta);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--neon-magenta);
}

.domain-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.domain-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.domain-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.card-action {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-action:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* Safe Transfer / Escrow Section */
.trust-section {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.trust-box {
  background: linear-gradient(135deg, rgba(13, 17, 33, 0.9), rgba(25, 10, 45, 0.8));
  border: 1px solid var(--border-pink);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.trust-title span {
  color: var(--neon-magenta);
}

.trust-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: rgba(5, 7, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.partner-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  padding: 2rem;
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--neon-magenta);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
}

.modal-domain-display {
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

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

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Toast Notification */
.cyber-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(8, 10, 22, 0.95);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.cyber-footer {
  border-top: 1px solid var(--border-neon);
  background: rgba(5, 7, 17, 0.95);
  padding: 3rem 1.5rem 2rem;
  margin-top: 5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }
  
  .featured-domain-hero {
    padding: 1.75rem 1rem;
  }
  
  .hero-domain-title {
    font-size: 2.2rem;
  }
  
  .hero-price-tag {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .btn-cyber-lg, .btn-cyber-outline {
    width: 100%;
    justify-content: center;
  }
  
  .domains-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }
}
