/* ========================================================
   BloxHub — Modern Developer Suite
   Refined Typography, Catalog Architecture & Interactive Microinteractions
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #08060e;
  --bg-surface: #0e0c16;
  --bg-surface-elevated: #151122;
  --bg-card: rgba(14, 11, 24, 0.88);
  --bg-card-hover: rgba(22, 17, 36, 0.96);

  --border-dim: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 117, 160, 0.22);
  --border-hover: rgba(255, 117, 160, 0.42);

  --sakura-pink: #ff75a0;
  --sakura-rose: #ff3377;
  --sakura-soft: #ffb8d0;
  --sakura-glow: rgba(255, 117, 160, 0.22);
  --sakura-glow-intense: rgba(255, 51, 119, 0.45);

  --accent-purple: #c084fc;
  --accent-cyan: #38bdf8;

  --text-primary: #ffffff;
  --text-secondary: #f0edf8;
  --text-muted: #cbc7de;
  --text-dim: #9894ad;

  --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Canvas & Auroras */
#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.ambient-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--sakura-rose), transparent 70%);
  top: -120px;
  right: -100px;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  top: 35%;
  left: -150px;
  animation: floatOrb 24s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #ff5e9c, transparent 70%);
  bottom: -220px;
  right: 15%;
  opacity: 0.12;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.06); }
  100% { transform: translate(-25px, 45px) scale(0.96); }
}

/* Universal Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========================================================
   Header & Interactive Sakura Brand Animation
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Brand Link */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

/* ========================================================
   Realistic Full-Page Side Sakura Tree & Overhead Canopy
   ======================================================== */
.sakura-tree-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sakura-tree-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(8, 6, 14, 0.95) 0%, rgba(8, 6, 14, 0.72) 45%, transparent 75%),
    linear-gradient(to right, rgba(8, 6, 14, 0.94) 0%, rgba(8, 6, 14, 0.55) 42%, transparent 72%);
  pointer-events: none;
}

.sakura-tree-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  opacity: 0.98;
  filter: brightness(1.26) contrast(1.1) saturate(1.35) drop-shadow(0 0 45px rgba(255, 80, 150, 0.45));
  will-change: transform;
  animation: treeCanopyBreeze 20s ease-in-out infinite alternate;
}

@keyframes treeCanopyBreeze {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.008) translate(-3px, 1.5px);
  }
  100% {
    transform: scale(1.003) translate(1px, -1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-tree-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  opacity: 0.98;
  filter: brightness(1.26) contrast(1.1) saturate(1.35) drop-shadow(0 0 45px rgba(255, 80, 150, 0.45));
  will-change: transform;
  animation: treeCanopyBreeze 20s ease-in-out infinite alternate;
}
}

@media (max-width: 900px) {
  .sakura-tree-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  opacity: 0.98;
  filter: brightness(1.26) contrast(1.1) saturate(1.35) drop-shadow(0 0 45px rgba(255, 80, 150, 0.45));
  will-change: transform;
  animation: treeCanopyBreeze 20s ease-in-out infinite alternate;
}
}

/* BloxHub Wordmark (Clean & Unanimated) */
.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--sakura-pink);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 14px;
}

.btn-icon:hover {
  background: rgba(255, 117, 160, 0.1);
  border-color: var(--border-card);
  color: var(--sakura-pink);
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ========================================================
   Catalog Command Section (Focused on Catalog, not Marketing)
   ======================================================== */
.catalog-header-section {
  padding: 38px 0 20px;
}

.catalog-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: rgba(11, 8, 18, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 117, 160, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 117, 160, 0.16);
}

.catalog-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.catalog-subtitle {
  font-size: 14.5px;
  color: #dedbe8;
  margin-top: 5px;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  line-height: 1.5;
}

.catalog-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 117, 160, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sakura-pink);
  box-shadow: 0 0 6px var(--sakura-pink);
}

/* Integrated Control Bar */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  background: rgba(16, 12, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 0;
}

.search-input::placeholder {
  color: #928ea3;
}

.search-shortcut {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  user-select: none;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: var(--transition-fast);
}

.clear-btn:hover {
  color: #fff;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* View Mode Switcher (Grid / List) */
.view-mode-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: rgba(255, 117, 160, 0.16);
  color: var(--sakura-pink);
}

.sort-dropdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sort-dropdown:hover, .sort-dropdown:focus {
  border-color: var(--border-card);
  color: #fff;
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  background: rgba(255, 117, 160, 0.06);
  border-color: var(--border-card);
  color: var(--text-primary);
}

