/* ========================================
   3DEstate by Digimentra — Design System
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  --bg: #09090b;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #10b981;
  --accent-glow: rgba(16,185,129,0.15);
  --accent-2: #06b6d4;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}
::selection { background: var(--accent-glow); color: var(--accent); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, textarea, select {
  font-family: var(--font);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; letter-spacing: 0.03em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,0.3); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-hover); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(6,182,212,0.15); color: var(--accent-2); }
.badge-muted { background: rgba(161,161,170,0.15); color: var(--text-dim); }

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.header-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #fff;
}
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a, .header-nav button {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  background: transparent; transition: var(--transition);
}
.header-nav a:hover, .header-nav button:hover { color: var(--text); background: var(--bg-card); }
.header-nav .active { color: var(--accent); background: var(--accent-glow); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  cursor: pointer;
}
.lang-toggle {
  padding: 6px 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
}

/* Mobile menu */
.mobile-menu-btn { display: none; background: none; color: var(--text); padding: 8px; }
@media(max-width:768px) {
  .mobile-menu-btn { display: flex; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(9,9,11,0.98); backdrop-filter: blur(30px);
    padding: 24px; gap: 4px; z-index: 99;
  }
  .header-nav.open a, .header-nav.open button {
    padding: 16px; font-size: 1rem; border-radius: var(--radius-sm);
  }
}

/* ========================================
   PAGES
   ======================================== */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }

/* ========================================
   LANDING PAGE
   ======================================== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(100px); opacity: 0.5; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 32px;
  position: relative;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px; margin-bottom: 24px;
  position: relative;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 40px;
  line-height: 1.7; position: relative;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }

/* Features */
.features {
  padding: 100px 24px;
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  text-align: center; margin-bottom: 60px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(16,185,129,0.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.2rem; color: var(--accent);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Steps */
.steps { padding: 100px 24px; max-width: 900px; margin: 0 auto; }
.step-item {
  display: flex; gap: 24px; margin-bottom: 48px;
  padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
}
.step-num {
  min-width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
}
.step-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 0.88rem; color: var(--text-muted); }

/* Pricing */
.pricing { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pricing-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; transition: var(--transition); position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px var(--accent-glow);
}
.pricing-card.featured::before {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; margin: 16px 0; }
.pricing-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 24px 0; text-align: left; }
.pricing-card li {
  padding: 8px 0; font-size: 0.88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px; text-align: center;
  color: var(--text-dim); font-size: 0.8rem;
}
.footer a { color: var(--accent); }

/* ========================================
   DASHBOARD
   ======================================== */
.dash-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.dash-header h1 { font-size: 1.6rem; font-weight: 800; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Tour cards */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tour-card {
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition); cursor: pointer;
}
.tour-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.tour-thumb {
  height: 180px; background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent); position: relative;
}
.tour-thumb .status-pill {
  position: absolute; top: 12px; right: 12px;
}
.tour-info { padding: 16px; }
.tour-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tour-info .tour-meta {
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; gap: 12px; margin-top: 8px;
}
.tour-info .tour-meta span { display: flex; align-items: center; gap: 4px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 24px; }

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #18181b; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; }
.modal .form-group { margin-bottom: 16px; }
.modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

/* ========================================
   AUTH PAGE
   ======================================== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.auth-page::before {
  content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(120px); opacity: 0.4;
}
.auth-card {
  background: #18181b; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 420px; width: 100%; position: relative;
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-dim); }
.auth-card .auth-footer a { color: var(--accent); font-weight: 600; }

/* ========================================
   ADMIN PAGE
   ======================================== */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
  padding: 10px 18px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  border: 1px solid transparent;
}
.admin-tab:hover { color: var(--text); background: var(--bg-card); }
.admin-tab.active { color: var(--accent); background: var(--accent-glow); border-color: rgba(16,185,129,0.2); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table tr:hover td { background: var(--bg-card); color: var(--text); }

/* Settings form */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.settings-section { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.settings-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ========================================
   TOAST
   ======================================== */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: #18181b; border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--accent); }
.upload-area h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.upload-area p { font-size: 0.85rem; color: var(--text-dim); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-progress { margin-top: 16px; }
.progress-bar {
  height: 6px; border-radius: 99px; background: var(--bg-card); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

/* ========================================
   ERROR & STATUS BANNERS
   ======================================== */
.error-banner {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; margin: 10px 0 4px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px; font-size: 0.78rem;
  color: #fca5a5; line-height: 1.5;
  animation: errorFadeIn 0.3s ease;
}
.error-banner .error-icon { flex-shrink: 0; font-size: 0.9rem; }
.error-banner .error-text { word-break: break-word; }
@keyframes errorFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.processing-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 10px 0 4px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 8px; font-size: 0.78rem;
  color: var(--warning);
}

.processing-pulse {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245,158,11,0.05), transparent);
  animation: processPulse 2s ease-in-out infinite;
}
@keyframes processPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }

.btn-warning {
  background: rgba(245,158,11,0.15); color: var(--warning);
  border: 1px solid rgba(245,158,11,0.2);
}
.btn-warning:hover { background: rgba(245,158,11,0.25); }

/* ========================================
   3D VIEWER PAGE
   ======================================== */
.viewer-container {
  position: fixed; inset: 0; z-index: 500;
  background: #000; display: none;
}
.viewer-container.active { display: block; }
.viewer-canvas {
  width: 100%; height: 100%;
  display: block; outline: none;
}
.viewer-hud {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  z-index: 510;
}
.viewer-hud .key-hint {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.7rem; color: var(--text-muted);
}
.viewer-hud .key-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text);
}
.viewer-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  cursor: pointer; z-index: 510;
  transition: var(--transition);
}
.viewer-close:hover { background: rgba(239,68,68,0.3); border-color: rgba(239,68,68,0.5); }
.viewer-info {
  position: absolute; top: 16px; left: 16px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; z-index: 510;
}
.viewer-info h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.viewer-info p { font-size: 0.75rem; color: var(--text-muted); }

/* Joystick (mobile controls) */
.viewer-joystick {
  position: absolute; bottom: 80px; right: 24px;
  z-index: 510;
  display: none;
}
@media(max-width:768px) {
  .viewer-joystick { display: grid; }
}
.viewer-joystick { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; }
.joy-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.joy-btn:active { background: rgba(16,185,129,0.3); }
.joy-placeholder { visibility: hidden; }

/* Responsive */
@media(max-width:640px) {
  .modal { padding: 24px; margin: 12px; }
  .modal .form-row { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tours-grid { grid-template-columns: 1fr; }
  .step-item { flex-direction: column; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
