/* =============================================
   FSB Showcase - Recreation Styles
   Browser frame, side panel mockup, dashboard,
   glow effects, progress overlay
   ============================================= */

/* --- Recreation Design Tokens (dark = default) --- */
:root {
  --rec-frame-bg: #0a0a0a;
  --rec-topbar-bg: #050505;
  --rec-sp-bg: #1f2937;
  --rec-sp-input-bg: #111827;
  --rec-sp-border: rgba(255, 255, 255, 0.06);
  --rec-msg-system-bg: #374151;
  --rec-msg-system-color: #d1d5db;
  --rec-msg-ai-bg: rgba(33, 150, 243, 0.1);
  --rec-msg-ai-color: #90caf9;
  --rec-msg-action-bg: rgba(76, 175, 80, 0.08);
  --rec-msg-action-color: #81c784;
  --rec-msg-status-color: #d1d5db;
  --rec-sidebar-bg: #111827;
  --rec-main-bg: #0a0a0a;
  --rec-page-bg: #0a0a0a;
  --rec-text-primary: #f1f5f9;
  --rec-text-secondary: #9ca3af;
  --rec-text-muted: #6b7280;
  --rec-text-link: #93c5fd;
  --rec-text-bright: #e2e8f0;
  --rec-text-heading: #f9fafb;
  --rec-input-bg: rgba(255, 255, 255, 0.04);
  --rec-input-border: rgba(255, 255, 255, 0.1);
  --rec-input-text: #e2e8f0;
  --rec-input-placeholder: #6b7280;
  --rec-chart-bg: rgba(255, 255, 255, 0.03);
  --rec-chart-border: rgba(255, 255, 255, 0.06);
  --rec-address-bg: rgba(255, 255, 255, 0.06);
  --rec-icon-btn-bg: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
  --rec-frame-bg: #e8e8e8;
  --rec-topbar-bg: #dedede;
  --rec-sp-bg: #ffffff;
  --rec-sp-input-bg: #f8f9fa;
  --rec-sp-border: rgba(0, 0, 0, 0.08);
  --rec-msg-system-bg: #f1f3f5;
  --rec-msg-system-color: #495057;
  --rec-msg-ai-bg: #e3f2fd;
  --rec-msg-ai-color: #1565c0;
  --rec-msg-action-bg: #f0f8f0;
  --rec-msg-action-color: #2e7d32;
  --rec-msg-status-color: #495057;
  --rec-sidebar-bg: #f8fafc;
  --rec-main-bg: #ffffff;
  --rec-page-bg: #ffffff;
  --rec-text-primary: #0f172a;
  --rec-text-secondary: #475569;
  --rec-text-muted: #94a3b8;
  --rec-text-link: #1e40af;
  --rec-text-bright: #1e293b;
  --rec-text-heading: #0f172a;
  --rec-input-bg: rgba(0, 0, 0, 0.03);
  --rec-input-border: rgba(0, 0, 0, 0.1);
  --rec-input-text: #1e293b;
  --rec-input-placeholder: #94a3b8;
  --rec-chart-bg: rgba(0, 0, 0, 0.02);
  --rec-chart-border: rgba(0, 0, 0, 0.06);
  --rec-address-bg: rgba(0, 0, 0, 0.05);
  --rec-icon-btn-bg: rgba(0, 0, 0, 0.06);
}

/* --- Browser Chrome Frame --- */
.browser-frame {
  background: var(--rec-frame-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--rec-topbar-bg);
  border-bottom: 1px solid var(--rec-sp-border);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-dots .dot-red { background: #ff5f57; }
.browser-dots .dot-yellow { background: #febc2e; }
.browser-dots .dot-green { background: #28c840; }

.browser-address {
  flex: 1;
  background: var(--rec-address-bg);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--rec-text-muted);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-content {
  display: flex;
  min-height: 400px;
  position: relative;
}

/* --- Side Panel Mockup (rec- prefix) --- */
.rec-sidepanel {
  width: 320px;
  flex-shrink: 0;
  background: var(--rec-sp-bg);
  border-left: 1px solid var(--rec-sp-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rec-sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rec-sp-border);
}

.rec-sp-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rec-sp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rec-text-heading);
}

.rec-sp-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

.rec-status-dot.running {
  background: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
  animation: recPulse 2s infinite;
}

@keyframes recPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.rec-status-text {
  font-size: 11px;
  color: var(--rec-text-secondary);
  font-weight: 500;
}

.rec-sp-actions {
  display: flex;
  gap: 6px;
}

.rec-sp-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rec-icon-btn-bg);
  border-radius: 6px;
  color: var(--rec-text-secondary);
  font-size: 12px;
}

