/* -------------------------------------------------------------
 * SUPERX MAIL MARKETING PLATFORM - STYLESHEET
 * Premium, Glassmorphic, Modern SaaS Aesthetic (Zinc & Orange)
 * Includes updates for Multi-Template Grid & Firestore Sync
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121214;
  --bg-card: #1c1c1f;
  --border-muted: #2e2e33;
  --border-active: #3e3e46;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-color: #F97316;
  --accent-hover: #f97316;
  --accent-glow: rgba(234, 88, 12, 0.15);
  --success-color: #10b981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Premium Light Theme override based on system default prefers-color-scheme */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f4f4f5;
    --bg-secondary: #ffffff;
    --bg-card: #f4f4f5;
    --border-muted: #e4e4e7;
    --border-active: #cbd5e1;
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --accent-glow: rgba(234, 88, 12, 0.08);
  }
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

/* Header bar */
header {
  height: 64px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-title);
  box-shadow: 0 0 15px var(--accent-glow);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.actions-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 1px 2px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

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

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-secondary);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.btn-icon-only {
  padding: 8px;
  border-radius: 6px;
  aspect-ratio: 1;
}

/* Layout Main Workspace */
.workspace-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar Editor Panel */
.sidebar {
  width: 420px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.sidebar-header-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-muted);
  background-color: rgba(9, 9, 11, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.firestore-sync-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.firestore-sync-bar i {
  flex-shrink: 0;
}

.pinned-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-search-row {
  padding: 16px 24px 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-search input {
  width: 100%;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.925rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-search input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.history-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sidebar-content {
  padding: 14px 24px 24px 24px;
}

.master-form {
  display: flex;
  flex-direction: column;
}

.field-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background-color: var(--bg-card);
  margin-bottom: 16px;
}

.field-card label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.field-card input, 
.field-card textarea {
  width: 100%;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  padding: 11px 15px;
  font-size: 0.925rem;
  font-family: var(--font-sans);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-card input:focus, 
.field-card textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.field-card textarea {
  resize: vertical;
  min-height: 90px;
}

/* Color Picker Container */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-muted);
}

.color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border-radius: 4px;
  border: 1px solid var(--border-active);
}

.color-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* General form fields layout */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label span.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  padding: 11px 15px;
  color: var(--text-primary);
  font-size: 0.925rem;
  font-family: var(--font-sans);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Preview Area */
.preview-container {
  flex: 1;
  background-color: #0f0f11;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.preview-toolbar {
  height: 52px;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.viewport-selectors {
  display: flex;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  padding: 3px;
  border-radius: 8px;
}

.viewport-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.viewport-btn:hover {
  color: var(--text-primary);
}

.viewport-btn.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-sm);
}

/* Segmented Tabs & View Switch */
.segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.segmented button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-muted);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.segmented button:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.segmented button.active {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Relocated Workspace View Switch styling */
.view-switch {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin-right: 12px !important;
}

.view-switch button {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.view-switch button.active {
  background-color: #F97316 !important;
  border-color: #F97316 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15) !important;
}

.view-switch button:hover:not(.active) {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Canvas Area */
.canvas-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: radial-gradient(var(--border-muted) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Grid View styling */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.preview-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background-color: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: auto !important;
  min-height: 250px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--bg-secondary);
}

.preview-card-header strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-title);
}

.preview-card-header .eyebrow {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.email-frame {
  flex: 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.email-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Single View Mockup styling */
.single-view-canvas {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: 20px;
  flex: 1;
  min-height: 0;
}

.browser-mockup {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 820px;
  height: 100%;
  min-height: 520px;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-view-canvas.mobile-view .browser-mockup {
  max-width: 375px;
  height: 100%;
  max-height: 667px;
}

.browser-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-muted);
  height: 42px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

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

.browser-dot.red { background-color: #ef4444; }
.browser-dot.yellow { background-color: #f59e0b; }
.browser-dot.green { background-color: #10b981; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  justify-self: center;
}

.email-mockup-headers {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-muted);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
}

.mockup-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.hdr-lbl {
  font-weight: 600;
  width: 55px;
  color: var(--text-muted);
}

.hdr-val {
  color: var(--text-primary);
}

.font-semibold {
  font-weight: 600;
}

.email-frame {
  flex: 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  height: 100%;
}

.email-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Collapsible HTML Inspector Panel */
.code-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 320px;
  background-color: #0b0b0d;
  border-top: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
}

.code-panel.open {
  transform: translateY(0);
}

.code-panel-header {
  height: 48px;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.code-panel-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-editor-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
}

.code-editor-textarea {
  width: 100%;
  height: 100%;
  background-color: #09090b;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 16px;
  border: none;
  resize: none;
  outline: none;
  line-height: 1.5;
  overflow-y: auto;
}

/* Terminal Modal Overlay */
.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.terminal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.terminal-box {
  width: 550px;
  background-color: #0b0b0d;
  border: 1px solid var(--border-active);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-overlay.active .terminal-box {
  transform: scale(1);
}

.terminal-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-muted);
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; cursor: pointer; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a1a1aa !important;
  font-weight: 500;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #f4f4f5 !important;
  background-color: #09090b !important;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 350px;
  overflow-y: auto;
}

.terminal-line {
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.terminal-prompt {
  color: #f97316 !important;
  font-weight: 600;
  user-select: none;
}

.terminal-text {
  color: #e4e4e7 !important;
}

.terminal-text.text {
  color: #e4e4e7 !important;
}

.terminal-text.success {
  color: #34d399 !important;
}

.terminal-text.info {
  color: #38bdf8 !important;
}

.terminal-text.warning {
  color: #fbbf24 !important;
}

.terminal-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Styles for the Dashboard Editor */
@media (max-width: 1024px) {
  .canvas-wrapper {
    padding: 20px !important;
  }
  /* Toolbar responsive: wrap and shrink */
  .workspace-toolbar-bar {
    flex-wrap: wrap !important;
    padding: 10px 16px !important;
    gap: 10px !important;
  }
  .toolbar-left {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
  }
  .template-segmented {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }
  .toolbar-right {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 768px) {
  /* Toolbar: shrink action button labels on tablet */
  .btn-toolbar-action span {
    display: none !important;
  }
  .btn-toolbar-action {
    padding: 8px 10px !important;
    gap: 0 !important;
  }
  .workspace-toolbar-bar {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .toolbar-label {
    font-size: 0.8rem !important;
  }
  .toolbar-right {
    gap: 8px !important;
  }
  /* Zoom controls: more compact */
  .zoom-controls-styled {
    margin: 0 4px !important;
  }
  /* View switch: smaller buttons */
  .view-switch .btn {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 640px) {
  /* Toolbar: full wrap, each section on its own line */
  .workspace-toolbar-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .toolbar-left, .toolbar-right {
    width: 100% !important;
    flex: none !important;
  }
  .toolbar-right {
    justify-content: space-between !important;
    align-items: center !important;
  }
  /* Sidebar: half height on phone */
  .sidebar {
    max-height: 40vh !important;
  }
  .canvas-wrapper {
    padding: 10px !important;
    min-height: 400px !important;
  }
  /* Hide zoom controls on very small screens */
  .zoom-controls-styled {
    display: none !important;
  }
  /* Action buttons: icon only */
  .btn-toolbar-action {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Template tabs: scroll horizontally */
  .template-segmented {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .template-segmented::-webkit-scrollbar {
    display: none !important;
  }
  /* View switch: stack neatly */
  .view-switch {
    display: flex !important;
    gap: 6px !important;
  }
  .view-switch .btn {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  /* Preview frame: full width on phone */
  #app-container .browser-mockup {
    min-height: 350px !important;
    border-radius: 8px !important;
  }
}

/* -------------------------------------------------------------
 * FIREBASE AUTHENTICATION LOGIN GATE STYLES
 * ------------------------------------------------------------- */
.login-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #050508;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-sans);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-gate-overlay.hidden {
  opacity: 0;
  transform: translateY(-50px);
  pointer-events: none;
}

.login-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.glow-primary {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
  top: 10%;
  left: 10%;
}

.glow-secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 122, 19, 0.08) 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 30px 60px -15px rgba(9, 9, 11, 0.15), 0 0 50px rgba(9, 9, 11, 0.05);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: loginFadeIn 0.5s ease-out;
}

/* Scoped Light Theme styles for Login Card elements */
.login-card .form-label {
  color: #52525b !important;
}
.login-card .login-subtitle {
  color: #71717a !important;
}
.login-card .form-input {
  background-color: #ffffff !important;
  color: #09090b !important;
  border: 1px solid #d4d4d8 !important;
}
.login-card .form-input:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 2px var(--accent-glow) !important;
}
.login-card .form-input::placeholder {
  color: #a1a1aa !important;
}
.login-card .login-error-alert {
  background-color: rgba(239, 68, 68, 0.05) !important;
  color: #b91c1c !important;
  border-left: 3px solid #ef4444 !important;
}
.login-card .otp-digit {
  background: #ffffff !important;
  border-color: #d4d4d8 !important;
  color: #09090b !important;
}
.login-card .otp-digit:focus {
  background: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.2) !important;
}

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

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
  border: none !important;
}

.login-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #09090b, #52525b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #71717a;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-error-alert {
  display: none;
  background-color: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #fca5a5;
  line-height: 1.4;
  align-items: flex-start;
  gap: 10px;
}

