:root {
  --bg: #050505;
  --card: #0a0a0a;
  --card-border: #222;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #d00000; /* NovaRex Red */
  --accent-glow: rgba(208, 0, 0, 0.3);
  --success: #00c853;
  --warning: #ffd600;
  --error: #ff1744;
  --font-main: 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, #2a0505 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(60, 0, 0, 0.15), transparent 50%);
  background-size: 100% 100%, 50px 50px, 50px 50px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  animation: bgPulse 8s infinite alternate;
  overflow-x: hidden;
}

@keyframes bgPulse {
  0% { background-color: #050505; box-shadow: inset 0 0 100px rgba(0,0,0,0.8); }
  100% { background-color: #0a0000; box-shadow: inset 0 0 50px rgba(20,0,0,0.5); }
}

/* Dynamic Particles (Pseudo-element) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: 0.3;
  z-index: -1;
  animation: starsMove 120s linear infinite;
  pointer-events: none;
}

@keyframes starsMove {
  from { transform: translateY(0); }
  to { transform: translateY(-550px); }
}

a { color: var(--text); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 15px 0;
}
header .wrap { display: flex; justify-content: space-between; align-items: center; }

.brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.logo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  /* Removed default red box to accommodate icon image */
}
.logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.brand-text h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; color: white; }
.brand-text p { margin: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.nav { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; white-space: nowrap; }
.nav a:hover, .nav a.active { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center;
  z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.95) translateY(10px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--text-muted);
  font-size: 28px; cursor: pointer; transition: 0.2s;
  line-height: 1;
}
.modal-close:hover { color: white; transform: rotate(90deg); }

.modal-title { font-size: 24px; margin-bottom: 15px; color: white; border-left: 4px solid var(--accent); padding-left: 15px; }
.modal-body { font-size: 16px; color: #ccc; line-height: 1.8; }

/* Plan Cards - Professional Update */
.plan-card {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.plan-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: rgba(25, 25, 25, 0.6);
}
.plan-card h3 { margin-top: 0; font-size: 1.4em; color: white; }
.plan-card .price { font-size: 2.5em; font-weight: bold; margin: 15px 0; color: white; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.plan-card .desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; }
.plan-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.plan-card ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; display: flex; align-items: center; }
.plan-card ul li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: bold; }

.plan-card.featured {
  border: 1px solid var(--accent);
  background: linear-gradient(145deg, rgba(20, 0, 0, 0.6), rgba(10, 10, 10, 0.8));
  box-shadow: 0 0 40px rgba(208, 0, 0, 0.15);
  transform: scale(1.05);
  z-index: 1;
}
.plan-card.featured:hover { transform: scale(1.05) translateY(-5px); }

/* Feature Cards - Clickable */
.feature-highlight {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.feature-highlight:hover {
  transform: translateY(-5px);
  background: rgba(30, 30, 30, 0.8);
  border-color: var(--accent);
}
.feature-highlight::after {
  content: "+";
  position: absolute; top: 15px; right: 15px;
  font-size: 20px; color: var(--text-muted); opacity: 0; transition: 0.3s;
}
.feature-highlight:hover::after { opacity: 1; color: var(--accent); }
.nav a:hover, .nav a.active { color: white; }

/* Language Selector - Premium Style */
#langSelect {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 4px 24px 4px 8px;
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  margin-left: 10px; /* Separate from links */
}
#langSelect:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
#langSelect:focus {
  outline: none;
  border-color: var(--accent);
}
#langSelect option {
  background-color: var(--card);
  color: var(--text);
}

/* Hero */
.hero { padding: 60px 0 40px; text-align: center; animation: fadeInUp 0.8s ease-out; }
.hero h2 { font-size: 36px; margin-bottom: 10px; background: linear-gradient(to right, #fff, #aaa); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; min-height: 1.2em; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }

.typing-container { display: inline-block; }
.cursor { display: inline-block; width: 2px; background-color: var(--accent); animation: blink 1s infinite; margin-left: 5px; vertical-align: middle; height: 1em; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.feature-highlight { text-align: left; transition: all 0.3s ease; opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.feature-highlight:nth-child(1) { animation-delay: 0.2s; }
.feature-highlight:nth-child(2) { animation-delay: 0.3s; }
.feature-highlight:nth-child(3) { animation-delay: 0.4s; }
.feature-highlight:nth-child(4) { animation-delay: 0.5s; }

.feature-highlight:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.feature-highlight h3 { color: white; margin-top: 0; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section { padding: 40px 0; border-top: 1px solid #111; }
section h2 { font-size: 24px; margin-bottom: 25px; border-left: 4px solid var(--accent); padding-left: 15px; }

/* Cards */
.card {
  background: linear-gradient(145deg, #0f0f0f, #050505);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}
.card:hover { 
  border-color: #444; 
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Pricing */
.plan-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 20px rgba(208, 0, 0, 0.1); }
.plan-card.selectable-plan { cursor: pointer; transition: all 0.2s; }
.plan-card.selectable-plan:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.plan-card.selectable-plan:active { transform: translateY(-2px); }
.plan-card h3 { margin: 10px 0; font-size: 20px; }
.plan-card .price { font-size: 28px; font-weight: bold; color: white; margin-bottom: 5px; }
.plan-card .desc { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.plan-card ul { list-style: none; padding: 0; text-align: left; margin-bottom: 20px; font-size: 14px; color: #ccc; }
.plan-card ul li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.plan-card ul li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
input, select {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 14px;
  transition: 0.2s;
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-glow); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.btn:hover { background: #b00000; transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; border: 1px solid var(--card-border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }

/* Status & Results */
.status-text { font-size: 14px; margin-left: 10px; color: var(--text-muted); }
.status-text.ok { color: var(--success); }
.status-text.warn { color: var(--warning); }
.status-text.err { color: var(--error); }

.muted { color: var(--text-muted); font-size: 13px; }
.row { display: flex; gap: 15px; align-items: center; }

.result-box {
  margin-top: 20px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid #333;
  border-left: 4px solid var(--accent);
  padding: 0;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e0e0e0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: rgba(255,255,255,0.02); }

.result-label { color: var(--text-muted); font-weight: 500; }
.result-value { color: white; font-weight: 600; text-align: right; }
.result-value.highlight { color: var(--accent); }
.result-value.mono { font-family: var(--font-mono); letter-spacing: 0.5px; }

.hidden { display: none; }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 30px 0; margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Mobile */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; } /* Simple hide for MVP, or stack */
}

/* Order Result Professional */
.result-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.result-title { font-size: 18px; color: var(--text-muted); }
.status-badge {
  padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1px;
}
.status-badge.status-approved { background: rgba(0, 200, 83, 0.2); color: #00c853; border: 1px solid #00c853; }
.status-badge.status-pending { background: rgba(255, 214, 0, 0.2); color: #ffd600; border: 1px solid #ffd600; }
.status-badge.status-expired { background: rgba(255, 23, 68, 0.2); color: #ff1744; border: 1px solid #ff1744; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.result-item { display: flex; flex-direction: column; gap: 5px; }
.result-item.full-width { grid-column: span 2; }
.result-item .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.result-item .value { font-size: 16px; color: white; font-weight: 500; }
.result-item .value.mono { font-family: var(--font-mono); letter-spacing: 1px; }
.result-item .value.highlight { color: var(--accent); text-shadow: 0 0 10px rgba(208,0,0,0.3); }
.result-item .value.copyable { cursor: pointer; transition: 0.2s; }
.result-item .value.copyable:hover { color: white; }

