/* AMNESIA VPS LK — Design System */
html { color-scheme: dark; }
:root {
  --bg-main: #050505;
  --bg-soft: #0F1A17;
  --card-bg: rgba(12, 20, 18, 0.6);
  --primary: #7FFFE1;
  --primary-soft: #6CF2D5;
  --glow: #9FFFF0;
  --accent-teal: #00C9A7;
  --text-main: #EFFFFA;
  --text-secondary: #A6E5D6;
  --text-muted: #7FAFA3;
  --glass-border: rgba(127, 255, 225, 0.18);
  --glass-glow: rgba(127, 255, 225, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100%;
  overflow-x: hidden;
  background-image: linear-gradient(180deg, #050505 0%, #0F1A17 100%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.25;
  animation: float-particle 12s infinite;
}
@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(15px, -20px) scale(1.1); opacity: 0.35; }
  66% { transform: translate(-10px, -40px) scale(0.9); opacity: 0.2; }
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1rem;
  padding-bottom: 2rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
}

.header { text-align: center; padding: 1rem 0 1.5rem; }
.brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.main { max-width: 400px; margin: 0 auto; }

/* Cards */
.card {
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid rgba(127, 255, 225, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px rgba(127, 255, 225, 0.08);
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.info-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.info-text.mb { margin-bottom: 0.75rem; }
.info-text a { color: var(--primary); }

/* Login */
.label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 26, 23, 0.6);
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--glass-glow);
  box-shadow: 0 0 12px rgba(127, 255, 225, 0.15);
}

.login-step { margin-top: 0.5rem; }
.error-text { color: #f08080; font-size: 0.9rem; margin-top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: #050505;
  box-shadow: 0 0 25px rgba(127, 255, 225, 0.4);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(127, 255, 225, 0.55);
  transform: translateY(-2px);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
  margin-top: 0.5rem;
}
.btn-secondary:hover { box-shadow: 0 0 20px rgba(127, 255, 225, 0.3); }
.btn-block { width: 100%; }
.btn-link {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.btn-link:hover { color: var(--primary); }

/* Dashboard */
.status-card { text-align: center; }
.status-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--glow);
}
.status-value.status-active { color: var(--primary); }
.status-value.status-expired { color: var(--text-muted); }
.status-hint { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.subscription-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.subscription-link:hover { color: var(--glow); }

.info-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.info-row strong { color: var(--text-main); }

.footer { text-align: center; padding: 1.5rem 0.5rem; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }

/* SEO / A11y — скрыт визуально, доступен для скринридеров и поисковиков */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
