:root {
  --bg: #0A0A1A;
  --surface: #141428;
  --surface-light: #1E1E3A;
  --card: #1A1A32;
  --card-border: #2A2A4A;
  --primary: #7C5CFC;
  --primary-light: #9B82FC;
  --primary-dark: #5A3AD9;
  --accent: #6C63FF;
  --text: #FFFFFF;
  --text-secondary: #9A9ABF;
  --text-muted: #6B6B8D;
  --border: #252545;
  --danger: #FF4757;
  --success: #2ED573;
  --warning: #FFA502;
  --input-bg: #1A1A32;
  --input-border: #2A2A4A;
  --overlay: rgba(0, 0, 0, 0.7);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.hidden { display: none !important; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon span {
  font-size: 20px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-light);
}

.nav-link.active {
  color: var(--primary-light);
  background: rgba(124, 92, 252, 0.1);
}

.nav-link .material-icons-outlined {
  font-size: 20px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-light);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border);
}

.nav-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.nav-logout:hover {
  color: var(--danger);
  background: rgba(255, 71, 87, 0.1);
}

/* Main content */
.main-content {
  padding-top: 64px;
  min-height: 100vh;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-logo span {
  font-size: 28px;
  color: white;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card);
  border-color: var(--text-muted);
}

.btn-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 71, 87, 0.25);
}

.btn-full { width: 100%; }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary-light);
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--danger);
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-success {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #2ed573;
  display: none;
}

.auth-success.show {
  display: block;
}

.auth-forgot {
  text-align: right;
  margin-top: 8px;
  font-size: 13px;
}

.auth-forgot a {
  color: var(--text-secondary);
}

.auth-forgot a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Page headers */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.video-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.15);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-light));
}

.video-thumb-placeholder .material-icons-outlined {
  font-size: 48px;
  color: var(--text-muted);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.video-meta-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-meta-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-light);
  background-size: cover;
  background-position: center;
}

.video-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-valid {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
}