.login-error-alert i {
  flex-shrink: 0;
  margin-top: 1px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-signout {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
}

.btn-signout:hover {
  background-color: rgba(239, 68, 68, 0.05) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1) !important;
}

.login-card.is-hidden {
  display: none !important;
}

.otp-digit {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-digit:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.35);
  background: rgba(0, 0, 0, 0.45) !important;
  transform: scale(1.05);
}

/* Light mode adjustments for specific hardcoded elements */
@media (prefers-color-scheme: light) {
  .otp-digit {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #d4d4d8 !important;
    color: #09090b !important;
  }
  .otp-digit:focus {
    background: #ffffff !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.2);
  }
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
  }
  .preview-container {
    background-color: #e4e4e7;
  }
  .login-gate-overlay {
    background-color: #f4f4f5;
  }
  .login-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(9, 9, 11, 0.08);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15), 0 0 50px rgba(0, 0, 0, 0.05);
  }

  .login-title {
    background: linear-gradient(to right, #09090b, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .login-error-alert {
    background-color: rgba(239, 68, 68, 0.05);
    color: #b91c1c;
  }
  .btn-secondary {
    background-color: #ffffff;
    color: #09090b;
    border-color: #d4d4d8;
  }
  .btn-secondary:hover:not(:disabled) {
    background-color: #f4f4f5;
    border-color: #a1a1aa;
  }
}

/* -------------------------------------------------------------
 * MAILER REPORTS DASHBOARD STYLES
 * ------------------------------------------------------------- */
.header-nav {
  display: flex;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-sm);
}

.reports-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.reports-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Metric Cards Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.metric-icon.success {
  color: var(--success-color);
}

.metric-icon.info {
  color: #3b82f6;
}

.metric-icon.danger {
  color: #ef4444;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-primary);
}

.metric-value.success {
  color: var(--success-color);
}

.metric-value.info {
  color: #3b82f6;
}

.metric-value.danger {
  color: #ef4444;
}

.metric-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Two Column Layout */
.reports-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .reports-two-col {
    grid-template-columns: 1fr;
  }
}

.reports-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 14px;
}

.panel-header i {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
}

.panel-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--text-primary);
}

/* Placement Card */
.placement-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.placement-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 16px;
}

.placement-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.placement-bar-wrapper {
  height: 10px;
  background-color: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
}

.placement-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.placement-bar.inbox {
  background-color: var(--success-color);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.placement-bar.promotions {
  background-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.placement-bar.spam {
  background-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.placement-pct {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* Deliverability Optimizer Card */
.optimizer-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.optimizer-status-good {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--success-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.optimizer-status-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.9rem;
}

.optimizer-status-danger {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.9rem;
}

.optimizer-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.optimizer-tips li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.optimizer-tips li i {
  flex-shrink: 0;
  margin-top: 2px;
}

.optimizer-tips li.warning i {
  color: #f59e0b;
}

.optimizer-tips li.success i {
  color: var(--success-color);
}

.optimizer-tips li.info i {
  color: #3b82f6;
}

/* Activity Logs Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background-color: var(--bg-primary);
}

.clickable-badge {
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.clickable-badge:hover {
  background-color: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-1px);
}

.cell-truncate {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.reports-table th {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-muted);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.reports-table td {
  border-bottom: 1px solid var(--border-muted);
  padding: 14px 16px;
  color: var(--text-primary);
  white-space: nowrap;
}

.reports-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.success {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge.danger {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge.inbox {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge.promotions {
  background-color: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge.spam {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge.unread {
  background-color: rgba(113, 113, 122, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(113, 113, 122, 0.15);
}

.badge.read {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Light mode overrides for navigation bar and tables */
@media (prefers-color-scheme: light) {
  .header-nav {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
  }
  .nav-btn:hover {
    color: #09090b;
    background-color: rgba(0, 0, 0, 0.03);
  }
  .nav-btn.active {
    background-color: #ffffff;
    color: #09090b;
    border-color: #e4e4e7;
  }
  .reports-table th {
    background-color: rgba(0, 0, 0, 0.01);
  }
}

/* Global Dashboard App Footer */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-muted);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .app-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px 16px;
  }
}

/* Report Filter Bar Styles */
.report-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 16px 24px;
  gap: 20px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Date Picker Dropdown Container */
.date-picker-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.date-picker-trigger {
  min-height: 42px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.date-picker-trigger:hover {
  border-color: var(--border-active);
  background-color: var(--bg-secondary);
}

/* Calendar Popover */
.calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  overflow: hidden;
  animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Presets Sidebar */
.calendar-presets {
  width: 230px;
  border-right: 1px solid var(--border-muted);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--bg-primary);
}

.preset-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.preset-btn.active {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Calendar Panel */
.calendar-panel {
  padding: 20px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-card);
}

.calendar-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month-year {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-title);
}

.calendar-nav-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
}

.calendar-day {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  position: relative;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day:hover:not(.empty):not(.selected) {
  background-color: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-primary);
}

