/* ==========================================================================
   ABANG TOOLS 🛠️ — Unified Design System Stylesheet
   Inherits design language, dark obsidian theme, glassmorphic UI, and typography
   from ABANGADEKGANTENG main ecosystem.
   ========================================================================== */

@import url("../css/variables.css");
@import url("../css/animation.css");

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background-color: var(--bg-primary, #070913);
  color: var(--text-primary, #f8fafc);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow */
.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(60px);
}

.glow-orb-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(60px);
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Layout Containers */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--glass-bg, rgba(15, 23, 42, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  transition: all var(--transition-smooth, 0.25s ease);
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

/* Navigation System (Single Hamburger for All Devices) */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0.85rem 1.25rem;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-full, 9999px);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--fs-base, 1rem);
  letter-spacing: -0.01em;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hamburger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
  transform: scale(1.05);
}

.hamburger-icon-wrapper {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-hamburger, .icon-close {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.hamburger-btn[aria-expanded="true"] .icon-hamburger {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.hamburger-btn[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Nav Menu Overlay & Panel */
.nav-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-menu-backdrop.active,
.nav-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-panel,
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}

.nav-menu-panel.active,
.nav-menu-panel.open,
.nav-menu.active,
.nav-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.nav-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 10px);
  color: var(--text-secondary, #cbd5e1);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-menu-link:hover, .nav-menu-link.active {
  background: rgba(139, 92, 246, 0.15);
  color: #ffffff;
}

.nav-menu-link.active {
  border-left: 3px solid #a855f7;
  font-weight: 600;
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-arrow {
  color: #64748b;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.nav-menu-link:hover .nav-link-arrow {
  transform: translateX(3px);
  color: #c084fc;
}

.nav-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.nav-menu-settings-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-menu-settings-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
}

.settings-badge {
  font-size: 11px;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.nav-menu-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.secondary-nav-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.secondary-nav-link:hover {
  color: #ffffff;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm, 6px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.breadcrumb-sep {
  color: #475569;
}

.breadcrumb-current {
  color: #c084fc;
  font-weight: 500;
}

/* Hero Section for Tools */
.tools-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.tools-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseGlow 2s infinite;
}

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

.tools-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 80%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.tools-hero-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Tool Catalog Controls (Search & Filter) */
.tools-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tools-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tools-search-box {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.tools-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.tools-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.tools-search-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.tools-filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip:hover, .filter-chip.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
}

/* Tool Catalog Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.tool-catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid;
}

.tool-card-category-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tool-card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tool-card-function {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm, 8px);
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.825rem;
  color: #cbd5e1;
}

.tool-card-function strong {
  color: #c084fc;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.tool-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tool-feature-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #94a3b8;
}

.tool-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.tool-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  filter: brightness(1.1);
}

/* ==========================================================================
   Tool Page Specific Playground Layouts & UI Components
   ========================================================================== */
.tool-playground-container {
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
}

.tool-interactive-card {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, rgba(15, 23, 42, 0.8) 80%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.1);
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md, 10px);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-icon-only {
  padding: 0.6rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm, 8px);
}

/* Form Controls & Inputs */
.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-control-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.form-control-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

/* Checkbox Toggle Group */
.toggle-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.toggle-label-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.07));
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.toggle-label-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.3);
}

.toggle-label-card input[type="checkbox"] {
  accent-color: #8b5cf6;
  width: 16px;
  height: 16px;
}

/* Output Display Box */
.output-display-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.output-value-text {
  font-family: var(--font-mono, "Courier New", monospace);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

/* Informational Content Sections */
.tool-info-section {
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-block-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
}

.info-block-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-block-content {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.step-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md, 10px);
  padding: 1rem;
}

.feature-mini-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-mini-desc {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* FAQ Accordion / Cards */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 10px);
  padding: 1.15rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Related Tools Section */
.related-tools-section {
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.related-tools-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .related-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.related-tool-card:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(168, 85, 247, 0.4);
}

.related-tool-icon {
  font-size: 1.5rem;
}

.related-tool-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.related-tool-category {
  font-size: 11px;
  color: #c084fc;
}

/* Universal Footer */
.footer {
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  background: rgba(7, 9, 19, 0.95);
  padding: 3.5rem 1.25rem 2rem 1.25rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: #c084fc;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.footer-bio {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

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

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

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Settings Modal in Tools */
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.settings-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.settings-modal-backdrop.active .settings-modal-card {
  transform: scale(1);
}

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

.settings-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.settings-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.settings-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.theme-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option-btn:hover, .theme-option-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: #a855f7;
  color: #ffffff;
}

.accent-options-grid {
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.accent-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.75rem;
}

.accent-swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-swatch);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.accent-option-btn.active .accent-swatch-circle, .accent-option-btn:hover .accent-swatch-circle {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--accent-swatch);
}

.accent-option-btn.active {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Tool Auth Gatekeeper & Interactive Lockdown Styles
   ========================================================================== */
.tool-auth-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg, 16px);
  margin: 1rem 0;
  backdrop-filter: blur(10px);
}

.tool-auth-gate-card.checking-state {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 2.5rem 1.5rem;
}

.auth-gate-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.4));
}

.auth-gate-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary, #a855f7);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full, 9999px);
  margin-bottom: 0.85rem;
}

.auth-gate-title {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.auth-gate-desc {
  max-width: 480px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.auth-gate-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin-bottom: 1.5rem;
}

.auth-gate-btn {
  flex: 1 1 140px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.auth-gate-perks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.perk-item span {
  color: #10b981;
  font-weight: bold;
}

.tool-user-active-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md, 10px);
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
}

.tool-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, #8b5cf6, #3b82f6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  flex-shrink: 0;
}

.tool-user-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #f1f5f9;
}

.tool-user-text small {
  font-size: 0.75rem;
  color: #94a3b8;
}

