@font-face {
  font-family: 'Midnight Letters';
  src: url('../MidnightLetters-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

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

/* Model viewer progress bar */
model-viewer {
  --progress-bar-color: #6366f1;
  --progress-bar-height: 3px;
}

html, body {
  min-height: 100vh;
  background: #020617;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ===== SIDE RAYS ===== */
.side-rays-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020617;
}
.side-rays-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, rgba(99,102,241,0.15), #6366f1 70%, #38bdf8 90%, #fff);
  z-index: 10;
  transition: width 0.05s linear;
  box-shadow: 0 0 6px rgba(99,102,241,0.5), 0 0 14px rgba(56,189,248,0.3);
  border-radius: 0 0 14px 0;
}

/* ===== CARD NAV ===== */
.card-nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 800px);
  z-index: 150;
}
.card-nav {
  display: block;
  height: 60px;
  padding: 0;
  background: rgba(2,6,23,0.8);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(99,102,241,0.12), 0 0 60px rgba(56,189,248,0.06), 0 4px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  will-change: height;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card-nav.open {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 0 30px rgba(99,102,241,0.2), 0 0 80px rgba(56,189,248,0.1), 0 8px 32px rgba(0,0,0,0.4);
}
.card-nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 2;
}
.hamburger-menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
  z-index: 3;
}
.hamburger-menu:hover .hamburger-line { opacity: 0.7; }
.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: rgba(255,255,255,0.7);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: 50% 50%;
}
.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Midnight Letters', cursive;
  font-style: italic;
  font-size: 20px;
  white-space: nowrap;
  color: #fff;
  user-select: none;
  padding: 0 8px;
}
.logo-container .n {
  color: #2a5a9e;
}
.card-nav-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 10px;
  display: flex;
  gap: 14px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  justify-content: center;
  align-items: flex-start;
}
.card-nav.open .card-nav-content {
  visibility: visible;
  pointer-events: auto;
}
.nav-btn {
  flex: 0 0 auto;
  width: 130px;
  padding: 20px 14px 18px;
  border-radius: 14px 14px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(99,102,241,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.0), rgba(99,102,241,0.0), rgba(99,102,241,0.0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.4s;
  pointer-events: none;
  opacity: 0;
}
.nav-btn:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(56,189,248,0.6), rgba(99,102,241,0.6));
  animation: neonBorder 2s linear infinite;
}
@keyframes neonBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.nav-btn::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 30px rgba(99,102,241,0.15), 0 0 60px rgba(99,102,241,0.05);
}
.nav-btn:hover::after {
  opacity: 1;
  bottom: -12px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}
.nav-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.nav-btn:hover .nav-btn-icon {
  color: #a5b4fc;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.4));
}
.nav-btn:hover .nav-btn-icon svg {
  animation: iconBounce 0.4s ease-out;
}
@keyframes iconBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1.15); }
}
.nav-btn-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
  transition: all 0.3s;
}
.nav-btn:hover .nav-btn-label {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 12px rgba(99,102,241,0.3);
}