.calendar-day.selected {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  border-radius: 50%;
  font-weight: 600;
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

.calendar-day.in-range {
  background-color: rgba(234, 88, 12, 0.12);
  color: var(--accent-color);
  border-radius: 0;
}

.calendar-day.start-date {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}

.calendar-day.end-date {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.calendar-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.calendar-day.selected.today::after {
  background-color: #fff;
}

/* Calendar Footer */
.calendar-footer {
  border-top: 1px solid var(--border-muted);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-selection-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.calendar-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 768px) {
  .report-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 580px) {
  .calendar-popover {
    flex-direction: column;
    width: 320px;
  }
  .calendar-presets {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
  }
}

/* Logs Controls Bar Styles */
.logs-controls-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.logs-search-wrapper input {
  font-size: 0.9rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.logs-search-wrapper input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.logs-controls-bar select.form-input {
  font-size: 0.85rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.logs-controls-bar select.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.export-actions .btn {
  font-weight: 600;
  transition: all 0.2s ease;
}

.export-actions .btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

/* =============================================================
 * SUPERX MAIL LANDING PAGE SYSTEM STYLES
 * ============================================================= */

#landing-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}


/* Light/Dark dynamic background adjustment */
@media (prefers-color-scheme: light) {
  #landing-page {
    background-color: #f4f4f5;
  }
  .landing-hero::before {
    background: radial-gradient(circle at 70% 30%, rgba(234, 88, 12, 0.06) 0%, transparent 60%) !important;
  }
  .landing-card-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
  }
  .landing-card-glass:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 40px -10px rgba(234, 88, 12, 0.12) !important;
  }
  .sticky-header {
    background: rgba(244, 244, 245, 0.8) !important;
    border-bottom: 1px solid rgba(9, 9, 11, 0.06) !important;
  }
  #landing-page .sticky-header {
    border: 1px solid rgba(9, 9, 11, 0.08) !important;
  }
  .hero-tag {
    background: rgba(234, 88, 12, 0.06) !important;
    color: var(--accent-color) !important;
    border: 1px solid rgba(234, 88, 12, 0.15) !important;
  }
  /* Keep dashboard always dark for readability regardless of OS color scheme */
  .visual-dashboard {
    background: rgba(12, 12, 18, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .vd-campaign-name { color: #f4f4f5 !important; }
  .vd-gauge-pct, .vd-stat-val { color: #f4f4f5 !important; }

  .sim-gauge-circle {
    stroke: #e4e4e7 !important;
  }
  .service-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
  }
  .service-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 40px -10px rgba(234, 88, 12, 0.12) !important;
  }
  .sim-widget-wrapper {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
  }
  .sim-widget-input, .sim-widget-textarea {
    background: #f4f4f5 !important;
    border-color: #cbd5e1 !important;
    color: #09090b !important;
  }
  .landing-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e4e4e7 !important;
  }
  .landing-footer-bottom {
    border-top-color: #e4e4e7 !important;
  }
  .stats-counter-strip {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff !important;
  }
  .stats-counter-strip::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(234, 88, 12, 0.06) 0%, transparent 75%) !important;
  }
  .stat-divider {
    background: rgba(9, 9, 11, 0.08) !important;
  }
  .stat-counter-number {
    background: linear-gradient(135deg, #c2410c 0%, #F97316 60%, #f97316 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  .how-it-works-strip {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(99, 102, 241, 0.18) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05) !important;
  }
  .how-step {
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.03) !important;
  }
  .how-step:hover {
    background: rgba(99, 102, 241, 0.02) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08) !important;
  }
  .how-step-title {
    color: #1e1b4b !important;
  }
  .how-step-desc {
    color: #4b5563 !important;
  }
  .how-step-num {
    color: rgba(99, 102, 241, 0.08) !important;
  }
  .how-step-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08)) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #4f46e5 !important;
  }
  .how-step-connector {
    color: #4f46e5 !important;
    opacity: 0.6 !important;
  }
}

/* Header styling */
.show-mobile {
  display: none !important;
}

.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Premium Floating Landing Navbar */
#landing-page .sticky-header {
  position: sticky;
  top: 20px;
  width: calc(100% - 80px);
  max-width: 1300px;
  height: auto !important; /* Override fixed height to let padding govern spacing */
  margin: 20px auto 0 auto;
  background: rgba(9, 9, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 14px 40px; /* Generous 14px vertical padding on desktop */
}

@media (max-width: 1024px) {
  #landing-page .sticky-header {
    top: 16px;
    margin: 16px auto 0 auto;
    width: calc(100% - 48px);
    border-radius: 14px;
    padding: 12px 24px; /* Balanced padding on tablet/small screen */
  }
}

@media (max-width: 768px) {
  #landing-page .sticky-header {
    top: 12px;
    margin: 12px auto 0 auto;
    width: calc(100% - 32px);
    border-radius: 12px;
    padding: 10px 16px; /* Tight but visible padding on small tablets/landscape mobile */
  }
}

@media (max-width: 480px) {
  #landing-page .sticky-header {
    top: 10px;
    margin: 10px auto 0 auto;
    width: calc(100% - 20px);
    border-radius: 10px;
    padding: 8px 12px; /* Compact padding for standard mobile portrait */
  }
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--text-primary);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 100px 40px 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  overflow: visible;
}

.landing-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 70% 30%, rgba(234, 88, 12, 0.08) 0%, transparent 60%);
  top: -100px;
  right: -50px;
  z-index: -1;
  pointer-events: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.1);
  color: #f97316;
  border: 1px solid rgba(234, 88, 12, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-title);
  animation: floatSmall 3s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title span {
  background: linear-gradient(135deg, #f97316 0%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 440px;
}

.hero-ctas-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.hero-ctas .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  width: 100%;
}

/* Hero animated visual markup */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-board-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-width: 720px;
  height: auto;
  aspect-ratio: 16 / 11;
  perspective: 1000px;
}


/* ── Animated Campaign Analytics Dashboard ── */
.visual-dashboard {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65),
              0 0 40px rgba(234, 88, 12, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  animation: floatTerminal 6s ease-in-out infinite;
}

/* Dashboard Header */
.vd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.vd-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F97316, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.vd-header-text {
  flex: 1;
  min-width: 0;
}

.vd-campaign-name {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-campaign-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.vd-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.vd-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: vdPulse 1.5s ease-in-out infinite;
}

@keyframes vdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Dashboard Body: gauge + stat list */
.vd-body {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 18px;
  flex: 1;
}

/* SVG Gauge */
.vd-gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-gauge-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
  overflow: visible;
}

.vd-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 9;
}

.vd-gauge-fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 9;
  stroke-linecap: round;
  /* r=50 → circumference = 314.16 */
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: drawGauge 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.5));
}

@keyframes drawGauge {
  /* 98.4% → offset = 314 × 0.016 = ~5 */
  to { stroke-dashoffset: 5; }
}

.vd-gauge-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.vd-gauge-pct {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.vd-gauge-sub {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Stat list */
.vd-stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
}

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

.vd-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vd-stat-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.vd-stat-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

/* Progress Bars */
.vd-bars {
  padding: 0 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vd-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vd-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vd-bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.vd-bar-pct {
  font-size: 0.65rem;
  font-weight: 700;
}

.vd-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.vd-bar-fill {
  height: 100%;
  width: var(--bar-w, 100%);
  border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: growBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 8px currentColor;
}

@keyframes growBar {
  to { transform: scaleX(1); }
}



/* ══════════════════════════════════════════════
   SECURE MAILER PIPELINE — Hero Visual
   ══════════════════════════════════════════════ */

.sof-shell {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  animation: floatTerminal 6s ease-in-out infinite;
}

.sof-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.sof-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sof-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: vdPulse 1.5s infinite;
}

.sof-topbar-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.05em;
}

