/* ═══════════════════════════════════════════════════════════════
   SAMSSHOP MAINTENANCE MODE — ULTRA-FUTURISTIC DARK GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg-dark: #07090e;
  --bg-deep: #040610;
  --card-glass: rgba(18, 24, 38, 0.6);
  --card-glass-hover: rgba(22, 30, 48, 0.75);
  --border-neon: rgba(0, 240, 255, 0.3);
  --border-neon-strong: rgba(0, 240, 255, 0.6);
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.15);
  --accent-purple: #7000ff;
  --accent-purple-dim: rgba(112, 0, 255, 0.15);
  --accent-violet: #9b30ff;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --danger-red: #ff3c3c;
  --danger-orange: #ff8c00;
  --success-green: #00ff88;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --glass-blur: 24px;
  --glass-saturate: 180%;
  --glass-border: 1px solid rgba(255, 255, 255, 0.125);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax-layer,
  .floating-node {
    transform: none !important;
  }
}

/* ═══════════ WEBGL CANVAS ═══════════════════════════════════ */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════ HOLOGRAPHIC GRID OVERLAY ═══════════════════════ */
.holo-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,0.5) 0%, transparent 100%);
}

/* ═══════════ AMBIENT LIGHTS ═════════════════════════════════ */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}

.ambient-light--cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: ambient-drift-1 12s ease-in-out infinite alternate;
}

.ambient-light--violet {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
  bottom: -250px;
  left: -200px;
  animation: ambient-drift-2 15s ease-in-out infinite alternate;
}

.ambient-light--center {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(112, 0, 255, 0.04) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ambient-pulse 8s ease-in-out infinite;
}

@keyframes ambient-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(1.15); }
}

@keyframes ambient-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -80px) scale(1.1); }
}

@keyframes ambient-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ═══════════ PARALLAX FLOATING NODES ════════════════════════ */
.parallax-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.floating-node {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.node-1 {
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan), 0 0 30px rgba(0,240,255,0.3);
  top: 15%; left: 10%;
  animation-delay: 0s;
}
.node-2 {
  width: 4px; height: 4px;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple), 0 0 24px rgba(112,0,255,0.3);
  top: 25%; right: 15%;
  animation-delay: -1s;
}
.node-3 {
  width: 5px; height: 5px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  bottom: 30%; left: 20%;
  animation-delay: -2s;
}
.node-4 {
  width: 3px; height: 3px;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet);
  top: 60%; right: 25%;
  animation-delay: -3s;
}
.node-5 {
  width: 7px; height: 7px;
  background: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 14px var(--accent-cyan), 0 0 40px rgba(0,240,255,0.2);
  top: 80%; left: 8%;
  animation-delay: -4s;
}
.node-6 {
  width: 4px; height: 4px;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  top: 10%; left: 55%;
  animation-delay: -1.5s;
}
.node-7 {
  width: 5px; height: 5px;
  background: rgba(0,240,255,0.5);
  box-shadow: 0 0 12px rgba(0,240,255,0.4);
  bottom: 15%; right: 10%;
  animation-delay: -2.5s;
}
.node-8 {
  width: 3px; height: 3px;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet);
  top: 45%; left: 80%;
  animation-delay: -3.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-15px) translateX(8px); }
  50% { transform: translateY(-25px) translateX(-5px); }
  75% { transform: translateY(-10px) translateX(12px); }
}

/* ═══════════ TOP BAR ════════════════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

/* ── Sound Toggle Button ───────────────────────────────────── */
.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--glass-border);
  background: var(--card-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.control-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: scale(1.05);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn.active {
  color: var(--accent-cyan);
  border-color: var(--border-neon-strong);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

/* ── Status Pill ───────────────────────────────────────────── */
.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--card-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  animation: status-fade-in 1s ease-out 0.5s both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger-orange);
  box-shadow: 0 0 8px var(--danger-red), 0 0 20px rgba(255, 60, 60, 0.3);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.status-sep {
  color: var(--text-dim);
  margin: 0 2px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--danger-red), 0 0 20px rgba(255, 60, 60, 0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--danger-orange), 0 0 10px rgba(255, 140, 0, 0.2); }
}

@keyframes status-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ CSS 3D SHIELD FALLBACK ═════════════════════════ */
.css-shield-fallback {
  display: none; /* Shown only when WebGL is unavailable */
  perspective: 800px;
  margin-bottom: 24px;
}

.css-shield-fallback.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-inner {
  animation: shield-rotate 8s linear infinite;
  transform-style: preserve-3d;
}