.status-invalid {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.status-partial {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

.status-pending {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

.status-unverified {
  background: rgba(154, 154, 191, 0.15);
  color: var(--text-secondary);
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.video-tag {
  background: rgba(124, 92, 252, 0.12);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Video detail page */
.video-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .video-detail {
    grid-template-columns: 1fr;
  }
}

.video-player-container {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-detail-info {
  margin-top: 20px;
}

.video-detail-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.video-detail-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.video-detail-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.video-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.validation-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.validation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.validation-row-label {
  color: var(--text-secondary);
}

.validation-row-value {
  font-weight: 500;
}

.uploader-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.uploader-info:hover {
  background: var(--surface-light);
}

.uploader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-light);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.uploader-name {
  font-size: 15px;
  font-weight: 600;
}

.uploader-handle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Profile page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface-light);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-handle {
  font-size: 15px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-location .material-icons-outlined {
  font-size: 16px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.profile-stat {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-stat strong {
  color: var(--text);
  font-weight: 600;
}

.profile-actions {
  margin-left: auto;
}

@media (max-width: 600px) {
  .profile-actions {
    margin-left: 0;
  }
}

/* Search page */
.search-bar {
  position: relative;
  margin-bottom: 32px;
}

.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px 14px 48px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 22px;
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.search-tab:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.search-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* User list */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.user-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.user-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-light);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.user-item-name {
  font-size: 15px;
  font-weight: 600;
}

.user-item-handle {
  font-size: 13px;
  color: var(--text-secondary);
}

.user-item-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.user-item-location .material-icons-outlined {
  font-size: 14px;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .material-icons-outlined {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

/* Loading */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(255, 71, 87, 0.4);
  color: var(--danger);
}

.toast.success {
  border-color: rgba(46, 213, 115, 0.4);
  color: var(--success);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Edit form inline */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Share link */
.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
}

.share-link-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.share-link-box button {
  background: none;
  border: none;
  color: var(--primary-light);
  padding: 4px;
  display: flex;
  align-items: center;
}

.share-link-box button:hover {
  color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-link span:last-child {
    display: none;
  }
  
  .page-container {
    padding: 20px 16px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 22px;
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* Video edit/delete actions */
.video-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Complete profile banner */
.profile-banner {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(108, 99, 255, 0.1));
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-banner .material-icons-outlined {
  font-size: 28px;
  color: var(--primary-light);
}

.profile-banner-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-banner-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Recording telemetry map (enhanced recordings only) */
.telemetry-map {
  height: 220px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--card-border);
}

.telemetry-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Leaflet renders dark-on-light controls; keep attribution legible on dark UI */
.telemetry-map .leaflet-control-attribution {
  background: rgba(26, 26, 50, 0.8);
  color: var(--text-muted);
}
.telemetry-map .leaflet-control-attribution a { color: var(--text-secondary); }

.telemetry-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

/* Fixed-height stage so rotating the outline never shifts the layout. The
   perspective gives the outline real depth as it pitches and yaws in 3D. */
.telemetry-phone-stage {
  position: relative;
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 520px;
}

.telemetry-phone-frame {
  position: relative;
  width: 50px;
  height: 100px;
  color: var(--text-secondary);
  transform-style: preserve-3d;
  transition: transform 0.15s ease, opacity 0.2s ease, color 0.2s ease;
}

.tm-phone-svg {
  position: absolute;
  inset: 0;
  display: block;
}

/* Dotted 3-axis gizmo, centred on the device and rotating with it. Each line is
   a zero-height element whose dotted top-border is the axis; X stays in plane,
   Y rotates to vertical, Z rotates into the screen for true depth. */
.tm-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 0;
  margin-left: -41px;
  border-top: 1.5px dotted currentColor;
  transform-origin: 50% 50%;
  opacity: 0.85;
}
.tm-axis-x { color: #FF4757; }
.tm-axis-y { color: #2ED573; transform: rotateZ(90deg); }
.tm-axis-z { color: #3B82F6; transform: rotateY(90deg); }

/* Live telemetry overlay — stays flat as a HUD while the gizmo tilts behind it. */
.tm-readout {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.tm-readout-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 88px;
}
.tm-readout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.tm-dot-x { background: #FF4757; }
.tm-dot-y { background: #2ED573; }
.tm-dot-z { background: #3B82F6; }
.tm-readout-row b {
  margin-left: auto;
  min-width: 36px;
  text-align: right;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease;
}
.tm-readout-row b.is-off { color: var(--success); }

/* Off-angle emphasis: a calm green tint + glow when the device drifts off
   upright. Green (not amber) keeps it informational rather than alarming. */
.telemetry-phone {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.telemetry-phone.is-off {
  border-color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(46, 213, 115, 0.3), 0 0 18px rgba(46, 213, 115, 0.14);
}
.telemetry-phone.is-off .telemetry-phone-frame {
  color: var(--success);
}

.telemetry-phone-caption {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.telemetry-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-stat-icon {
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.telemetry-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.telemetry-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Frame integrity ribbon */
.verify-ribbon {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
}

.verify-ribbon[data-status="valid"] {
  border-color: rgba(46, 213, 115, 0.35);
  box-shadow: 0 0 0 1px rgba(46, 213, 115, 0.06), 0 8px 28px rgba(46, 213, 115, 0.06);
}

.verify-ribbon[data-status="invalid"] {
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.06), 0 8px 28px rgba(255, 71, 87, 0.07);
}

.verify-ribbon[data-status="partial"] {
  border-color: rgba(255, 165, 2, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 165, 2, 0.06), 0 8px 28px rgba(255, 165, 2, 0.07);
}

.verify-ribbon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.verify-ribbon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.verify-ribbon-icon { font-size: 18px; }
.verify-ribbon[data-status="valid"] .verify-ribbon-icon { color: var(--success); }
.verify-ribbon[data-status="invalid"] .verify-ribbon-icon { color: var(--danger); }
.verify-ribbon[data-status="pending"] .verify-ribbon-icon { color: var(--warning); }
.verify-ribbon[data-status="unverified"] .verify-ribbon-icon { color: var(--text-muted); }

.verify-ribbon-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.verify-track {
  position: relative;
  height: 14px;
}

.verify-segs {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface);
  animation: verifyFadeIn 0.45s ease both;
}

.verify-seg {
  height: 100%;
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 2px;
  transition: filter var(--transition), opacity var(--transition);
}

.verify-seg[data-state="valid"] {
  background: linear-gradient(180deg, #36e07f, #23b863);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15), 0 0 8px rgba(46, 213, 115, 0.35);
}

.verify-seg[data-state="invalid"] {
  background: linear-gradient(180deg, #ff5e6c, #e8394a);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 71, 87, 0.5);
  animation: verifyPulse 1.6s ease-in-out infinite;
}

.verify-seg[data-state="gap"] {
  background: repeating-linear-gradient(45deg, #2c2c4c, #2c2c4c 4px, #212140 4px, #212140 8px);
}

.verify-seg[data-state="neutral"] {
  background: var(--surface-light);
}

.verify-seg[data-tip]:hover {
  filter: brightness(1.3);
}

@keyframes verifyFadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes verifyPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.45); }
}

/* One-time light sweep across the completed bar — confirms the validation pass */
.verify-sweep {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  overflow: hidden;
  pointer-events: none;
}

.verify-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-150%);
  animation: verifySweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s 1 forwards;
}

@keyframes verifySweep {
  to { transform: translateX(380%); }
}

/* Re-validation takeover — flash the whole bar red, then reveal real states.
   Placed after the data-state rules so equal specificity resolves in its favor. */
.verify-seg.verify-rescan {
  background: linear-gradient(180deg, #ff5e6c, #e8394a);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 71, 87, 0.5);
  animation: none; /* solid red — no pulse, even over tampered segments */
}

.verify-rescan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  border-radius: 5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-150%);
}

@keyframes verifyRescanBeam {
  to { transform: translateX(380%); }
}

/* Settle render right after a re-validation sweep: no intro fade / shimmer. */
.verify-ribbon.no-intro .verify-segs { animation: none; }
.verify-ribbon.no-intro .verify-sweep { display: none; }

/* Pending scanning state */
.verify-segs-pending {
  background: var(--surface-light);
}

.verify-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 2, 0.55), transparent);
  animation: verifyScan 1.4s ease-in-out infinite;
}

@keyframes verifyScan {
  0%   { left: -35%; }
  100% { left: 100%; }
}

/* Playhead synced to video playback */
.verify-playhead {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
  transition: left 0.08s linear;
  pointer-events: none;
}

.verify-playhead::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Hover tooltip */
.verify-tip {
  position: absolute;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  background: var(--surface-light);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.verify-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface-light);
}

/* Legend */
.verify-ribbon-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.verify-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verify-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.verify-dot[data-state="valid"] { background: var(--success); }
.verify-dot[data-state="invalid"] { background: var(--danger); }

.verify-ribbon-hint {
  margin-left: auto;
}

@media (max-width: 520px) {
  .verify-ribbon-hint { display: none; }
}

/* Frame data inspector — per-frame metadata below the ribbon */
.frame-inspector {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: verifyFadeIn 0.45s ease both;
}

.frame-inspector[data-status="valid"] { border-color: rgba(46, 213, 115, 0.22); }
.frame-inspector[data-status="invalid"] { border-color: rgba(255, 71, 87, 0.28); }
.frame-inspector[data-status="partial"] { border-color: rgba(255, 165, 2, 0.28); }

.frame-inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.frame-inspector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.frame-inspector-icon { font-size: 18px; color: var(--primary); }

.frame-inspector-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.fi-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px rgba(255, 165, 2, 0.7);
  animation: fiBlink 1s ease-in-out infinite;
}

.frame-inspector-mode[data-mode="inspecting"] .fi-mode-dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(46, 213, 115, 0.7);
  animation: none;
}

@keyframes fiBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.frame-inspector-body {
  border-radius: var(--radius-sm);
}

/* Detail view — always visible, tracks the current frame */
.fi-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fi-frame-id {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fi-frame-hash {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.fi-frame-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.fi-frame-tc {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.fi-chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.fi-chain-badge .material-icons-outlined { font-size: 15px; }
.fi-chain-badge[data-state="valid"] { background: rgba(46, 213, 115, 0.14); color: var(--success); }
.fi-chain-badge[data-state="invalid"] { background: rgba(255, 71, 87, 0.14); color: var(--danger); }
.fi-chain-badge[data-state="gap"] { background: var(--surface-light); color: var(--text-muted); }

.fi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.fi-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.fi-cell-wide { grid-column: 1 / -1; }

.fi-k {
  font-size: 12px;
  color: var(--text-muted);
}

.fi-v {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fi-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  word-break: break-all;
}

@media (max-width: 520px) {
  .fi-grid { grid-template-columns: 1fr; }
}

/* ---- Validation sweep takeover ---- */

/* Processing mode indicator (red pulsing dot while validating) */
.frame-inspector-mode[data-mode="processing"] {
  color: var(--danger);
}
.frame-inspector-mode[data-mode="processing"] .fi-mode-dot {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.85);
  animation: fiBlink 0.9s ease-in-out infinite;
}

/* The scan container clips the sweeping beam to the panel */
.fi-scan {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* The light beam that sweeps across the metadata */
.fi-beam {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -14%;
  width: 14%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(124, 92, 252, 0) 0%,
    rgba(124, 92, 252, 0.18) 45%,
    rgba(168, 145, 255, 0.55) 50%,
    rgba(124, 92, 252, 0.18) 55%,
    rgba(124, 92, 252, 0) 100%
  );
  box-shadow: 0 0 22px 6px rgba(124, 92, 252, 0.35);
  filter: blur(0.5px);
}

.fi-scan[data-loop="true"] .fi-beam {
  animation: fiBeamLoop 1.4s linear infinite;
}

@keyframes fiBeamSweep {
  from { left: -14%; }
  to   { left: 100%; }
}

@keyframes fiBeamLoop {
  from { left: -14%; }
  to   { left: 100%; }
}

/* Pending (unvalidated) state — everything starts red, then repaints as the
   beam passes. Transitions make each field flip smoothly to its real result. */
.fi-cell { transition: background 0.5s ease, box-shadow 0.5s ease; }
.fi-cell .fi-v,
.fi-frame-num,
.fi-chain-badge { transition: color 0.5s ease, background 0.5s ease; }

.fi-cell.fi-pending {
  background: rgba(255, 71, 87, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 71, 87, 0.30);
}
.fi-cell.fi-pending .fi-v { color: var(--danger) !important; }
.fi-cell.fi-pending .fi-k { color: rgba(255, 71, 87, 0.7); }

.fi-frame-id.fi-pending .fi-frame-num,
.fi-frame-id.fi-pending .fi-frame-hash { color: var(--danger); }

.fi-chain-badge.fi-pending {
  background: rgba(255, 71, 87, 0.14) !important;
  color: var(--danger) !important;
}

/* Analysis status banner */
.analysis-status-banner {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.analysis-status-text {
  flex: 1;
}

.analysis-status-title {
  font-size: 16px;
  font-weight: 700;
}

.analysis-status-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.analysis-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Analysis meta rows */
.analysis-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.analysis-meta-icon {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.analysis-meta-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.analysis-meta-value {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chain details */
.analysis-chains-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-chain-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left-width: 3px;
  border-left-style: solid;
}

.analysis-chain-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.analysis-chain-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-chain-name {
  font-size: 14px;
  font-weight: 600;
}

.analysis-chain-partial {
  background: rgba(255, 165, 2, 0.2);
  color: var(--warning);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.analysis-chain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.analysis-chain-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-chain-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.analysis-hash-value {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.3px;
}

/* Info tooltip */
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
  outline: none;
}

.info-tooltip-icon {
  font-size: 14px !important;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.info-tooltip:hover .info-tooltip-icon,
.info-tooltip:focus .info-tooltip-icon {
  opacity: 1;
  color: var(--text);
}

.info-tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

.info-tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text {
  opacity: 1;
  visibility: visible;
}

.public-video-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.public-video-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.uploader-info-public {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-video-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.public-video-footer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.public-video-footer a {
  color: var(--primary);
  text-decoration: none;
}

.public-video-footer a:hover {
  text-decoration: underline;
}

/* ===== Upload (2-step web upload) ===== */
.upload-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.upload-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.upload-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-light);
  border: 1px solid var(--border);
  font-size: 13px;
}

.upload-step.active {
  color: var(--text);
}

.upload-step.active .upload-step-num {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
}

.upload-step-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--surface-light);
}

.upload-dropzone.upload-dropzone-sm {
  padding: 18px 16px;
}

.upload-dropzone .material-icons-outlined {
  font-size: 32px;
  color: var(--text-muted);
}

.upload-dropzone.has-file {
  border-color: var(--primary);
  border-style: solid;
}

.upload-dropzone.has-file .material-icons-outlined {
  color: var(--primary-light);
}

.upload-dropzone-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.upload-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-progress-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.upload-progress-panel h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.upload-progress-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.upload-progress-icon .material-icons-outlined {
  font-size: 48px;
  color: var(--primary-light);
}

.upload-progress-icon.error .material-icons-outlined {
  color: var(--danger, #ff5d6c);
}

.progress-track {
  width: 100%;
  max-width: 360px;
  height: 10px;
  background: var(--surface-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress-pct {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* About — founder's letter */
.about-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.about-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-brand-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  color: #fff;
  font-size: 19px;
}

.about-brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.about-topbar-actions {
  display: flex;
  gap: 10px;
}

.about-letter {
  max-width: 680px;
  margin: 0 auto;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 18px;
}

.about-eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--primary-light);
}

.about-title {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.letter-body {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text-secondary);
}

.letter-body p {
  margin-bottom: 22px;
}

.letter-body em {
  color: var(--text);
  font-style: italic;
}

.letter-lede {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.letter-pull {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 30px 0 !important;
  padding-left: 18px;
  border-left: 3px solid var(--primary-light);
}

.letter-flat {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.letter-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 32px;
}

.letter-pillar {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.letter-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pillar-authentic::before { background: var(--primary-light); }
.pillar-complete::before  { background: var(--success); }
.pillar-real::before      { background: var(--warning); }

.letter-pillar-word {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-authentic .letter-pillar-word { color: var(--primary-light); }
.pillar-complete .letter-pillar-word  { color: var(--success); }
.pillar-real .letter-pillar-word      { color: var(--warning); }

.letter-pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.letter-sign {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.letter-sign-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px !important;
  letter-spacing: -0.3px;
}

.letter-sign-role {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 !important;
}

.about-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

.about-notice-icon {
  font-size: 20px;
  color: var(--accent, var(--text-secondary));
}

.about-notice-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
}

.about-cta {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.about-examples {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 56px 24px 0;
  border-top: 1px solid var(--border);
}

.about-examples-title {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 12px;
  letter-spacing: -0.5px;
}

.about-examples-sub {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 36px;
}

.about-samples-link .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.samples-page {
  max-width: 1120px;
}

.samples-page .about-examples {
  max-width: none;
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.samples-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.samples-table {
  display: grid;
  grid-template-columns: 96px repeat(4, minmax(170px, 1fr));
  gap: 14px 16px;
  min-width: 840px;
  align-items: start;
}

.sample-corner {
  border-bottom: 1px solid var(--border);
}

.sample-colhead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sample-colhead .video-status {
  align-self: flex-start;
}

.sample-colhead-tagline {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

.sample-rowhead {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  height: 100%;
}

.sample-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sample-cell:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.example-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-light), var(--surface));
  overflow: hidden;
}

.example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .about-examples { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .letter-pillars { grid-template-columns: 1fr; }
  .letter-body { font-size: 16.5px; }
}