.sof-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sof-board-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.sof-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* Track Line */
.sof-track-line {
  position: absolute;
  top: 50%;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(to right, rgba(234, 88, 12, 0.1), rgba(16, 185, 129, 0.1));
  transform: translateY(-50%);
  z-index: 1;
}

.sof-track-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #F97316, #38bdf8, #10b981);
  opacity: 0.3;
}

/* Flowing packet */
.sof-packet {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #F97316, #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
  transform: translateY(-50%);
  z-index: 3;
  animation: travel 6s infinite linear;
}

.sof-packet i {
  width: 14px;
  height: 14px;
}

/* Stations */
.sof-stations {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.sof-station {
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  max-width: 175px;
}

.sof-station-composer {
  border-left: 3px solid #F97316;
  animation: floatComposer 4s ease-in-out infinite;
}

.sof-station-inbox {
  border-right: 3px solid #10b981;
  animation: floatInbox 4s ease-in-out infinite 2s;
}

.sof-station-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sof-station-composer .sof-station-icon-box {
  background: linear-gradient(135deg, #F97316, #f97316);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.sof-station-inbox .sof-station-icon-box {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sof-station-icon-box i {
  width: 16px;
  height: 16px;
}

.sof-station-details {
  display: flex;
  flex-direction: column;
}

.sof-station-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.sof-station-sub {
  font-size: 0.7rem;
  color: #e2e8f0;
  margin-top: 2px;
  font-weight: 600;
}

/* Checkpoints container */
.sof-checkpoints {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 0 10px;
}

/* Individual Checkpoint Badge */
.sof-checkpoint {
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.sof-cp-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.checkpoint-e2ee .sof-cp-icon { background: rgba(234, 88, 12, 0.1); color: #F97316; border: 1px solid rgba(234, 88, 12, 0.2); }
.checkpoint-tls .sof-cp-icon { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }
.checkpoint-spam .sof-cp-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }

.sof-cp-icon i {
  width: 13px;
  height: 13px;
}

.sof-cp-lbl {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  color: #f8fafc;
}

.sof-cp-val {
  font-size: 0.65rem;
  color: #cbd5e1;
  margin-top: 1px;
  font-weight: 600;
}

.sof-cp-status {
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkpoint-e2ee .sof-cp-status { color: #fb923c; }
.checkpoint-tls .sof-cp-status { color: #38bdf8; }
.checkpoint-spam .sof-cp-status { color: #34d399; }

/* Pulse animations for Checkpoints */
.checkpoint-e2ee { animation: cpPulseE2ee 6s infinite ease-in-out; }
.checkpoint-tls { animation: cpPulseTls 6s infinite ease-in-out; }
.checkpoint-spam { animation: cpPulseSpam 6s infinite ease-in-out; }

@keyframes cpPulseE2ee {
  0%, 15%, 35%, 100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  25% {
    transform: scale(1.08);
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.25);
    background: rgba(234, 88, 12, 0.05);
  }
}

@keyframes cpPulseTls {
  0%, 40%, 60%, 100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.08);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.05);
  }
}

@keyframes cpPulseSpam {
  0%, 65%, 85%, 100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  75% {
    transform: scale(1.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.05);
  }
}

/* Floating animation for Stations */
@keyframes floatComposer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes floatInbox {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Flowing packet travel animation */
@keyframes travel {
  0% {
    left: 45px;
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
  }
  4% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    background: linear-gradient(135deg, #F97316, #f97316);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
  }
  /* Reaches E2EE at 25% (left: ~30%) */
  25% {
    left: calc(5% + 0.25 * 90%);
    background: linear-gradient(135deg, #F97316, #f97316);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
  }
  /* Reaches TLS at 50% (left: ~50%) */
  50% {
    left: calc(5% + 0.5 * 90%);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
  }
  /* Reaches Spam check at 75% (left: ~70%) */
  75% {
    left: calc(5% + 0.75 * 90%);
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  }
  /* Reaches Inbox at 90% */
  90% {
    left: calc(5% + 0.9 * 90%);
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  94%, 100% {
    left: calc(5% + 0.9 * 90%);
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
  }
}

/* Toast Notification overlay */
.sof-preview-toast {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 24, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.1);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  animation: toastRise 6s infinite ease-in-out;
}

@keyframes toastRise {
  0%, 88% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
  90%, 97% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

.sof-toast-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
}

.sof-toast-body {
  display: flex;
  flex-direction: column;
}

.sof-toast-subj {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sof-toast-meta {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* Footer stats */
.sof-footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.sof-foot-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}


  .sof-preview-toast { width: 170px; padding: 6px 10px; bottom: 8px; }
  .sof-toast-subj { font-size: 0.62rem; }
  .sof-toast-meta { font-size: 0.52rem; }
  .sof-footer-bar { padding: 8px 12px; gap: 10px; }
  .sof-foot-stat { font-size: 0.58rem; }
}

/* ─── end live feed ─── */

/* Floating status card — always dark regardless of OS color scheme */

.visual-floating-card {
  position: absolute;
  background: rgba(18, 18, 24, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.card-inbox-rate {
  bottom: -20px;
  left: -20px;
  width: 180px;
  animation: floatCard1 5s ease-in-out infinite;
}

.card-smtp-status {
  top: 40px;
  right: -30px;
  width: 230px;
  animation: floatCard2 5.5s ease-in-out infinite;
}

.floating-card-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  /* Always use a bright muted tone so it's legible on both dark cards and
     any background — no longer inherits the system --text-muted variable
     which can become very dark in light mode */
  color: #a1a1aa;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.floating-card-val {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-card-val.green {
  color: var(--success-color);
}

/* Features Section */
.landing-features-sec {
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.sec-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-tag {
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-title);
}

.sec-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.sec-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.landing-card-glass {
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-card-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.15);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  margin-bottom: 20px;
}

.feature-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Security Spotlight Section */
.security-spotlight-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(234, 88, 12, 0.1);
  border-radius: 24px;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.security-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.security-card {
  padding: 24px;
  background: rgba(18, 18, 20, 0.65);
}

/* Services Section */
.landing-services-sec {
  padding: 60px 40px 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.15);
}

.service-icon-box {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Interactive Deliverability Tool Widget */
/* ===== Social Proof & Stats Section ===== */
.landing-stats-sec {
  padding: 80px 40px 100px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* --- Animated Counter Strip --- */
.stats-counter-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.45) 0%, rgba(12, 12, 14, 0.75) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.stats-counter-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* LIVE badge */
.stats-live-badge {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.stats-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50%       { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}


.stat-counter-item {
  flex: 1;
  text-align: center;
  padding: 0 30px;
}

.stat-counter-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 60%, #fdba74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-counter-number::after {
  content: attr(data-suffix);
}

.stat-counter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(234, 88, 12, 0.15);
  flex-shrink: 0;
}


/* --- Testimonial Cards --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(18, 18, 20, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(99, 102, 241, 0.07);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.testimonial-featured {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(30, 27, 60, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

.testimonial-featured::after {
  content: 'Top Pick';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- How It Works Strip --- */
.how-it-works-strip {
  margin-top: 80px;
  padding: 60px 60px;
  background: rgba(18, 18, 20, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.how-it-works-strip::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent);
}

.how-steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.how-step:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.15);
}

.how-step-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.12);
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 16px;
  letter-spacing: -2px;
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #a5b4fc;
}

