/* ==========================================================================
   FreeHost — Single Source of Truth Design Tokens & Stylesheet
   Strict adherence to the FreeHost visual identity:
   - Dark near-black background: #070B10 / #090E15
   - Surface cards: #0D141D
   - Lighter active/sidebar surface: #151F2B
   - Borders: thin #1B2938
   - Primary text: near-white #F5F7FA
   - Muted text: blue-grey #8C9AAF
   - Positive/status green: #18C98B
   - Buttons: white background, dark text, small rounded corners
   - Typography: Inter & JetBrains Mono
   ========================================================================== */

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

:root {
  /* Surface & Backgrounds */
  --bg-canvas: #070B10;
  --bg-sidebar: #090E15;
  --bg-topbar: #090E15;
  --bg-card: #0D141D;
  --bg-card-hover: #111A26;
  --bg-active: #151F2B;
  --bg-input: #0A0F16;

  /* Borders */
  --border-subtle: #1B2938;
  --border-active: #2A3F55;
  --border-focus: #3B82F6;

  /* Typography Colors */
  --text-primary: #F5F7FA;
  --text-secondary: #8C9AAF;
  --text-muted: #566479;
  --text-faint: #3A4758;

  /* Accent & Semantic Colors */
  --color-green: #18C98B;
  --color-green-soft: rgba(24, 201, 139, 0.12);
  --color-blue: #3B82F6;
  --color-blue-soft: rgba(59, 130, 246, 0.12);
  --color-purple: #8B5CF6;
  --color-purple-soft: rgba(139, 92, 246, 0.15);
  --color-yellow: #EAB308;
  --color-yellow-soft: rgba(234, 179, 8, 0.15);
  --color-red: #EF4444;
  --color-red-soft: rgba(239, 68, 68, 0.12);

  /* Primary Button Token */
  --btn-primary-bg: #FFFFFF;
  --btn-primary-text: #070B10;
  --btn-primary-hover: #E2E8F0;

  /* Dimensions */
  --sidebar-w: 248px;
  --header-h: 64px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Global Reset & Body ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Base Components: Buttons, Inputs, Cards, Tables, Badges
   ========================================================================== */

/* Buttons */
.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 120ms ease;
  white-space: nowrap;
}

.fh-btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  border: 1px solid var(--btn-primary-bg);
}
.fh-btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.fh-btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.fh-btn-secondary:hover {
  background-color: var(--bg-active);
  border-color: var(--border-active);
}