.pill-btn.active {
  background: rgba(255, 117, 160, 0.15);
  border-color: var(--sakura-pink);
  color: #ffffff;
  box-shadow: 0 0 14px var(--sakura-glow);
}

/* ========================================================
   Catalog Content & Cards Grid / List
   ======================================================== */
.catalog-content-section {
  padding-bottom: 60px;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Tools Container (Grid View) */
.tools-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Tools Container (List View) */
.tools-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Grid Card */
.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sakura-pink), var(--accent-purple), transparent);
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--sakura-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 117, 160, 0.12), rgba(192, 132, 252, 0.08));
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 14px var(--sakura-glow);
  flex-shrink: 0;
}

.card-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
  font-size: 14px;
}

.fav-btn:hover, .fav-btn.active {
  color: #ff3366;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sakura-soft);
  background: rgba(255, 117, 160, 0.08);
  border: 1px solid rgba(255, 117, 160, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.card-category {
  font-size: 11.5px;
  color: var(--sakura-pink);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-desc {
  font-size: 13.5px;
  color: #d6d3e6;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--sakura-soft);
  background: rgba(255, 117, 160, 0.06);
  border: 1px solid rgba(255, 117, 160, 0.16);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Card Spec Strip */
.card-spec-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.spec-file {
  color: #ffffff;
  font-weight: 500;
}

.spec-size {
  color: #ffb8cf;
  font-weight: 600;
}

.card-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Primary Action: Direct Download */
.btn-download {
  flex: 1;
  background: linear-gradient(135deg, var(--sakura-rose), #e11d48);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 51, 119, 0.32);
  transition: var(--transition-fast);
}

.btn-download:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 51, 119, 0.48);
}

.btn-inspect {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-inspect:hover {
  background: rgba(255, 117, 160, 0.08);
  border-color: var(--border-card);
  color: var(--sakura-pink);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-fast);
}

.btn-delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Compact List View Row (.tool-row) */
.tool-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-fast);
}

.tool-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.row-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 117, 160, 0.1);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.row-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.row-category {
  font-size: 11px;
  color: var(--sakura-pink);
}

.row-mid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.row-spec-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ========================================================
   Technical Infrastructure & Cryptographic Verification
   ======================================================== */
.tech-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-dim);
}

.section-header-compact {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition-fast);
}

.tech-card:hover {
  border-color: var(--border-card);
  box-shadow: 0 0 20px var(--sakura-glow);
}

.tech-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 117, 160, 0.08);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.tech-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.tech-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========================================================
   Technical FAQ Section
   ======================================================== */
.faq-section {
  padding: 48px 0 60px;
  border-top: 1px solid var(--border-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 17px;
  color: var(--sakura-pink);
  transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.code-snippet {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sakura-soft);
  margin-top: 10px;
  overflow-x: auto;
}

/* ========================================================
   Clean Footer
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 28px 0;
  background: rgba(8, 6, 14, 0.96);
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 8px;
}

.footer-note {
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 18px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--sakura-pink);
}

/* ========================================================
   Modals & Verification Dialogs
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.18s ease;
}

.modal-box {
  background: #0f0d19;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--sakura-glow);
  position: relative;
  padding: 26px;
}

.modal-box-sm {
  max-width: 400px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 117, 160, 0.15);
  border-color: var(--sakura-pink);
  color: #fff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hash-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 10px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hash-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  word-break: break-all;
  user-select: all;
}

.btn-copy-hash {
  background: rgba(255, 117, 160, 0.12);
  border: 1px solid var(--border-card);
  color: var(--sakura-pink);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-copy-hash:hover {
  background: var(--sakura-pink);
  color: #fff;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--sakura-pink);
  box-shadow: 0 0 0 3px rgba(255, 117, 160, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sakura-rose), #e11d48);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 51, 119, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 51, 119, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dim);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: rgba(255, 117, 160, 0.08);
  border-color: var(--border-card);
  color: var(--sakura-pink);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.upload-dropzone {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 117, 160, 0.03);
  transition: var(--transition-fast);
  margin-bottom: 14px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background: rgba(255, 117, 160, 0.08);
  border-color: var(--sakura-pink);
}

.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sakura-pink), var(--accent-purple));
  transition: width 0.2s ease;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-dim);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

/* Toast Notifications */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #141120;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--sakura-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.22s ease;
}

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden {
  display: none !important;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .tools-container.grid-view {
    grid-template-columns: 1fr;
  }
  .catalog-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: rgba(11, 8, 18, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 117, 160, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 117, 160, 0.16);
}
  .catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  background: rgba(16, 12, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}
  .controls-right {
    justify-content: space-between;
  }
  .tool-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .row-mid {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .row-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