.how-step-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.how-step-desc {
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.65;
}

.how-step-connector {
  flex-shrink: 0;
  opacity: 0.5;
  color: #818cf8;
}



.sim-widget-wrapper {
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.sim-widget-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-widget-right {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sim-widget-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sim-widget-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sim-widget-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-muted);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.sim-widget-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.sim-widget-textarea {
  width: 100%;
  height: 130px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-muted);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  resize: none;
  transition: all 0.2s ease;
}

.sim-widget-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Widget result block */
.sim-result-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-placement-status {
  padding: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.sim-status-good {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

.sim-status-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.sim-status-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sim-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sim-gauge-circle-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.sim-gauge-svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.sim-gauge-circle {
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
}

.sim-gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-gauge-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-gauge-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sim-gauge-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sim-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sim-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.sim-tips-list li.success i { color: var(--success-color); }
.sim-tips-list li.warning i { color: #f59e0b; }
.sim-tips-list li.info i { color: #3b82f6; }

/* Landing Footer */
.landing-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-muted);
  padding: 60px 40px 30px 40px;
}

.landing-footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1.15fr) 1.50fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.newsletter-form-wrapper {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-muted);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-color);
}

.newsletter-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.newsletter-toast {
  display: none;
  font-size: 0.75rem;
  color: var(--success-color);
  font-weight: 500;
  margin-top: 4px;
}

.landing-footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border-muted);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-social-icon:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes floatTerminal {
  0%, 100% { transform: translateY(0) rotateX(1deg) rotateY(-1deg); }
  50% { transform: translateY(-12px) rotateX(-1deg) rotateY(1deg); }
}

@keyframes floatCard1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -8px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, 8px); }
}

@keyframes floatSmall {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Close button on login Gate */
.login-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.login-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: scale(1.05);
}

/* ===============================================================
 * RESPONSIVE / MOBILE STYLES — ALL BREAKPOINTS
 * Covers: Landing page, Console, Floating Cards, Visual Board
 * =============================================================== */

/* Prevent horizontal scroll on any viewport */
html, body, #landing-page {
  max-width: 100%;
  overflow-x: hidden;
}

@keyframes travel-vertical {
  0% {
    top: 30px;
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  4% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    background: linear-gradient(135deg, #F97316, #f97316);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
  }
  /* Reaches E2EE at 28% */
  28% {
    top: calc(40px + 0.28 * (100% - 80px));
    background: linear-gradient(135deg, #F97316, #f97316);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
  }
  /* Reaches TLS at 50% */
  50% {
    top: calc(40px + 0.5 * (100% - 80px));
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
  }
  /* Reaches Spam check at 72% */
  72% {
    top: calc(40px + 0.72 * (100% - 80px));
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  }
  /* Reaches Inbox at 90% */
  90% {
    top: calc(40px + 0.9 * (100% - 80px));
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  94%, 100% {
    top: calc(40px + 0.9 * (100% - 80px));
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
}

/* ── 1200px: Laptop/Tablet landscape / small desktop ──────────── */
@media (max-width: 1200px) {
  .security-spotlight-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 32px;
  }

  /* Hero: stack columns */
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .hero-ctas {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-right {
    margin-top: 20px;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px 40px 20px;
  }

  /* Visual board: responsive vertical layout when stacked */
  .visual-board-wrapper {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow-x: visible;
    aspect-ratio: auto;
    height: auto;
    padding-bottom: 0;
  }
  .sof-shell {
    position: relative;
    width: 100%;
    height: 640px;
  }
  .sof-board-body {
    flex-direction: column;
    padding: 24px 16px;
  }
  
  /* Vertical alignment for stations and checkpoints */
  .sof-stations {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
  }
  .sof-checkpoints {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px 0;
    width: 100%;
  }
  
  .sof-station {
    width: 220px;
    justify-content: center;
  }
  .sof-checkpoint {
    width: 110px;
  }
  
  /* Vertical track line */
  .sof-track-line {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(234, 88, 12, 0.1), rgba(16, 185, 129, 0.1));
    z-index: 1;
    right: auto;
  }
  .sof-track-line::after {
    background: linear-gradient(to bottom, #F97316, #38bdf8, #10b981);
  }
  
  /* Vertical packet animation */
  .sof-packet {
    left: 50%;
    transform: translateX(-50%) scale(1);
    animation: travel-vertical 6s infinite linear;
  }
  
  /* Toast overlay positioning on mobile */
  .sof-preview-toast {
    width: 200px;
    bottom: 110px;
  }

  .sim-widget-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .sim-widget-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0;
    padding-top: 30px;
  }
  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  }
  .landing-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 1024px: iPad/Tablet / GPU animation disable overrides ───── */
@media (max-width: 1024px) {
  /* Disable 3D transforms, perspectives, and floating animations to prevent GPU ghosting/rendering trails */
  .hero-tag {
    animation: none !important;
    transform: none !important;
  }
  .visual-board-wrapper {
    perspective: none !important;
    transform: none !important;
  }
  .sof-shell {
    animation: none !important;
    transform: none !important;
  }
  .sof-station-composer,
  .sof-station-inbox {
    animation: none !important;
    transform: none !important;
  }
  .visual-floating-card {
    animation: none !important;
    transform: none !important;
  }
}

/* ── 768px: Tablet portrait / large phone landscape ───────────── */
@media (max-width: 768px) {

  /* ── Header ── */
  .sticky-header {
    padding: 0 16px;
    height: 60px;
  }
  .landing-nav {
    display: none;
  }
  .logo-text {
    font-size: 1.1rem;
  }

  /* ── Hero ── */
  .landing-hero {
    padding: 80px 20px 60px 20px;
    gap: 32px;
  }
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 0.98rem;
  }

  /* ── Sections ── */
  .landing-features-sec {
    padding: 60px 20px;
  }
  .sec-title {
    font-size: 1.75rem;
  }
  .landing-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-counter-strip {
    flex-direction: column;
    padding: 48px 16px 24px 16px;
    gap: 24px;
    margin-top: 40px;
  }
  .stats-live-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 12px;
    align-self: center;
  }
  .stat-counter-item {
    padding: 0;
    width: 100%;
  }
  .stat-divider {
    width: 80%;
    height: 1px;
    margin: 4px 0;
  }
  .how-it-works-strip {
    padding: 32px 16px;
    margin-top: 40px;
  }
  .how-steps-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .how-step-connector {
    transform: rotate(90deg);
    align-self: center;
    margin: 8px 0;
  }
  .security-spotlight-card {
    padding: 30px 20px;
    gap: 24px;
  }
  .security-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Console ── */
  #app-container header {
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    align-items: stretch;
  }
  .logo-container {
    justify-content: center;
  }
  .header-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  .viewport-selectors {
    justify-content: center;
  }
  .actions-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .reports-content {
    padding: 16px;
  }
}

/* ── 640px: Large phone ───────────────────────────────────────── */
@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Hero title tighter */
  .hero-title {
    font-size: 2.2rem;
  }

  /* Visual board: removed wrapper shrink */
  .card-inbox-rate {
    bottom: -10px;
    left: -6px;
    width: 140px;
    padding: 12px;
    gap: 8px;
  }
  .card-smtp-status {
    top: 22px;
    right: -6px;
    width: 165px;
    padding: 12px;
    gap: 8px;
  }
  .floating-card-val {
    font-size: 1rem;
  }
  .floating-card-title {
    font-size: 0.6rem;
  }

  /* Features grid: single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Footer center links */
  .footer-center {
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Section paddings */
  .landing-features-sec {
    padding: 48px 16px;
  }
}

