/* ==========================================================================
   ArtBot AI Tools Portal - Main Catalog & UI Styles
   Aesthetic: Dark Tech / Neo-SaaS / Minimalist Cyber
   Guidelines: taste-skill + ui-ux-pro-max-skill
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.artbot-body {
  background-color: var(--bg-main, #07080c);
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-sans, 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'Unbounded', 'Outfit', sans-serif);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast, 0.15s ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* Site Wrapper & Background Visual FX */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-top-left {
  top: -10vw;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(99, 102, 241, 0.08) 60%, transparent 80%);
}

.glow-top-right {
  top: -5vw;
  right: -10vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(16, 185, 129, 0.05) 60%, transparent 80%);
}

.glow-center {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 75%);
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill, 9999px);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast, 0.15s ease);
  user-select: none;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #6366f1 100%);
  color: #07080c;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38f4ff 0%, #818cf8 100%);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #f8fafc);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #64748b);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  z-index: 100;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 23, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  transition: all var(--transition-fast, 0.15s ease);
}

.brand-logo:hover .logo-mark {
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.brand-accent {
  color: var(--cyan, #00f0ff);
}

.brand-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted, #64748b);
  margin-top: 3px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast, 0.15s ease);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link svg {
  opacity: 0.75;
  flex-shrink: 0;
}

.nav-link:hover svg, .nav-link.active svg {
  opacity: 1;
  color: var(--cyan, #00f0ff);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.system-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 24px 40px;
  position: relative;
  z-index: 10;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan, #00f0ff);
  box-shadow: 0 0 8px var(--cyan, #00f0ff);
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
}

.hero-title {
  font-family: var(--font-display, 'Unbounded', sans-serif);
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.4));
}

.hero-subtext {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary, #94a3b8);
  max-width: 65ch;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

/* Interactive Search & Filter Controls */
.catalog-control-panel {
  max-width: 820px;
  margin: 0 auto 40px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 16, 23, 0.85);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast, 0.15s ease);
  backdrop-filter: blur(15px);
}

.search-box-wrapper:focus-within {
  border-color: var(--cyan, #00f0ff);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.search-icon {
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.catalog-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 10px 0;
}

.catalog-search-input::placeholder {
  color: var(--text-muted, #64748b);
  font-size: 0.9375rem;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast, 0.15s ease);
}

.search-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #94a3b8);
  padding: 8px 16px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.pill-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Metrics Strip */
.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(14, 16, 23, 0.6);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-lg, 20px);
  padding: 16px 28px;
  max-width: 820px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Catalog Section & Tool Cards
   ========================================================================== */
.catalog-section {
  padding: 60px 24px 80px;
  position: relative;
  z-index: 10;
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary, #94a3b8);
  font-size: 1rem;
}

.catalog-counter-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.8125rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 500;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tool-card {
  position: relative;
  background: var(--bg-card, rgba(16, 19, 28, 0.75));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal, 0.25s ease);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover, rgba(0, 240, 255, 0.35));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
  background: var(--bg-card-hover, rgba(22, 26, 38, 0.9));
}

.tool-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Media Preview */
.card-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #0d0f17;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow, 0.5s ease);
}

.tool-card:hover .card-image {
  transform: scale(1.03);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 8, 12, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast, 0.15s ease);
}

.tool-card:hover .card-image-overlay {
  opacity: 1;
}

.quick-launch-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  color: #07080c;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill, 9999px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(8px);
  transition: all var(--transition-fast, 0.15s ease);
}

.tool-card:hover .quick-launch-overlay-btn {
  transform: translateY(0);
}

.quick-launch-overlay-btn:hover {
  background: var(--cyan, #00f0ff);
  color: #000000;
  box-shadow: 0 0 25px var(--cyan-glow, rgba(0, 240, 255, 0.5));
}

/* Placeholder for Coming Soon */
.card-placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(13, 15, 23, 1) 70%);
  color: var(--text-muted, #64748b);
}

.placeholder-graphic {
  color: rgba(99, 102, 241, 0.4);
}

.placeholder-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Badges on Card */
.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.badge-category {
  padding: 4px 10px;
  background: rgba(14, 16, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-status.online {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-status.online .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.badge-status.coming-soon {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Card Body */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.speed-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan, #00f0ff);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.card-desc {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag-chip {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.btn-launch {
  flex: 1;
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: rgba(16, 19, 28, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 20px);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
}

.catalog-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.catalog-empty-state p {
  color: var(--text-secondary, #94a3b8);
  max-width: 48ch;
  margin: 0 auto 20px;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Platform Features Bento Grid
   ========================================================================== */
.features-section {
  padding: 60px 24px 80px;
  position: relative;
  z-index: 10;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.bento-card {
  background: var(--bg-card, rgba(16, 19, 28, 0.75));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 20px);
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  transition: all var(--transition-fast, 0.15s ease);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.bento-card-large {
  grid-column: span 1;
}

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon-wrapper.cyan {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.bento-icon-wrapper.indigo {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.bento-icon-wrapper.emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-desc {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bento-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

/* ==========================================================================
   Tool Embedded Page View (page-tool.php)
   ========================================================================== */
.tool-view-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  width: 100%;
  position: relative;
  z-index: 10;
  background: #050608;
}

.tool-top-bar {
  height: 52px;
  background: rgba(10, 12, 18, 0.95);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.tool-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan, #00f0ff);
  transition: opacity var(--transition-fast, 0.15s ease);
}

.btn-back-link:hover {
  opacity: 0.8;
}

.tool-bar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.tool-active-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.tool-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #09090b;
}

.tool-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.tool-error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-secondary, #94a3b8);
}

/* ==========================================================================
   Tool Details Modal
   ========================================================================== */
.tool-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity var(--transition-fast, 0.15s ease);
}

.tool-modal-backdrop.hidden {
  display: none;
  opacity: 0;
}

.tool-modal-dialog {
  background: #0f111a;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-lg, 24px);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.15);
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-size: 1.5rem;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary, #94a3b8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-body {
  padding: 28px;
}

.modal-preview-wrap {
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-preview-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-features-section {
  margin-bottom: 24px;
}

.features-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-features-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--text-primary, #f8fafc);
}

.modal-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald, #10b981);
  font-weight: 800;
}

.modal-tags-wrap {
  margin-top: 16px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  padding: 60px 24px 30px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-desc {
  color: var(--text-muted, #64748b);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 36ch;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.875rem;
  transition: color var(--transition-fast, 0.15s ease);
}

.footer-links a:hover {
  color: var(--cyan, #00f0ff);
}

.tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-badge {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #34d399;
}

.btn-scroll-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.btn-scroll-top:hover {
  background: var(--cyan, #00f0ff);
  color: #07080c;
  border-color: var(--cyan, #00f0ff);
}

/* Toast */
.artbot-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md, 14px);
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.artbot-toast.hidden {
  display: none;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .system-status-chip {
    display: none;
  }
  
  .metrics-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  
  .metric-divider {
    display: none;
  }
  
  .card-actions {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