.shield-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}

.shield-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(112, 0, 255, 0.08) 50%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes shield-rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ═══════════ HERO CONTAINER ═════════════════════════════════ */
.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 24px 60px;
  text-align: center;
  gap: 28px;
}

/* ═══════════ HERO HEADLINE ══════════════════════════════════ */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    #e0e8ff 0%,
    #ffffff 20%,
    #00f0ff 40%,
    #ffffff 55%,
    #c4b5fd 70%,
    #7000ff 85%,
    #e0e8ff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite, float-up 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.15)) drop-shadow(0 0 80px rgba(112, 0, 255, 0.1));
  user-select: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(12px, 2vw, 28px);
}

.headline-word {
  display: inline-block;
  animation: word-reveal 0.8s var(--transition-bounce) both;
}
.headline-word:nth-child(1) { animation-delay: 0.2s; }
.headline-word:nth-child(2) { animation-delay: 0.35s; }
.headline-word:nth-child(3) { animation-delay: 0.5s; }
.headline-word:nth-child(4) { animation-delay: 0.65s; }

@keyframes word-reveal {
  from { opacity: 0; transform: translateY(40px) scale(0.9); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ═══════════ GLASSMORPHIC CARD BASE ═════════════════════════ */
.glass-card {
  position: relative;
  background: var(--card-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  animation: card-enter 0.8s var(--transition-smooth) 0.8s both;
}

.glass-card:hover {
  background: var(--card-glass-hover);
  box-shadow: var(--glass-shadow), 0 0 40px rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Animated Neon Border ──────────────────────────────────── */
.card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  z-index: -1;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    var(--accent-cyan) 10%,
    var(--accent-purple) 20%,
    transparent 30%,
    transparent 100%
  );
  opacity: 0.5;
  animation: border-spin 4s linear infinite;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .card-border-glow {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.15;
    animation: none;
  }
}

/* ═══════════ SUB-TEXT CARD ═══════════════════════════════════ */
.sub-card {
  animation-delay: 1s;
}

.sub-text {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

.bot-mention {
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
}

.bot-mention::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s var(--transition-smooth);
}

.bot-mention:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.3);
}

.bot-mention:hover::after {
  width: 100%;
}

/* ═══════════ CTA BUTTON ═════════════════════════════════════ */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 16px;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  box-shadow:
    0 4px 24px rgba(0, 240, 255, 0.25),
    0 8px 40px rgba(112, 0, 255, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.4s var(--transition-smooth);
  animation: cta-enter 0.8s var(--transition-bounce) 1.2s both, pulse-glow 3s ease-in-out infinite 2s;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(0, 240, 255, 0.35),
    0 16px 56px rgba(112, 0, 255, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes cta-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 4px 24px rgba(0, 240, 255, 0.25),
      0 8px 40px rgba(112, 0, 255, 0.15),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
  50% {
    box-shadow:
      0 4px 32px rgba(0, 240, 255, 0.4),
      0 8px 48px rgba(112, 0, 255, 0.3),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
}

/* CTA Ripple Effect */
.cta-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  z-index: 0;
}

.cta-ripple.active {
  animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.telegram-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
  z-index: 1;
}

.cta-label {
  z-index: 1;
  white-space: nowrap;
}

/* ═══════════ ORDER CARD ═════════════════════════════════════ */
.order-card {
  animation-delay: 1.4s;
}

.order-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--text-main), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.order-card-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.order-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.order-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s var(--transition-smooth);
}

.order-input::placeholder {
  color: var(--text-dim);
}

.order-input:focus {
  border-color: var(--border-neon);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), 0 0 20px rgba(0, 240, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--border-neon);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  transform: scale(1.03);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--success-green);
}

/* ═══════════ RESPONSIVE ═════════════════════════════════════ */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
  }

  .status-pill {
    font-size: 0.65rem;
    padding: 8px 14px;
    gap: 6px;
  }

  .status-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-container {
    padding: 90px 16px 40px;
    gap: 22px;
  }

  .glass-card {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .cta-button {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .cta-label {
    white-space: normal;
    text-align: left;
  }

  .order-input-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    letter-spacing: -0.03em;
  }

  .status-text {
    max-width: 140px;
  }

  .sub-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .hero-container {
    padding: 80px 12px 30px;
  }

  .cta-button {
    padding: 14px 18px;
    font-size: 0.85rem;
  }
}

/* ═══════════ SCROLLBAR ══════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.3);
}

/* ═══════════ SELECTION ══════════════════════════════════════ */
::selection {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
}