/* ── 480px: Medium phone ──────────────────────────────────────── */
@media (max-width: 480px) {
  .login-card {
    padding: 24px;
    margin: 16px;
  }

  /* Sticky header more compact */
  .sticky-header {
    padding: 0 10px;
    height: 56px;
  }
  .logo-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .landing-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .landing-header-actions .btn {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    gap: 4px !important;
  }
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: inline !important;
  }

  /* Hero */
  .landing-hero {
    padding: 72px 16px 48px 16px;
    gap: 28px;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
  .btn {
    font-size: 0.88rem;
    padding: 10px 18px;
  }

  /* Visual board: removed wrapper shrink */
  .hero-right {
    padding: 0 10px 36px 10px;
  }
  .card-inbox-rate {
    left: -4px;
    bottom: -8px;
    width: 130px;
    padding: 10px;
  }
  .card-smtp-status {
    right: -4px;
    top: 18px;
    width: 155px;
    padding: 10px;
  }

  /* Terminal header compact */
  .visual-term-title {
    font-size: 0.6rem;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .visual-term-body {
    padding: 14px;
    font-size: 0.7rem;
    gap: 8px;
  }

  /* Section paddings */
  .landing-features-sec {
    padding: 40px 14px;
  }
  .sec-title {
    font-size: 1.55rem;
  }
}

/* ── 380px: Small phone (iPhone SE, Galaxy A) ─────────────────── */
@media (max-width: 380px) {
  .login-card {
    padding: 24px 16px !important;
    width: calc(100% - 24px) !important;
    max-width: 320px !important;
  }
  #recaptcha-container {
    transform: scale(0.85);
    transform-origin: center;
    margin: 0 auto;
  }

  /* Even smaller hero title */
  .hero-title {
    font-size: 1.7rem;
  }
  .sticky-header {
    padding: 0 12px;
    height: 52px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .btn-primary {
    font-size: 0.82rem;
    padding: 9px 14px;
  }

  /* Visual board: removed wrapper shrink */
  .card-inbox-rate {
    left: -2px;
    width: 118px;
    padding: 9px;
  }
  .card-smtp-status {
    right: -2px;
    width: 138px;
    padding: 9px;
  }
  .floating-card-val {
    font-size: 0.88rem;
    gap: 5px;
  }
  .visual-term-body {
    padding: 12px;
    font-size: 0.65rem;
  }
}

/* ── 340px: Very small phone ──────────────────────────────────── */
@media (max-width: 340px) {
  #recaptcha-container {
    transform: scale(0.78);
    transform-origin: center;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  /* Visual board: removed wrapper shrink */
  .card-inbox-rate {
    width: 105px;
    padding: 8px;
  }
  .card-smtp-status {
    width: 122px;
    padding: 8px;
  }
  .floating-card-val {
    font-size: 0.8rem;
  }
  .floating-card-title {
    font-size: 0.55rem;
  }
}

/* ── 320px: Minimum supported width ──────────────────────────── */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.4rem;
  }
  .sticky-header {
    padding: 0 10px;
    height: 50px;
  }
  .landing-hero {
    padding: 64px 12px 40px 12px;
  }
  /* Visual board: removed wrapper shrink */
  .card-inbox-rate {
    width: 96px;
    padding: 7px;
    gap: 5px;
  }
  .card-smtp-status {
    width: 110px;
    padding: 7px;
    gap: 5px;
  }
  .floating-card-val {
    font-size: 0.75rem;
  }
  .floating-card-title {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
}

/* ── Superscript ─────────────────────────────────────────────── */
/* Custom superscript styling for ® Registered Trademark */
sup {
  font-size: 0.5em;
  top: -0.65em;
  font-weight: 600;
  position: relative;
  vertical-align: super;
  margin-left: 1px;
}

/* Fix visibility of trademark superscripts inside gradient-clipped headings */
.logo-text sup,
.login-title sup {
  -webkit-text-fill-color: var(--text-secondary);
  color: var(--text-secondary);
}

/* ── Footer link hover ───────────────────────────────────────── */
.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--accent-hover) !important;
}

/* Footer center links wrap on small screens */
@media (max-width: 640px) {
  .footer-center {
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   PRICING PLANS & SEGMENTED TOGGLES (LANDING & PORTAL UNIFIED)
   ========================================================================= */

.pricing-toggles {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.toggle-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 30px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.plan-card {
  background: rgba(28, 28, 31, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg), 0 15px 35px rgba(234, 88, 12, 0.12);
}

.plan-card.popular {
  border-color: rgba(234, 88, 12, 0.6);
  background: linear-gradient(180deg, rgba(28, 28, 31, 0.8), rgba(234, 88, 12, 0.03));
}

.plan-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 30px;
  right: -32px;
  width: 150px;
  text-align: center;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 0;
  transform: rotate(45deg);
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plan-name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.plan-price-box {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan-price {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-price-period {
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
  min-height: 45px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
}

.plan-features li i {
  color: var(--success-color);
  flex-shrink: 0;
}

/* ==========================================================================
   GLOBAL RESPONSIVE MODAL COMPONENT
   ========================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card form,
.modal-card .modal-body-scroll,
.modal-card > div:not(.modal-header) {
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 15px;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

/* Make sure modal cards are responsive on small screens */
@media (max-width: 480px) {
  .modal-card {
    padding: 20px;
  }
}

/* ── Clean White SaaS Theme Overrides for Mailer Console ── */
#app-container {
  --bg-primary: #f8fafc; /* light blue-gray */
  --bg-secondary: #ffffff; /* pure white */
  --bg-card: #ffffff;
  --border-muted: #e2e8f0; /* slate 200 */
  --border-active: #cbd5e1; /* slate 300 */
  --text-primary: #0f172a; /* slate 900 */
  --text-secondary: #475569; /* slate 600 */
  --text-muted: #64748b; /* slate 500 */
  
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

#app-container header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

#app-container .logo-text {
  color: #0f172a !important;
}

#app-container .sidebar {
  background-color: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 1px 0 3px 0 rgba(0, 0, 0, 0.02) !important;
  width: 420px;
}

#app-container .sidebar-header-section {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 20px !important;
}

#app-container .canvas-wrapper {
  background-color: #f1f5f9 !important;
  padding: 30px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
}

#app-container .browser-mockup {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  max-width: 800px !important;
  width: 100% !important;
}

#app-container .browser-header {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#app-container .browser-url {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

#app-container .email-mockup-headers {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Property Editor UI Card Layouts */
.sx-property-editor-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sx-editor-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.sx-editor-group-title {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sx-editor-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.sx-editor-row:last-child {
  margin-bottom: 0;
}

.sx-editor-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sx-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Segmented Alignment Buttons */
.sx-align-group {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.sx-align-btn {
  flex: 1;
  background: #ffffff;
  border: none;
  border-right: 1px solid #cbd5e1;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sx-align-btn:last-child {
  border-right: none;
}

.sx-align-btn:hover {
  background: #f8fafc;
  color: var(--text-primary);
}

.sx-align-btn.active {
  background: #ffead5;
  color: #F97316;
}

/* Color Picker & Swatches */
.sx-color-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sx-swatches-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sx-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.sx-swatch:hover {
  transform: scale(1.1);
}

.sx-swatch.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #F97316;
}

.sx-color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.sx-color-input-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  cursor: pointer;
}