/* Messages area */
.rec-messages {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.rec-msg {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* User message - orange gradient, right-aligned */
.rec-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* System message - gray */
.rec-msg.system {
  align-self: flex-start;
  background: var(--rec-msg-system-bg);
  color: var(--rec-msg-system-color);
  border-bottom-left-radius: 4px;
}

/* AI message - blue bg, blue left border */
.rec-msg.ai {
  align-self: flex-start;
  background: var(--rec-msg-ai-bg);
  color: var(--rec-msg-ai-color);
  border-bottom-left-radius: 4px;
  border-left: 3px solid #2196f3;
}

/* Action message - green monospace */
.rec-msg.action {
  align-self: stretch;
  max-width: 100%;
  background: var(--rec-msg-action-bg);
  color: var(--rec-msg-action-color);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 11px;
  border-radius: 8px;
  border-left: 3px solid #4caf50;
}

/* Status message with typing dots */
.rec-msg.status {
  align-self: flex-start;
  background: linear-gradient(135deg, #0a0a0a, #141414);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rec-msg-status-color);
}

[data-theme="light"] .rec-msg.status {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.rec-typing-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.rec-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: recTyping 1.4s infinite ease-in-out;
}

.rec-typing-dots span:nth-child(1) { animation-delay: 0s; }
.rec-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.rec-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes recTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* Input area at bottom */
.rec-sp-input {
  padding: 10px 14px;
  border-top: 1px solid var(--rec-sp-border);
}

.rec-sp-input-inner {
  display: flex;
  align-items: center;
  background: var(--rec-sp-input-bg);
  border: 1px solid var(--rec-sp-border);
  border-radius: 20px;
  padding: 8px 12px;
  gap: 8px;
}

.rec-sp-input-text {
  flex: 1;
  font-size: 12px;
  color: var(--rec-text-muted);
}

.rec-sp-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

/* --- Viewport Glow Effect (acting state) --- */
.rec-viewport-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.rec-glow-ambient {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 40px rgba(255, 140, 0, 0.24),
    inset 0 0 80px rgba(255, 102, 0, 0.12);
}

.rec-glow-bar {
  position: absolute;
  filter: blur(1.5px) brightness(1.50);
}

.rec-glow-bar.top {
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ff6600 40%, #ff8c00 60%, transparent 100%);
  background-size: 200% 100%;
  animation: slideRight 2s linear infinite;
}

.rec-glow-bar.right {
  top: 0; right: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, transparent 0%, #ff6600 40%, #ff8c00 60%, transparent 100%);
  background-size: 100% 200%;
  animation: slideDown 2s linear infinite 0.5s;
}

.rec-glow-bar.bottom {
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(270deg, transparent 0%, #ff6600 40%, #ff8c00 60%, transparent 100%);
  background-size: 200% 100%;
  animation: slideLeft 2s linear infinite 1s;
}

.rec-glow-bar.left {
  top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(0deg, transparent 0%, #ff6600 40%, #ff8c00 60%, transparent 100%);
  background-size: 100% 200%;
  animation: slideUp 2s linear infinite 1.5s;
}

@keyframes slideRight {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideDown {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

@keyframes slideLeft {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

@keyframes slideUp {
  0%   { background-position: 0 200%; }
  100% { background-position: 0 -100%; }
}

/* --- Element Highlight Glow --- */
.rec-element-highlight {
  outline: 3px solid #FF8C00 !important;
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.55),
    0 0 20px rgba(255, 140, 0, 0.33),
    0 0 30px rgba(255, 140, 0, 0.17);
  animation: recElementPulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 10;
}

@keyframes recElementPulse {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(255, 140, 0, 0.55),
      0 0 16px rgba(255, 140, 0, 0.33),
      0 0 32px rgba(255, 140, 0, 0.17);
  }
  50% {
    box-shadow:
      0 0 10px rgba(255, 140, 0, 0.77),
      0 0 20px rgba(255, 140, 0, 0.50),
      0 0 40px rgba(255, 140, 0, 0.28);
  }
}

/* --- Progress Overlay Mockup --- */
.rec-progress-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 260px;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.3);
  z-index: 20;
}

.rec-overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-overlay-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.rec-overlay-title {
  font-weight: 600;
  font-size: 12px;
}

.rec-overlay-task {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-overlay-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rec-overlay-step-badge {
  background: rgba(255, 140, 0, 0.2);
  color: #FF8C00;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.rec-overlay-step-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.rec-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF8C00, #FF6600);
  border-radius: 2px;
}

/* --- Dashboard Mockup --- */
.rec-dashboard {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Dashboard header bar */
.rec-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--rec-main-bg);
  border-bottom: 1px solid var(--rec-sp-border);
  flex-shrink: 0;
}

.rec-header-left {
  display: flex;
  align-items: center;
}

.rec-header-menu {
  background: none;
  border: none;
  color: var(--rec-text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}

.rec-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.rec-header-status {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.rec-header-status-dot {
  font-size: 8px;
  color: #10b981;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
  animation: recHeaderPulse 2s infinite;
}

@keyframes recHeaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.rec-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rec-text-secondary);
  background: transparent;
  border: 1px solid var(--rec-sp-border);
  border-radius: 6px;
  cursor: default;
  white-space: nowrap;
}

.rec-header-btn i {
  font-size: 10px;
}

.rec-header-theme-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.rec-header-theme-toggle i {
  font-size: 12px;
}

/* Dashboard body (sidebar + main) */
.rec-dashboard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.rec-sidebar {
  width: 200px;
  background: var(--rec-sidebar-bg);
  border-right: 1px solid var(--rec-sp-border);
  padding: 12px 8px;
  flex-shrink: 0;
}

.rec-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--rec-text-secondary);
  cursor: default;
  transition: all 0.15s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.rec-sidebar-item.active {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
}

.rec-sidebar-item i {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

/* Beta badge for Passwords nav item */
.rec-badge-beta {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  vertical-align: middle;
  margin-left: 2px;
}

[data-theme="light"] .rec-badge-beta {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.rec-main-content {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  background: var(--rec-main-bg);
}

/* Analytics hero card */
.rec-analytics-hero {
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

[data-theme="light"] .rec-analytics-hero {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.rec-metric {
  text-align: center;
}

.rec-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.rec-metric-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Chart card */
.rec-chart {
  background: var(--rec-chart-bg);
  border: 1px solid var(--rec-chart-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.rec-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rec-chart-title {
  font-size: 12px;
  color: var(--rec-text-secondary);
  font-weight: 600;
}

.rec-chart-select {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--rec-chart-border);
  border-radius: 6px;
  background: var(--rec-chart-bg);
  color: var(--rec-text-secondary);
  cursor: default;
  outline: none;
  -webkit-appearance: auto;
}

/* SVG line chart */
.rec-chart-line {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.rec-line-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Session cards */
.rec-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--rec-chart-bg);
  border: 1px solid var(--rec-chart-border);
  border-radius: 12px;
  padding: 10px 14px;
}

.rec-session-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-session-task {
  font-size: 12px;
  color: var(--rec-text-bright);
}

.rec-session-time {
  font-size: 10px;
  color: var(--rec-text-muted);
}

.rec-session-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.rec-session-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.rec-session-badge.stopped {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* --- Google Search Mockup (1:1 Replica) --- */
.rec-google-page {
  flex: 1;
  background: #202124;
  padding: 0;
  overflow: hidden;
  position: relative;
  font-family: arial, sans-serif;
}

[data-theme="light"] .rec-google-page {
  background: #fff;
}

/* Header: Logo + Search Bar row */
.rec-google-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 16px 0 16px;
}

.rec-google-logo img {
  height: 30px;
  display: block;
  flex-shrink: 0;
}

/* Search Bar (results-page pill style) */
.rec-google-searchbar {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 580px;
  background: transparent;
  border: 1px solid #5f6368;
  border-radius: 24px;
  padding: 6px 14px;
  height: 34px;
  box-sizing: border-box;
}

[data-theme="light"] .rec-google-searchbar {
  border-color: #dfe1e5;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rec-searchbar-text {
  flex: 1;
  font-size: 13px;
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .rec-searchbar-text {
  color: #202124;
}

.rec-searchbar-clear {
  font-size: 12px;
  color: #9aa0a6;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

.rec-searchbar-divider {
  width: 1px;
  height: 18px;
  background: #5f6368;
  margin: 0 6px;
}

[data-theme="light"] .rec-searchbar-divider {
  background: #dadce0;
}

.rec-searchbar-icon {
  color: #9aa0a6;
  font-size: 13px;
  margin-left: 6px;
}

.rec-searchbar-icon:first-of-type {
  color: #4285f4;
}

[data-theme="light"] .rec-searchbar-icon {
  color: #70757a;
}

[data-theme="light"] .rec-searchbar-icon:first-of-type {
  color: #4285f4;
}

/* Navigation Tabs */
.rec-google-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px 0 72px;
  border-bottom: 1px solid #3c4043;
  margin-top: 2px;
}

[data-theme="light"] .rec-google-nav {
  border-bottom-color: #ebebeb;
}

.rec-google-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 12px;
  color: #969ba1;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}

[data-theme="light"] .rec-google-nav-tab {
  color: #5f6368;
}

.rec-google-nav-tab.active {
  color: #8ab4f8;
  border-bottom-color: #8ab4f8;
}

[data-theme="light"] .rec-google-nav-tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.rec-google-nav-tab i {
  font-size: 11px;
}

/* Result Count */
.rec-google-result-count {
  padding: 10px 16px 4px 72px;
  font-size: 11px;
  color: #9aa0a6;
}

[data-theme="light"] .rec-google-result-count {
  color: #70757a;
}

/* Results Container */
.rec-google-results {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 16px 16px 56px;
}

/* Individual Result */
.rec-google-result {
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  transition: background 0.15s ease;
}

.rec-google-result:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .rec-google-result:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Site info row: favicon + name + URL */
.rec-result-site {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.rec-result-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: arial, sans-serif;
}

.rec-result-site-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.rec-result-site-name {
  font-size: 12px;
  color: #e8eaed;
  line-height: 1.3;
}

[data-theme="light"] .rec-result-site-name {
  color: #202124;
}

.rec-result-url {
  font-size: 11px;
  color: #969ba1;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .rec-result-url {
  color: #4d5156;
}

/* Result Title */
.rec-result-title {
  font-size: 16px;
  color: #8ab4f8;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}

.rec-result-title:hover {
  text-decoration: underline;
}

[data-theme="light"] .rec-result-title {
  color: #1a0dab;
}

/* Result Snippet */
.rec-result-snippet {
  font-size: 13px;
  color: #bdc1c6;
  line-height: 1.5;
}

[data-theme="light"] .rec-result-snippet {
  color: #4d5156;
}

/* Responsive: tighten up on small screens */
@media (max-width: 768px) {
  .rec-google-header {
    gap: 12px;
    padding: 8px 10px 0 10px;
  }

  .rec-google-logo img {
    height: 22px;
  }

  .rec-google-nav {
    padding-left: 10px;
    gap: 0;
    overflow-x: auto;
  }

  .rec-google-result-count {
    padding-left: 10px;
  }

  .rec-google-results {
    padding-left: 10px;
  }

  .rec-google-nav-tab {
    font-size: 11px;
    padding: 6px 8px;
  }

  .rec-result-title {
    font-size: 14px;
  }

  .rec-result-snippet {
    font-size: 12px;
  }
}

/* --- Contact Form Mockup --- */
.rec-form-page {
  flex: 1;
  background: var(--rec-page-bg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.rec-contact-form {
  width: 100%;
  max-width: 380px;
}

.rec-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rec-text-primary);
  margin-bottom: 20px;
}

.rec-form-group {
  margin-bottom: 14px;
}

.rec-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rec-text-secondary);
  margin-bottom: 6px;
}

.rec-form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--rec-input-bg);
  border: 1px solid var(--rec-input-border);
  border-radius: 8px;
  color: var(--rec-input-text);
  font-size: 13px;
  outline: none;
}

.rec-form-input.filled {
  color: var(--rec-text-primary);
}

.rec-form-input.highlighted {
  border-color: transparent;
}

.rec-form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--rec-input-bg);
  border: 1px solid var(--rec-input-border);
  border-radius: 8px;
  color: var(--rec-input-placeholder);
  font-size: 13px;
  min-height: 80px;
  resize: none;
  outline: none;
}

.rec-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  margin-top: 4px;
}

/* --- Responsive Recreations --- */
@media (max-width: 1024px) {
  .browser-content {
    flex-direction: column;
  }

  .rec-sidepanel {
    width: 100%;
    max-height: 300px;
    border-left: none;
    border-top: 1px solid var(--rec-sp-border);
  }

  .rec-sidebar {
    width: 160px;
  }

  .rec-analytics-hero {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-header-btn span {
    display: none;
  }
}

@media (max-width: 768px) {
  .rec-sidepanel {
    max-height: 260px;
  }

  .rec-sidebar {
    display: none;
  }

  .rec-analytics-hero {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }

  .rec-metric-value {
    font-size: 1.2rem;
  }

  .rec-progress-overlay {
    width: 200px;
    padding: 10px 12px;
  }

  .rec-dashboard-header {
    padding: 6px 10px;
  }

  .rec-header-btn {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .rec-progress-overlay {
    width: 180px;
    padding: 8px 10px;
  }

  .browser-content {
    min-height: 300px;
  }

  .rec-contact-form {
    max-width: 100%;
  }

  .rec-form-page {
    padding: 16px;
  }

  .rec-google-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rec-analytics-hero {
    grid-template-columns: 1fr;
  }

  .rec-metric-value {
    font-size: 1rem;
  }

  .rec-sidepanel {
    max-height: 220px;
  }
}