/* ===== SEARCH ===== */
.search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.search-input:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 12px rgba(99,102,241,0.1);
}
.search-results {
  max-height: 240px;
  overflow-y: auto;
}
.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s;
}
.search-item:hover {
  background: rgba(99,102,241,0.1);
}
.search-item-name {
  font-size: 14px;
}
.search-item-arrow {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.search-empty {
  text-align: center;
  color: rgba(255,255,255,0.3);
  padding: 20px;
  font-size: 13px;
}

/* ===== CONTACTS ===== */
.contacts-body {
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-telegram {
  background: rgba(38,165,229,0.08);
  color: #26a5e5;
}
.contact-telegram:hover {
  background: rgba(38,165,229,0.15);
  border-color: rgba(38,165,229,0.25);
  box-shadow: 0 0 20px rgba(38,165,229,0.1);
}
.contact-max {
  background: rgba(59,130,246,0.08);
  color: #3b82f6;
}
.contact-max:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 0 20px rgba(59,130,246,0.1);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
}

/* ===== LOGO ===== */
.logo {
  font-family: 'Midnight Letters', cursive;
  font-style: italic;
  font-size: clamp(20px, 6.5vw, 88px);
  user-select: none;
  display: inline-block;
  background: linear-gradient(90deg, #7a7a8a 0%, #b0b0c8 25%, #ffffff 50%, #b0b0c8 75%, #7a7a8a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
  text-align: center;
  line-height: 1.1;
  overflow: visible;
  padding: 0 10px;
}
.logo .num {
  color: #2a5a9e;
  -webkit-text-fill-color: #2a5a9e;
  text-shadow: 0 0 20px rgba(42,90,158,0.3);
}

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

/* ===== GLOW LINE ===== */
.glow-wrap {
  position: relative;
  width: min(700px, 90vw);
  height: 80px;
  margin-top: 8px;
}
.glow-wrap .line1 {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, #6366f1 20%, #38bdf8 50%, #6366f1 80%, transparent 98%);
  filter: blur(0.5px);
}
.glow-wrap .line2 {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 2%, #6366f1 20%, #38bdf8 50%, #6366f1 80%, transparent 98%);
}
.glow-wrap .blur1 {
  position: absolute;
  top: calc(50% - 3px);
  left: 10%;
  right: 10%;
  height: 6px;
  background: linear-gradient(90deg, transparent 5%, #6366f1 25%, #38bdf8 50%, #6366f1 75%, transparent 95%);
  filter: blur(6px);
  animation: linePulse 3s ease-in-out infinite;
}
.glow-wrap .blur2 {
  position: absolute;
  top: calc(50% - 6px);
  left: 15%;
  right: 15%;
  height: 12px;
  background: linear-gradient(90deg, transparent 5%, #818cf8 25%, #7dd3fc 50%, #818cf8 75%, transparent 95%);
  filter: blur(16px);
  opacity: 0.6;
  animation: linePulse 3s ease-in-out infinite 0.4s;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

.subtitle {
  color: rgba(255,255,255,0.3);
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 20px;
  text-align: center;
}

/* ===== MODELS SECTION ===== */
.cards-section {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.15) 80%, transparent 100%);
  border-radius: 2px;
}

/* ===== FOCUS GRID ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .focus-grid { grid-template-columns: 1fr; }
}
.focus-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  height: 260px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255,255,255,0.04);
}
.focus-card:hover {
  border-color: rgba(99,102,241,0.2);
}
.focus-card model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}
.focus-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.focus-card .card-date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.focus-grid.has-hover .focus-card {
  filter: saturate(0.5) brightness(0.5) blur(3px);
  transform: scale(0.96);
}
.focus-grid.has-hover .focus-card.hovered {
  filter: saturate(1.1) brightness(1) blur(0);
  transform: scale(1.05);
}
.focus-card.hovered .card-title {
  opacity: 1;
  transform: translateY(0);
}

/* Card action buttons */
.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}
.focus-card:hover .card-actions {
  opacity: 1;
}
.card-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.card-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.card-btn-delete:hover {
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}
.card-btn-share:hover {
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}
.card-btn-qr:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* QR Modal */
.qr-modal {
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  width: min(420px, 90vw);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.qr-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: #e2e8f0;
}
.qr-body {
  padding: 32px 24px;
  text-align: center;
}
.qr-frame {
  display: inline-block;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 20px;
}
.qr-img {
  display: block;
  border-radius: 8px;
  width: 280px;
  height: 280px;
}
.qr-hint {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  margin-bottom: 10px;
}
.qr-url {
  color: rgba(165,180,252,0.4);
  font-size: 10px;
  word-break: break-all;
  line-height: 1.5;
  margin-top: 12px;
}
.qr-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.qr-btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
  color: #a5b4fc;
}

.loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.3);
  padding: 60px 0;
  font-size: 14px;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: min(90vw, 500px);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-sm { width: min(90vw, 320px); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-body {
  padding: 24px;
}

/* ===== UPLOAD ===== */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
}
.upload-zone.dragover {
  border-color: #6366f1;
  background: rgba(99,102,241,0.1);
}
.upload-icon {
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.upload-hint {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  margin-top: 8px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(99,102,241,0.4);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.upload-progress {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  border-radius: 2px;
  transition: width 0.3s;
}
.progress-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  min-width: 40px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== AUTH ===== */
.pin-input {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.pin-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.pin-digit:focus {
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
}
.auth-hint {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.auth-hint.error { color: #ef4444; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 36px 20px;
  color: rgba(255,255,255,0.1);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ===== 3D VIEWER PAGE ===== */
.viewer-page {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(2,6,23,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.viewer-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.08);
  color: #a5b4fc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  overflow: hidden;
}
.viewer-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.08) 55%,
    transparent 70%
  );
  animation: btnShine 3s ease-in-out infinite;
  pointer-events: none;
}
.viewer-back:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.15);
  box-shadow: 0 0 20px rgba(99,102,241,0.2), 0 0 40px rgba(99,102,241,0.1);
  color: #fff;
  transform: translateX(-2px);
}
@keyframes btnShine {
  0% { left: -100%; }
  50% { left: 140%; }
  100% { left: 140%; }
}
.viewer-screenshot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.08);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.viewer-screenshot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.08) 55%, transparent 70%);
  animation: btnShine 3s ease-in-out infinite 1s;
  pointer-events: none;
}
.viewer-screenshot:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.15);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
  color: #fff;
}
.viewer-screenshot:active {
  transform: scale(0.95);
}
.viewer-title {
  font-size: 18px;
  font-weight: 600;
}
.viewer-actions {
  display: flex;
  gap: 8px;
}
.viewer-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 400px;
}
.viewer-container model-viewer {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  background: transparent;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .card-nav-container { width: 92%; top: 12px; }
  .card-nav-content { gap: 8px; padding: 8px; }
  .nav-btn { width: 100px; padding: 14px 8px 14px; }
  .nav-btn-icon { width: 36px; height: 36px; }
  .nav-btn-label { font-size: 10px; }
  .nav-btn:hover { transform: translateY(-4px); }
  .nav-btn:hover .nav-btn-icon { transform: scale(1.1); }
}