.sx-color-input-wrapper input[type="color"] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 46px;
  height: 46px;
  border: none;
  background: none;
  cursor: pointer;
}

.sx-color-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Dropdowns & Textareas */
.sx-select, .sx-textarea, .sx-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.sx-select:focus, .sx-textarea:focus, .sx-input:focus {
  border-color: #F97316;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.08);
}

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

/* Dimension Box (Height & Width) */
.sx-dimension-input {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.sx-dimension-input input {
  border: none;
  padding: 8px 10px;
  width: 100%;
  font-size: 0.85rem;
  outline: none;
}

.sx-dimension-label {
  background: #f1f5f9;
  border-left: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  user-select: none;
}

/* Corner Radius Corner Layout (4 Corners) */
.sx-corner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sx-corner-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.sx-corner-input input {
  width: 100%;
  border: none;
  padding: 6px;
  text-align: center;
  font-size: 0.8rem;
  outline: none;
}

.sx-corner-icon {
  background: #f1f5f9;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  border-bottom: 1px solid #cbd5e1;
  font-size: 0.65rem;
  color: #64748b;
}

/* Back Link & Info Box */
.sx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 15px;
  transition: color 0.15s ease;
}

.sx-back-link:hover {
  color: var(--accent-hover);
}

.sx-info-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px;
  color: #1e3a8a;
  font-size: 0.8rem;
  line-height: 1.4;
  display: flex;
  gap: 8px;
}

#app-container .actions-container {
  display: flex;
  gap: 10px;
}

#app-container .btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
  min-height: auto !important;
  height: 38px !important;
}

#app-container .btn-primary {
  background-color: #F97316 !important;
  border-color: #F97316 !important;
  color: #ffffff !important;
}

#app-container .btn-primary:hover {
  background-color: #f97316 !important;
  border-color: #f97316 !important;
}

#app-container .btn-secondary {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

#app-container .btn-secondary:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

#app-container .nav-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
}

#app-container .nav-btn.active {
  background-color: #ffead5 !important;
  color: #F97316 !important;
}

/* Send To Accordion Toggle & Content Panel */
.send-to-toggle-container {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  padding: 0 24px !important;
}

.btn-send-to-toggle {
  width: 100%;
  border: none;
  background-color: #FADFCC !important;
  color: #F97316 !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s, color 0.2s !important;
  box-shadow: 0 1px 3px 0 rgba(234, 88, 12, 0.05);
  height: auto !important;
  min-height: auto !important;
}

.btn-send-to-toggle:hover {
  background-color: #fdd6c1 !important;
}

.btn-send-to-toggle.active {
  background-color: #F97316 !important;
  color: #ffffff !important;
}

.send-to-panel-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-left: 24px !important;
  margin-right: 24px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.send-to-panel-content .form-group {
  margin-bottom: 16px;
}

.send-to-panel-content .form-group:last-child {
  margin-bottom: 0;
}

.send-to-panel-content .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3f2f25;
  margin-bottom: 8px;
  display: block;
}

.send-to-panel-content .form-input {
  width: 100%;
  background-color: #FADFCC !important;
  color: #2b1e16 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
}

.send-to-panel-content .form-textarea {
  min-height: 100px;
  resize: vertical;
}

.send-to-panel-content .btn-upload-csv {
  background-color: #FADFCC !important;
  color: #F97316 !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  height: auto !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}

.send-to-panel-content .btn-upload-csv:hover {
  background-color: #fdd6c1 !important;
}

.firestore-sync-bar-wrapper {
  margin-bottom: 16px;
}

.firestore-sync-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #F97316 !important;
}

/* Designer & Search Layout adjustments */
.sidebar-search-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 16px 24px 8px 24px !important;
  gap: 12px !important;
  width: 100% !important;
}

.field-search {
  flex: 1 !important;
}

.sidebar-search-row #fieldSearch {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  height: 42px !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.sidebar-search-row #fieldSearch:focus {
  border-color: #F97316 !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.08) !important;
}

.history-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.history-row .btn-history {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.history-row .btn-history:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.history-row .btn-history:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.history-row .btn-reset {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 0 18px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  min-height: auto !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

.history-row .btn-reset:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}


/* ─────────────────────────────────────────────────────────────
 * HEADER NAVBAR & SUB-HEADER WORKSPACE TOOLBAR STYLING
 * ───────────────────────────────────────────────────────────── */

.sx-header {
  height: auto !important;
  min-height: 72px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 24px !important;
  z-index: 100 !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.sx-header .logo-container {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.sx-header .logo-text {
  font-family: var(--font-title) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background: none !important;
}

.header-center-section {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.license-badge-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  transition: background-color 0.2s ease !important;
}

.license-badge-header:hover {
  background-color: #f0fdf4 !important;
}

.header-nav {
  display: flex !important;
  align-items: center !important;
  background-color: #FADFCC !important;
  border: 1px solid #ffd8be !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 2px !important;
}

.nav-btn {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  color: #475569 !important;
}

.nav-btn.active {
  background-color: #F97316 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2) !important;
}

.nav-btn.active i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.nav-btn:not(.active) i {
  color: #475569 !important;
  stroke: #475569 !important;
}

.nav-btn:hover:not(.active) {
  background-color: rgba(234, 88, 12, 0.08) !important;
  color: #F97316 !important;
}

.nav-btn:hover:not(.active) i {
  color: #F97316 !important;
  stroke: #F97316 !important;
}

.btn-signout-header {
  background-color: #ffffff !important;
  color: #F97316 !important;
  border: 1px solid #F97316 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-signout-header:hover {
  background-color: #FADFCC !important;
  color: #F97316 !important;
}

.btn-signout-header i {
  color: #F97316 !important;
  stroke: #F97316 !important;
}

/* Sub-Header Workspace Toolbar */
.workspace-toolbar-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 24px !important;
  min-height: 56px !important;
  height: auto !important;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.toolbar-left {
  display: flex !important;
  align-items: center !important;
}

.toolbar-label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-right: 12px !important;
}

.template-segmented {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.btn-template-num {
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-template-num.active {
  background-color: #F97316 !important;
  border-color: #F97316 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15) !important;
}

.btn-template-num:hover:not(.active) {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.toolbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.viewport-selectors-styled {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.viewport-btn-styled {
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.viewport-btn-styled.active {
  background-color: #F97316 !important;
  border-color: #F97316 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15) !important;
}

.viewport-btn-styled.active i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.viewport-btn-styled:hover:not(.active) {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.viewport-btn-styled:hover:not(.active) i {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

.viewport-btn-styled i {
  color: #475569 !important;
  stroke: #475569 !important;
}

.action-buttons-styled {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.btn-toolbar-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  height: 38px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  background: none !important;
}

.btn-toolbar-action.btn-preview-code {
  background-color: #ffffff !important;
  color: #F97316 !important;
  border: 1px solid #F97316 !important;
}

.btn-toolbar-action.btn-preview-code i {
  color: #F97316 !important;
  stroke: #F97316 !important;
}

.btn-toolbar-action.btn-preview-code:hover {
  background-color: #FADFCC !important;
}

.btn-toolbar-action.btn-simulate {
  background-color: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-toolbar-action.btn-simulate i {
  color: #475569 !important;
  stroke: #475569 !important;
}

.btn-toolbar-action.btn-simulate:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.btn-toolbar-action.btn-simulate:hover i {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

.btn-toolbar-action.btn-send-live {
  background-color: #F97316 !important;
  color: #ffffff !important;
  border: 1px solid #F97316 !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15) !important;
}

.btn-toolbar-action.btn-send-live i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.btn-toolbar-action.btn-send-live:hover {
  background-color: #f97316 !important;
  border-color: #f97316 !important;
}

/* ─────────────────────────────────────────────────────────────
 * ZOOM & WORKSPACE VIEWPORT ENHANCEMENTS
 * ───────────────────────────────────────────────────────────── */

#app-container .canvas-wrapper {
  --sx-zoom: 1;
  background-color: #f1f5f9 !important;
  padding: 10px !important; /* Reduced padding to give more height and width to preview */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow: auto !important; /* Allow scrollbar on mockup or zoom overflow */
}

/* Toggle visibility of canvases based on active view mode class */
#app-container .canvas-wrapper.grid-mode #previewGrid {
  display: grid !important;
}
#app-container .canvas-wrapper.grid-mode #singleViewCanvas {
  display: none !important;
}

#app-container .canvas-wrapper.single-mode #previewGrid {
  display: none !important;
}
#app-container .canvas-wrapper.single-mode #singleViewCanvas {
  display: flex !important;
}

#previewGrid {
  margin-bottom: 24px !important;
}

#singleViewCanvas {
  margin-bottom: 24px !important;
}

#app-container .single-view-canvas {
  height: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  align-self: stretch !important;
  padding: 0 !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#app-container .browser-mockup {
  height: 100% !important;
  max-height: none !important;
  min-height: 400px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  max-width: 100% !important; /* Stretch to fill available workspace width */
  width: 100% !important;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Sidebar resizer handle */
.sidebar-resizer {
  width: 4px !important;
  background-color: #cbd5e1 !important;
  cursor: col-resize !important;
  position: relative !important;
  z-index: 100 !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  transition: background-color 0.2s ease, width 0.2s ease !important;
}

.sidebar-resizer:hover,
.sidebar-resizer.resizing {
  background-color: #F97316 !important;
  width: 6px !important;
}

#app-container .single-view-canvas.mobile-view .browser-mockup {
  max-width: 375px !important;
  height: 100% !important;
  max-height: 667px !important;
  align-self: center !important;
}

#app-container .browser-header {
  display: none !important; /* Hide the dots and address bar */
}

#app-container .email-frame {
  flex: 1 !important;
  overflow: auto !important;
  height: 100% !important;
  background: #ffffff !important;
  position: relative !important;
}

#app-container .email-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* ── Premium Responsive Hamburger & Light Theme Cards Styling Overrides ── */

/* Hamburger Toggler Button */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
  .hamburger-btn {
    color: #09090b;
  }
  .hamburger-btn:hover {
    background: rgba(9, 9, 11, 0.05);
  }
}

