/* Euphoria User Site - Exact Copy from Desktop/euphoria */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07050f;
  --bg2: #0d0a1a;
  --purple: #7c5cbf;
  --purple2: #a07de0;
  --accent: #c9a8ff;
  --text: #e8e0f5;
  --muted: #7a6e99;
  --border: rgba(124, 92, 191, 0.18);
  --glow: rgba(124, 92, 191, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: linear-gradient(180deg, rgba(7, 5, 15, 0.95) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-decoration: none;
}

.logo-domain {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.nav-btn:hover {
  background: rgba(124, 92, 191, 0.12);
  border-color: var(--purple2);
  box-shadow: 0 0 20px var(--glow);
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 50px;
  position: relative;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c5cbf, transparent);
  top: -100px;
  left: -150px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #5c3d9e, transparent);
  top: 20%;
  right: -100px;
  animation-delay: 3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #a07de0, transparent);
  bottom: 10%;
  left: 20%;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 92, 191, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}

h1 .line1 {
  display: block;
  color: var(--text);
}

h1 .line2 {
  display: block;
  background: linear-gradient(135deg, #c9a8ff 0%, #7c5cbf 50%, #a07de0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cbf, #a07de0) !important;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 32px rgba(124, 92, 191, 0.4);
  -webkit-text-fill-color: #fff !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 92, 191, 0.6);
  color: #fff !important;
}

.btn-ghost {
  color: var(--muted);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-ghost:hover {
  color: var(--text);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-section {
  padding: 40px 0;
  overflow: hidden;
}

.photo-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

.photo-outer {
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  cursor: grab;
}

.photo-outer::-webkit-scrollbar { display: none; }

.photo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollPhotos 35s linear infinite;
  pointer-events: none;
}

.photo-track > * {
  pointer-events: all;
}

.photo-outer:hover .photo-track {
  animation-play-state: paused;
}

/* Запрет перетаскивания img */
.photo-item img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: all;
}

@keyframes scrollPhotos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.photo-item {
  width: 300px;
  height: 185px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.photo-item:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 50px rgba(124, 92, 191, 0.3);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.5;
}

.section {
  padding: 60px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple2);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 60px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg2);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card:hover {
  background: rgba(124, 92, 191, 0.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

.feature-card canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover canvas {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 92, 191, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.status-bar {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 60px;
}

.status-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s ease infinite;
}

.status-val {
  font-weight: 600;
  color: var(--text);
  font-family: 'Syne', sans-serif;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 28px;
  position: relative;
  transition: all 0.3s;
  text-align: center;
}

.plan-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124, 92, 191, 0.2);
}

.plan-card.popular {
  border-color: var(--purple2);
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.08), rgba(160, 125, 224, 0.05));
}

.plan-card.popular::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c5cbf, #a07de0);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}

.plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}

.plan-price span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.plan-period {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 40px;
}

.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.plan-btn:hover {
  background: rgba(124, 92, 191, 0.15);
  border-color: var(--purple);
}

.plan-card.popular .plan-btn {
  background: linear-gradient(135deg, #7c5cbf, #a07de0);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.35);
}

.plan-card.popular .plan-btn:hover {
  box-shadow: 0 12px 32px rgba(124, 92, 191, 0.5);
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-links a i {
  color: var(--purple);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* ========================================
   AUTH SECTION
   ======================================== */
.auth-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 5, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-section.visible {
  opacity: 1;
  pointer-events: all;
}

.auth-section.visible .auth-container {
  transform: translateY(0) scale(1);
}

.auth-container {
  max-width: 440px;
  width: 100%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
}

.close-btn:hover {
  border-color: var(--purple2);
  color: var(--text);
  transform: rotate(90deg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #7c5cbf, #a07de0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.35);
}

.auth-logo h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.auth-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.auth-tab {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  cursor: none;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.auth-tab.active {
  color: var(--accent);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  background: rgba(7, 5, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px 16px 50px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--purple2);
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: none;
  transition: color 0.2s;
  font-size: 16px;
}

.password-toggle:hover {
  color: var(--text);
}

.error-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 20px;
}

.error-msg.hidden {
  display: none;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #7c5cbf, #a07de0);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: none;
  font-family: 'DM Sans', sans-serif;
  margin-top: 16px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 191, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: #4ade80;
}

.toast.error {
  border-color: #ef4444;
}

.toast.info {
  border-color: var(--purple2);
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