.fh-btn-danger {
  background-color: var(--bg-card);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.fh-btn-danger:hover {
  background-color: var(--color-red-soft);
  border-color: var(--color-red);
}

.fh-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.fh-btn-lg {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.fh-btn-icon {
  padding: 0.5rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.fh-btn-icon:hover {
  background: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* Inputs & Forms */
.fh-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

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

.fh-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fh-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.fh-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
  outline: none;
}
.fh-input::placeholder {
  color: var(--text-muted);
}

.fh-input-icon-left {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}
.fh-input-with-icon-left {
  padding-left: 2.3rem;
}

.fh-input-action-right {
  position: absolute;
  right: 0.6rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}
.fh-input-action-right:hover {
  color: var(--text-primary);
}

.fh-input-addon-group {
  display: flex;
  align-items: stretch;
}
.fh-input-addon-group .fh-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.fh-input-addon {
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  border-left: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Cards */
.fh-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 150ms ease;
}

/* Badges */
.fh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fh-badge-green {
  background-color: var(--color-green-soft);
  color: var(--color-green);
  border: 1px solid rgba(24, 201, 139, 0.25);
}
.fh-badge-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-green);
}

.fh-badge-blue {
  background-color: var(--color-blue-soft);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.fh-badge-purple {
  background-color: var(--color-purple-soft);
  color: var(--color-purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.fh-badge-muted {
  background-color: var(--bg-active);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* File type icon badge (purple for php, blue for css, yellow for js) */
.fh-file-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.fh-file-icon-php {
  background-color: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.fh-file-icon-css {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.fh-file-icon-js {
  background-color: rgba(234, 179, 8, 0.2);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.fh-file-icon-generic {
  background-color: var(--bg-active);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.fh-file-icon-folder {
  color: var(--text-secondary);
}

/* Tables */
.fh-table-container {
  width: 100%;
  overflow-x: auto;
}

.fh-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fh-table th {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  background-color: transparent;
  user-select: none;
}

.fh-table th.sortable {
  cursor: pointer;
}
.fh-table th.sortable:hover {
  color: var(--text-primary);
}

.fh-table td {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.fh-table tbody tr {
  transition: background-color 100ms ease;
  cursor: pointer;
}

.fh-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

.fh-table tbody tr.selected {
  background-color: var(--bg-active);
}

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

/* Custom Checkbox */
.fh-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background-color: var(--bg-input);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  transition: all 120ms ease;
}
.fh-checkbox:checked {
  background-color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
}
.fh-checkbox:checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid var(--btn-primary-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
}

/* ==========================================================================
   Application Shell: Fixed Sidebar & 64px Header
   ========================================================================== */

.fh-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-canvas);
}

/* Sidebar */
.fh-sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 1.25rem 0.85rem 1.25rem 0.85rem;
  transition: transform 200ms ease;
}

.fh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.fh-brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.fh-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.fh-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 120ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.fh-nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.fh-nav-link.active {
  background-color: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  font-weight: 600;
}

.fh-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.fh-nav-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 0.85rem 0;
}

/* Sidebar Promo Banner */
.fh-sidebar-promo {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.fh-sidebar-promo-icon {
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.fh-sidebar-promo h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.fh-sidebar-promo p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.fh-sidebar-promo-wave {
  position: absolute;
  right: -10px;
  bottom: -15px;
  opacity: 0.25;
  pointer-events: none;
}

.fh-sidebar-version {
  padding: 0.75rem 0.5rem 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Main Layout Wrapper */
.fh-main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header (64px) */
.fh-header {
  height: var(--header-h);
  background-color: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.fh-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  width: 320px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.fh-search-bar:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}
.fh-search-bar svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}
.fh-search-bar span {
  flex: 1;
}

.fh-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fh-header-btn {
  position: relative;
  color: var(--text-secondary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.fh-header-btn:hover {
  color: var(--text-primary);
}
.fh-header-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background-color: var(--color-blue);
  border-radius: 50%;
}

.fh-user-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 120ms ease;
}
.fh-user-menu:hover {
  background-color: var(--bg-card);
}

.fh-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.fh-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Mobile Toggle */
.fh-mobile-nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
}

/* Content Area */
.fh-content {
  padding: 1.75rem;
  flex: 1;
}

/* ==========================================================================
   Page Headers & Reusable Panels
   ========================================================================== */

.fh-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fh-page-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fh-page-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.fh-page-icon-box svg {
  width: 22px;
  height: 22px;
}

.fh-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.fh-page-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.fh-page-header-widgets {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Domain Link Pill Widget */
.fh-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}
.fh-domain-pill:hover {
  border-color: var(--border-active);
}
.fh-domain-pill svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

/* Storage Usage Header Widget */
.fh-storage-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.95rem;
  min-width: 190px;
}

.fh-storage-widget-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}
.fh-storage-widget-title {
  color: var(--text-secondary);
}
.fh-storage-widget-val {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.fh-progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--bg-active);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.2rem;
}
.fh-progress-bar-fill {
  height: 100%;
  background-color: var(--color-blue);
  border-radius: 2px;
}
.fh-storage-widget-pct {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Screen 8: File Manager (Pixel Match)
   ========================================================================== */

.fh-fm-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.fh-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.fh-breadcrumb-item {
  color: var(--text-secondary);
  cursor: pointer;
}
.fh-breadcrumb-item:hover {
  color: var(--text-primary);
}
.fh-breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}
.fh-breadcrumb-sep {
  color: var(--text-muted);
}

.fh-fm-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fh-fm-search {
  position: relative;
  width: 260px;
}

.fh-fm-action-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.fh-fm-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}

/* Right Selected File Panel */
.fh-fm-inspector {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.fh-fm-inspector-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.fh-fm-inspector-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.fh-fm-inspector-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.fh-fm-inspector-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.fh-fm-inspector-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.fh-fm-inspector-btns .fh-btn {
  width: 100%;
}

.fh-fm-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.fh-fm-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.fh-fm-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.fh-fm-detail-label {
  color: var(--text-muted);
}
.fh-fm-detail-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.fh-fm-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.fh-fm-quick-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 120ms ease;
}
.fh-fm-quick-btn:hover {
  background-color: var(--bg-active);
  color: var(--text-primary);
}
.fh-fm-quick-btn svg {
  width: 15px;
  height: 15px;
}

.fh-fm-tip-box {
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.fh-fm-tip-box svg {
  width: 16px;
  height: 16px;
  color: var(--color-yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Table Footer / Pagination */
.fh-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fh-pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fh-page-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
}
.fh-page-btn:hover {
  background-color: var(--bg-active);
  color: var(--text-primary);
}
.fh-page-btn.active {
  background-color: var(--bg-active);
  color: var(--color-blue);
  border-color: var(--border-active);
  font-weight: 600;
}

/* ==========================================================================
   Screen 1: Landing Page
   ========================================================================== */

.fh-landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fh-landing-nav {
  height: 72px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background-color: var(--bg-sidebar);
}

.fh-landing-hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.fh-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.fh-landing-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.fh-landing-hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.fh-landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Interactive Mockup Preview Illustration */
.fh-hero-graphic-box {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-canvas) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto 5rem;
}

.fh-hero-graphic-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.fh-landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.fh-landing-feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform 150ms ease, border-color 150ms ease;
}
.fh-landing-feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.fh-landing-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.fh-landing-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.fh-landing-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fh-landing-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-sidebar);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Screen 2, 3, 4: Auth Split Layout (Register, Login, OTP)
   ========================================================================== */

.fh-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-canvas);
}

