/* VanityGen.cc - Cyber-Hacker Aesthetic Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-dark: #06070a;
  --card-bg: rgba(14, 17, 27, 0.7);
  --card-border: rgba(0, 240, 255, 0.15);
  --card-glow: rgba(0, 240, 255, 0.03);
  --neon-green: #10b981;
  --neon-cyan: #00f0ff;
  --neon-green-glow: rgba(16, 185, 129, 0.2);
  --neon-cyan-glow: rgba(0, 240, 255, 0.2);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-dark: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(100, 116, 139, 0.15);
  --card-glow: rgba(100, 116, 139, 0.01);
  --neon-green: #059669;
  --neon-cyan: #0284c7;
  --neon-green-glow: rgba(5, 150, 105, 0.1);
  --neon-cyan-glow: rgba(2, 132, 199, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Background Cyber Grid effect in dark mode */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
  color: var(--neon-cyan);
}

.nav-tabs {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--neon-cyan);
  border-color: var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 4px 12px var(--card-glow);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.tab-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-section.active {
  display: block;
}

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

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Two-column layout for generator */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.select-wrapper {
  position: relative;
}

select, input[type="text"], input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

select:focus, input[type="text"]:focus, input[type="number"]:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.coin-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.coin-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.coin-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--text-primary);
}

.coin-btn.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.coin-btn i {
  font-size: 1.25rem;
}

.coin-btn.active i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.toggle-group input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  width: 16px;
  height: 16px;
}

.action-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: #00d2ff;
  border-color: #00d2ff;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

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

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.stat-value.green {
  color: var(--neon-green);
}

/* System Terminal Console Logger */
.terminal {
  background: #020306;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  height: 160px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #10b981;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.terminal::-webkit-scrollbar {
  width: 4px;
}

.terminal::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 2px;
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-line .sys { color: #3b82f6; }
.terminal-line .search { color: #f59e0b; }
.terminal-line .speed { color: var(--neon-cyan); }
.terminal-line .found { color: var(--neon-green); font-weight: bold; }

/* Status Bar */
.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Address prefix highlight styles */
.addr-txt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
}

.addr-txt .prefix {
  color: var(--neon-green);
  font-weight: 700;
  text-decoration: underline;
  background: rgba(16, 185, 129, 0.15);
  padding: 0 2px;
  border-radius: 2px;
}

/* Results section styling */
.results-card {
  margin-top: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

td {
  vertical-align: middle;
}

.result-key-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-key-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.05em;
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.results-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 0;
  font-style: italic;
}

/* FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.faq-q:hover {
  background: rgba(0,240,255,0.02);
}

.faq-q i {
  transition: transform 0.3s;
}

.faq-item.active .faq-q i {
  transform: rotate(180deg);
  color: var(--neon-cyan);
}

.faq-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-a {
  padding: 1rem 1.25rem;
  max-height: 300px;
  border-top-color: var(--card-border);
}

/* Security cards */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.security-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.security-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
}

.security-card.green h3 {
  color: var(--neon-green);
}

.security-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer layout */
footer {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

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

/* ==========================================
   PREMIUM PAYMENT CHECKOUT MODAL STYLES
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s ease-out forwards;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 520px;
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 16px 48px 0 rgba(0, 240, 255, 0.08), 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 240, 255, 0.25);
  padding: 2rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ef4444;
}

.payment-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-primary) !important;
  border-color: var(--text-secondary) !important;
}

.pay-crypto-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-secondary) !important;
  border-color: var(--text-muted) !important;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

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