/* Light Theme overrides for plan cards to maximize contrast, color harmony and visual aesthetic */
@media (prefers-color-scheme: light) {
  /* Plan cards */
  .plan-card {
    background: #ffffff !important;
    border: 1px solid rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  }

  .plan-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(234, 88, 12, 0.06) !important;
  }

  .plan-card.popular {
    background: linear-gradient(180deg, #ffffff, rgba(234, 88, 12, 0.02)) !important;
    border-color: rgba(234, 88, 12, 0.5) !important;
  }

  /* Plan Title & Metadata */
  .plan-name {
    color: #09090b !important;
  }

  .plan-price-period {
    color: #71717a !important;
  }

  .plan-desc {
    color: #52525b !important;
  }

  /* Feature items */
  .plan-features li {
    color: #3f3f46 !important;
  }

  .plan-features li i {
    color: #ea580c !important; /* Orange/Accent tint for ticks in light mode */
  }
}

/* Mobile responsive navigation & header layout */
@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex !important;
  }
  
  .landing-nav {
    display: none !important; /* Hide standard inline nav */
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 20px !important;
    right: 20px !important;
    background: rgba(9, 9, 11, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
  }

  .landing-nav.active {
    display: flex !important;
    animation: slideDownMobileNav 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .landing-nav-link {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
    display: block !important;
    text-align: left !important;
  }

  .landing-nav-link:hover {
    background: rgba(234, 88, 12, 0.1) !important;
    color: var(--accent-hover) !important;
    padding-left: 22px !important;
  }

  @media (prefers-color-scheme: light) {
    .landing-nav {
      background: rgba(255, 255, 255, 0.98) !important;
      border: 1px solid rgba(9, 9, 11, 0.08) !important;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
    }
    .landing-nav-link {
      color: #3f3f46 !important;
    }
    .landing-nav-link:hover {
      background: rgba(234, 88, 12, 0.08) !important;
    }
  }
}

@keyframes slideDownMobileNav {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Portal Footer styling overrides to match backgrounds cleanly and display premium alignment */
.portal-footer {
  margin-top: 60px;
  padding: 30px 24px;
  border-top: 1px solid var(--border-muted) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.portal-footer .footer-link {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  transition: color 0.2s ease !important;
}

.portal-footer .footer-link:hover {
  color: var(--accent-hover) !important;
}

@media (max-width: 768px) {
  .portal-footer {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 24px 16px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
 * MOBILE FRAME VIEW SWITCHER TOGGLE STYLES
 * ───────────────────────────────────────────────────────────── */
.btn-mobile-toggle {
  display: none; /* Hidden on desktop & tablets */
  position: fixed;
  bottom: 80px; /* Float above the workspace footer */
  right: 24px;
  z-index: 1000;
  background-color: #F97316 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45) !important;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  font-family: var(--font-sans) !important;
}

.btn-mobile-toggle:hover {
  background-color: #ea580c !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.55) !important;
}

.btn-mobile-toggle:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  /* On mobile, show only one frame at a time based on active class */
  .workspace-container.show-preview-only .sidebar {
    display: none !important;
  }
  .workspace-container.show-preview-only .sidebar-resizer {
    display: none !important;
  }
  .workspace-container.show-preview-only .preview-container {
    display: flex !important;
    width: 100% !important;
    flex: 1 !important;
  }
  
  .workspace-container.show-sidebar-only .sidebar {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    flex: 1 !important;
  }
  .workspace-container.show-sidebar-only .sidebar-resizer {
    display: none !important;
  }
  .workspace-container.show-sidebar-only .preview-container {
    display: none !important;
  }
  
  .workspace-container {
    flex-direction: row !important; /* Keep as row so display none handles single-frame toggle */
    height: calc(100vh - 120px) !important;
    overflow: hidden !important;
  }

  .btn-mobile-toggle {
    display: flex !important;
  }

  /* Toggle visual states of text/icons inside the floating button */
  .workspace-container.show-sidebar-only .btn-mobile-toggle-icon-edit {
    display: none !important;
  }
  .workspace-container.show-sidebar-only .btn-mobile-toggle-icon-preview {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }
  .workspace-container.show-preview-only .btn-mobile-toggle-icon-edit {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }
  .workspace-container.show-preview-only .btn-mobile-toggle-icon-preview {
    display: none !important;
  }
}