.fh-auth-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.fh-auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.fh-auth-header {
  margin-bottom: 1.75rem;
}

.fh-auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.fh-auth-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.fh-auth-banner-success {
  background-color: var(--color-green-soft);
  border: 1px solid rgba(24, 201, 139, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--color-green);
  font-size: 0.85rem;
}

/* Password Strength Meter */
.fh-pw-strength {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}
.fh-pw-bars {
  display: flex;
  gap: 4px;
  height: 4px;
  margin-bottom: 0.35rem;
}
.fh-pw-bar {
  flex: 1;
  background-color: var(--bg-active);
  border-radius: 2px;
  transition: background-color 200ms ease;
}
.fh-pw-bar.active-weak { background-color: var(--color-red); }
.fh-pw-bar.active-fair { background-color: var(--color-yellow); }
.fh-pw-bar.active-strong { background-color: var(--color-green); }

.fh-pw-strength-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* OTP 6-Digit Inputs */
.fh-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.fh-otp-box {
  height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 150ms ease;
}
.fh-otp-box:focus {
  border-color: var(--border-focus);
  outline: none;
}

/* Auth Visual Side Panel */
.fh-auth-visual-side {
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.fh-auth-visual-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.fh-auth-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.fh-auth-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.fh-auth-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-green-soft);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fh-auth-check-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.fh-auth-check-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.fh-auth-check-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Screen 5: Customer Dashboard
   ========================================================================== */

.fh-dashboard-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.fh-dashboard-welcome-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.fh-dashboard-welcome-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.fh-ssl-alert-banner {
  background-color: rgba(24, 201, 139, 0.08);
  border: 1px solid rgba(24, 201, 139, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.fh-ssl-alert-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-green);
  font-size: 0.88rem;
  font-weight: 500;
}

/* 4-Column Metric Cards Grid */
.fh-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.fh-metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.fh-metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.fh-metric-card-title {
  font-size: 0.8rem;
  font-weight: 500;
}
.fh-metric-card-icon {
  color: var(--text-muted);
}

.fh-metric-card-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.fh-metric-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 2-Column Dashboard Sections */
.fh-dashboard-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   Screen 6: Create New Site Page
   ========================================================================== */

.fh-create-site-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}

.fh-live-preview-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.fh-live-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.fh-live-preview-item:last-child {
  border-bottom: none;
}
.fh-live-preview-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.fh-live-preview-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-blue);
  font-weight: 500;
}

/* ==========================================================================
   Screen 12: Usage Gauge Visualizations
   ========================================================================== */

.fh-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.fh-gauge-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fh-gauge-ring {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.fh-gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.fh-gauge-val {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.fh-gauge-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.fh-gauge-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Screen 13 & 14: Success & Error States
   ========================================================================== */

.fh-state-center-card {
  max-width: 540px;
  margin: 4rem auto;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

.fh-state-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-active);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.fh-state-icon-success {
  color: var(--color-green);
  background-color: var(--color-green-soft);
  border-color: rgba(24, 201, 139, 0.3);
}

.fh-state-icon-error {
  color: var(--color-red);
  background-color: var(--color-red-soft);
  border-color: rgba(239, 68, 68, 0.3);
}

.fh-state-center-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.fh-state-center-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.fh-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Modals & Toast Notifications
   ========================================================================== */

.fh-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}
.fh-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.fh-modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.fh-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fh-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fh-modal-body {
  padding: 1.5rem;
}

.fh-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Container */
.fh-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fh-toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  animation: slideInToast 200ms ease;
}
@keyframes slideInToast {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Prototype Screen Switcher Pill (Fixed Top Floating bar for testing) */
.fh-proto-nav-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(13, 20, 29, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  max-width: 95vw;
  overflow-x: auto;
}

.fh-proto-nav-item {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 120ms ease;
}
.fh-proto-nav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-active);
}
.fh-proto-nav-item.active {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .fh-fm-layout {
    grid-template-columns: 1fr;
  }
  .fh-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fh-landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .fh-create-site-layout {
    grid-template-columns: 1fr;
  }
  .fh-dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fh-sidebar {
    transform: translateX(-100%);
  }
  .fh-sidebar.open {
    transform: translateX(0);
  }
  .fh-main-wrapper {
    margin-left: 0;
  }
  .fh-mobile-nav-toggle {
    display: inline-flex;
  }
  .fh-search-bar {
    display: none;
  }
  .fh-auth-page {
    grid-template-columns: 1fr;
  }
  .fh-auth-visual-side {
    display: none;
  }
  .fh-usage-grid {
    grid-template-columns: 1fr;
  }
  .fh-metric-grid {
    grid-template-columns: 1fr;
  }
  .fh-landing-features {
    grid-template-columns: 1fr;
  }
  .fh-landing-nav {
    padding: 0 1.5rem;
  }
  .fh-content {
    padding: 1.25rem 1rem;
  }
}
