/* ==========================================================================
   Apple Style CSS Theme - Minimalist & Glassmorphism
   ========================================================================== */
:root {
  /* Vibrant Emerald Green SaaS Palette */
  --primary: #10b981;        /* Vibrant Emerald */
  --primary-dark: #059669;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary: #64748b;
  --accent: #f59e0b;         /* Amber */
  --success: #10b981;        /* Emerald */
  --danger: #ef4444;         /* Rose */
  
  /* Backgrounds & Surfaces */
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.9);
  
  /* Text */
  --text: #0f172a;
  --text-muted: #475569;
  
  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-highlight: #cbd5e1;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.14);
  
  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 64px;
}

/* Dark Theme overrides for the global styles */
body.dark-theme,
html.dark-theme {
  --bg: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --bg-nav: rgba(17, 24, 39, 0.9);
  
  --text: #f9fafb;
  --text-muted: #9ca3af;
  
  --border: #374151;
  --border-highlight: #4b5563;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 22px 0;
}

.bg-light { background-color: transparent; }
.bg-secondary { background-color: var(--bg-secondary); }

.section-title {
  font-size: 1.45rem;
  font-weight: 750;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.45;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.35rem; }
.mt-4 { margin-top: 0.75rem; }
.mb-3 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 0.75rem; }
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; flex-direction: column; }

/* ==========================================================================
   Layout & Ads
   ========================================================================== */
.main-layout-container {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 15px 15px;
  align-items: stretch;
}

.ad-sidebar-left,
.ad-sidebar-right {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 200px;
  height: 100%;
}

.sidebar-slot-top,
.sidebar-slot-mid {
  position: relative;
  width: 100%;
  flex: 1 1 50%;
  box-sizing: border-box;
}

.ad-sticky-unit {
  position: sticky;
  top: 80px;
  width: 100%;
}

.ad-placeholder-vertical {
  background: var(--bg-card);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius);
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  box-sizing: border-box;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ad-leaderboard,
.ad-fullwidth {
  min-height: 110px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.5rem auto;
  box-sizing: border-box;
}

.ad-rectangle {
  min-height: 250px;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem auto;
  box-sizing: border-box;
}

.ad-placeholder {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius);
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.ad-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.ad-size-desktop {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin: 4px 0;
}

.ad-size-mobile {
  display: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin: 4px 0;
}

.ad-mobile-anchor {
  display: none;
}

.ad-mobile-only {
  display: none !important;
}

.ad-wrapper {
  margin: 1.5rem auto;
  width: 100%;
  box-sizing: border-box;
}

/* Interstitial Download Ad Popup */
.ad-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeInPopup 0.25s ease forwards;
}

.ad-popup-container {
  width: 94vw;
  max-width: 680px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 1.5rem !important;
  box-sizing: border-box;
  animation: scaleInPopup 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.ad-popup-close-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.ad-popup-close-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: scale(1.05);
}

.ad-popup-body {
  margin-bottom: 1.25rem;
}

.ad-popup-content {
  min-height: 380px;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.ad-popup-footer {
  width: 100%;
}

@media (max-width: 640px) {
  .ad-popup-container {
    padding: 1rem !important;
    max-width: 95vw;
  }
  .ad-popup-content {
    min-height: 280px;
    padding: 1.25rem 1rem;
  }
}

@keyframes fadeInPopup {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleInPopup {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* GDPR / AdSense Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-card);
  border-top: 1.5px solid var(--border-highlight);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 9px 18px;
  font-size: 0.86rem;
  white-space: nowrap;
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 14px 12px;
  }
  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .cookie-banner-actions .btn {
    width: 100%;
    text-align: center;
    padding: 10px 8px;
  }
}

@media (max-width: 1024px) {
  .main-layout-container {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .ad-sidebar-left, .ad-sidebar-right {
    display: none;
  }
}

/* ==========================================================================
   Components (Cards, Badges, etc)
   ========================================================================== */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-new {
  background-color: var(--primary);
  color: #fff;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  filter: none;
}

.logo-text {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}





.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 32px 20px 24px;
  text-align: center;
  position: relative;
}

.hero-brand-presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-main-logo {
  width: 320px;
  height: 320px;
  max-width: 90vw;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.hero-main-logo:hover {
  transform: scale(1.02);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.badge-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: none;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 500;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--text-muted);
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-text {
  font-size: 0.88rem;
  font-weight: 500;
}
.stat-separator {
  color: var(--border-highlight);
  font-size: 1.2rem;
}

/* ==========================================================================
   Ultra-Premium Buttons (Linear / Stripe / Vercel Grade)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.52rem 1.25rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

.btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 1px solid #047857;
  color: #ffffff !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 6px 16px -2px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #16c78e 0%, #06a477 100%);
  border-color: #05865f;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 8px 22px -2px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary) !important;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 0 10px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 1px solid #047857;
  color: #ffffff !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 6px 16px -2px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  background: linear-gradient(180deg, #16c78e 0%, #06a477 100%);
  border-color: #05865f;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 8px 22px -2px rgba(16, 185, 129, 0.45);
}

.btn-large {
  padding: 0.65rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Forms & Inputs (High Contrast & Legibility)
   ========================================================================== */
.control-group {
  margin-bottom: 0.75rem;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.custom-text-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  width: 100%;
}

.custom-text-row input {
  flex: 1;
  min-width: 0;
}

.custom-text-row select {
  width: 140px;
  flex-shrink: 0;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.28rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: var(--bg-secondary);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}

/* Custom Color Picker wrapper for Apple look */
.color-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.color-wrapper input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 54px;
  height: 54px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

/* Premium Custom Range Slider (Apple Style) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

input[type="range"]:hover {
  background: #cbd5e1;
}



input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18), 0 0 1px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0,0,0,0.28), 0 0 1px rgba(0,0,0,0.3);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(0.95);
  background: #f8fafc;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18), 0 0 1px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.number-input-pill {
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.number-input-pill::-webkit-outer-spin-button,
.number-input-pill::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input-pill:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* ==========================================================================
   Shortener Section
   ========================================================================== */
.shortener-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px;
}

.shortener-input-capsule {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.shortener-input-capsule:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  background: var(--bg-card);
}

.shortener-input-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.shortener-input-field {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  box-shadow: none !important;
  outline: none !important;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
}

.shortener-input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
  font-weight: 400;
}

.btn-shorten-action {
  padding: 7px 16px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  gap: 6px !important;
  margin: 0 !important;
}

.shortener-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  padding: 0 4px;
}

.internet-badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  display: inline-block;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
  margin: 1rem auto;
}

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

.results-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Collapsible History Dropdown */
.history-details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.history-details summary::-webkit-details-marker {
  display: none;
}

.history-summary:hover {
  color: var(--primary);
}

.history-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.history-details[open] .history-arrow {
  transform: rotate(180deg);
}

.history-container {
  margin-top: 0.4rem;
}

/* ==========================================================================
   QR 2D Generator
   ========================================================================== */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: var(--bg);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.color-item span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.color-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Visual Shape Selector Tiles (Estilo QRCode Monkey / Apple) */
.shape-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.shape-tile {
  width: 38px;
  height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 5px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.shape-tile svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.shape-tile:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.shape-tile.active {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.25);
  color: var(--primary);
}

.logo-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  gap: 8px;
  width: 100%;
  margin-top: 1rem;
}

.qr-preview {
  position: sticky;
  top: 75px;
  align-self: stretch;
  height: 100%;
  min-height: 480px;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

#qr-canvas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  padding: 18px 18px 16px 18px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: var(--bg);
}

#qr-display-canvas,
#qr-canvas canvas,
#qr-canvas svg {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

#qr-placeholder-text {
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1rem;
}

/* ==========================================================================
   QR 3D Section
   ========================================================================== */
.qr3d-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.5rem;
}

.object-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.object-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
}

.object-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary);
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.object-card:hover .object-icon-svg {
  background: rgba(16, 185, 129, 0.16);
  transform: scale(1.05);
}

.object-card.active .object-icon-svg {
  background: var(--primary);
  color: #ffffff;
}

.object-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.object-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.object-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 14px var(--primary-glow);
  transform: translateY(-2px);
}

.object-card.active span {
  color: var(--primary);
  font-weight: 800;
}

.measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.panel-preview {
  display: flex;
  flex-direction: column;
}

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

.color-badges {
  display: flex;
  gap: 0.5rem;
}

.color-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.stand-mode-toggle {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-toggle-part {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  outline: none;
}

.btn-toggle-part:hover {
  color: var(--text);
  background: rgba(16, 185, 129, 0.06);
}

.btn-toggle-part.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

#three-canvas-container {
  flex-grow: 1;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  min-height: 400px;
  border: 1px solid var(--border);
}

.preview-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.info-box {
  background: rgba(52, 199, 89, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.info-box h4 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   Steps & Ideas
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 113, 227, 0.3);
}

.step-icon {
  font-size: 3rem;
  margin: 1rem 0;
}

.step-connector {
  display: none;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.idea-card {
  background: var(--bg-card);
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-glow);
}

.idea-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.idea-card:hover .idea-icon-wrap {
  transform: scale(1.08);
  background: var(--primary-gradient);
  color: #ffffff;
}

.idea-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.idea-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.idea-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  gap: 12px;
  user-select: none;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.85rem;
}

/* ==========================================================================
   Sección Donaciones (PayPal)
   ========================================================================== */
.donate-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem !important;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.donate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.donate-box {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.donate-amounts {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.donate-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donate-chip:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.donate-chip.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.donate-custom-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 4px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-custom-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.currency-prefix, .currency-suffix {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

#paypal-custom-amount {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  outline: none;
}

.donate-cta-wrap {
  width: 100%;
}

.btn-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #0070ba;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.3);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-paypal:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.paypal-logo-svg {
  flex-shrink: 0;
}

.donate-security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.nav-donate-link {
  color: #10b981 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
}

.footer-developer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dev-divider {
  color: var(--border);
  font-weight: 700;
  font-size: 1.2rem;
}

.dev-text strong {
  color: var(--text);
  font-weight: 800;
}

.arkh-footer-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.arkh-footer-logo:hover {
  transform: scale(1.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Custom Option Grids (reemplazo de selects) - Estilo Apple Segmented Pills */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.option-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.option-card:hover {
  background: var(--border);
  border-color: var(--primary);
}
.option-card.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.25);
}

/* Asegurar que el QR se mantenga contenido visualmente, sin perder resolucion real */
#qr-canvas canvas, #qr-canvas svg {
  width: 100% !important;
  height: auto !important;
  max-width: 440px !important;
  border-radius: 10px;
}

#qr-canvas.transparent-active {
  background-image: 
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%), 
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #ffffff !important;
}

#qr-canvas.transparent-active canvas {
  background: transparent !important;
}

#qr-live-text {
  width: 100%;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  word-break: break-word;
  line-height: 1.3;
}

.transparent-btn {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 3px;
  font-weight: 600;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.transparent-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.transparent-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.35);
}

/* Quick Emoji Picker */
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.emoji-btn {
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s;
  user-select: none;
}
.emoji-btn:hover {
  transform: scale(1.15);
  background: var(--bg-secondary);
}

/* ==========================================================================
   Novedades: Content Type Tabs, Style Presets, CTA Frames & Contrast Badge
   ========================================================================== */

/* Content Type Hero Card */
.content-type-hero-card {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem !important;
  border-radius: 14px;
}

/* Content Type Tabs */
.content-type-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  gap: 5px;
  margin-top: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.content-type-tabs::-webkit-scrollbar {
  display: none;
}

.content-type-tabs .tab-btn {
  flex: 0 1 auto;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.content-type-tabs .tab-btn:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: rgba(226, 232, 240, 0.8);
}

.content-type-tabs .tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
  font-weight: 700;
  border-color: transparent;
}

/* Quick Style Presets */
.presets-scroll-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 1px 6px 1px;
  scrollbar-width: thin;
}
.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}
.preset-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.preset-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* Contrast Badge */
.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}
.contrast-badge.high {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.contrast-badge.high .contrast-dot {
  background: #10b981;
}
.contrast-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.contrast-badge.medium .contrast-dot {
  background: #f59e0b;
}
.contrast-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.contrast-badge.low .contrast-dot {
  background: #ef4444;
}

/* CTA Frame Decorations */
.frame-banner-top {
  width: 100%;
  padding: 8px 12px;
  background: #000000;
  color: #ffffff;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.frame-badge-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Frame variations on #qr-canvas */
#qr-canvas.frame-card-bordered {
  border: 3px double rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
#qr-canvas.frame-phone {
  border: 8px solid #1e293b;
  border-radius: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
#qr-canvas.frame-phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 4px;
}
#qr-canvas.frame-phone::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #334155;
  border-radius: 3px;
}

/* ==========================================================================
   Media Queries & Responsive Engine (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-layout-container {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 0 12px 90px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .ad-sidebar-left,
  .ad-sidebar-right {
    display: none !important;
  }

  .ad-mobile-only {
    display: block !important;
  }
  .ad-mobile-only .ad-size-mobile {
    display: block !important;
  }
  .ad-mobile-only .ad-size-desktop {
    display: none !important;
  }

  .content-center {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
  }

  /* Switch 2D QR editor to a single column on any screen under 1024px */
  .qr-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .qr-controls,
  .qr-preview {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .qr-preview {
    position: static !important;
    min-height: auto !important;
    padding: 1.5rem 1rem !important;
  }

  .qr3d-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .ideas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .main-layout-container {
    display: block !important;
    padding: 0 8px 90px 8px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .content-center {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .container {
    padding: 0 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card {
    padding: 1.1rem 0.9rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile Navbar & Menu Drawer */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    width: 42px !important;
    height: 42px !important;
    cursor: pointer !important;
    color: var(--text) !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1.5px solid var(--border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    align-items: stretch;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
  }

  .nav-links.open,
  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Mobile Hero */
  .hero {
    padding: 20px 8px 16px !important;
  }

  .hero-main-logo {
    width: 220px !important;
    height: 220px !important;
    margin-bottom: 8px !important;
  }

  .hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.45 !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 1.25rem !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 1rem !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .stat {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 8px 4px !important;
    text-align: center !important;
  }

  .stat-num {
    font-size: 1.15rem !important;
  }

  .stat-text {
    font-size: 0.72rem !important;
  }

  .stat-separator {
    display: none !important;
  }

  /* Mobile Shortener */
  .shortener-card textarea {
    min-height: 85px !important;
    font-size: 0.92rem !important;
  }

  #shorten-btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 1.05rem !important;
  }

  .short-result-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    height: auto !important;
    padding: 10px 12px !important;
  }

  .short-result-card input {
    max-width: 100% !important;
  }

  /* Mobile Ad Adaptation */
  .ad-size-desktop {
    display: none !important;
  }

  .ad-size-mobile {
    display: block !important;
  }

  .ad-leaderboard {
    min-height: 90px !important;
    padding: 12px 8px !important;
    margin: 0.75rem 0 !important;
  }

  .ad-rectangle {
    max-width: 320px !important;
    margin: 0 auto !important;
    min-height: 200px !important;
  }

  .ad-mobile-anchor {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-highlight) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12) !important;
    padding: 8px 14px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  .ad-mobile-anchor-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  .ad-mobile-text {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
  }

  .ad-anchor-close {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }

  /* Mobile QR 2D Form Controls */
  .control-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .control-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .custom-text-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .custom-text-row input,
  .custom-text-row select {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .option-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .option-card {
    flex: 1 1 auto !important;
    white-space: normal !important;
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .shape-grid {
    gap: 6px !important;
  }

  .shape-tile {
    width: 38px !important;
    height: 38px !important;
  }

  .color-palette-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    padding: 6px 4px !important;
  }

  .color-circle {
    width: 28px !important;
    height: 28px !important;
  }

  .btn-full,
  #qr-generate-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px !important;
    font-size: 1rem !important;
  }

  /* QR Canvas - Strict containment on Mobile */
  .qr-preview {
    min-height: auto !important;
    padding: 1.25rem 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #qr-canvas {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #qr-display-canvas,
  #qr-canvas canvas,
  #qr-canvas svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .content-type-tabs {
    padding: 6px 4px !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .content-type-tabs .tab-btn {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Download Action Buttons - 2x2 Grid on Mobile */
  .download-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
  }

  .download-actions #download-png-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: 13px !important;
    font-size: 1rem !important;
  }

  .download-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 4px !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
  }

  /* Mobile QR 3D Section */
  .qr3d-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  #three-canvas-container {
    min-height: 300px !important;
  }

  .measures-grid {
    gap: 8px !important;
  }

  .object-selector {
    gap: 6px !important;
  }

  .steps-grid {
    grid-template-columns: 1fr !important;
  }
}


/* 3D Download Panel Buttons */
.panel-download {
  display: flex;
  flex-direction: column;
}

.panel-download h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.btn-3d-download-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 13px 18px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.btn-3d-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
  filter: brightness(1.04);
}

.btn-3d-download-primary small {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  margin-left: 4px !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.btn-3d-download-secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 11px 16px !important;
  font-size: 0.90rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.btn-3d-download-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  transform: translateY(-1px);
}

.stand-parts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-sub-part {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 9px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-sub-part:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

/* ==========================================================================
   Hero Donation Banner
   ========================================================================== */
.hero-donate-banner {
  margin-top: 1.75rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.hero-donate-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.hero-donate-icon {
  color: #ef4444;
  flex-shrink: 0;
}

.btn-hero-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 112, 186, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 112, 186, 0.42);
  filter: brightness(1.06);
}

@media (max-width: 768px) {
  .hero-donate-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .hero-donate-text {
    flex-direction: column;
    text-align: center;
  }
  .btn-hero-donate {
    width: 100%;
  }
}

/* ==========================================================================
   Slicer Guide (Parámetros de Impresión 3D)
   ========================================================================== */
.slicer-guide-wrap {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.btn-slicer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-slicer-toggle:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.btn-slicer-toggle.active .icon-chevron {
  transform: rotate(180deg);
}

.btn-slicer-toggle .icon-chevron {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.slicer-guide-content {
  margin-top: 0.75rem;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: fadeInPopup 0.25s ease;
}

.slicer-tip-item {
  margin-bottom: 0.85rem;
}

.slicer-tip-item:last-child {
  margin-bottom: 0;
}

.slicer-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.tip-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.slicer-tip-list {
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.slicer-tip-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Mis Diseños Guardados (LocalStorage Drawer)
   ========================================================================== */
.saved-projects-drawer {
  margin-top: 1rem;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.saved-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.badge-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
}

.saved-projects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.saved-empty-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0;
  line-height: 1.4;
}

.saved-project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.saved-project-item:hover {
  border-color: var(--border-highlight);
  transform: translateX(2px);
}

.saved-thumb-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.saved-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.saved-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.saved-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-load-proj {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-proj:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-del-proj {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-del-proj:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ==========================================================================
   Lector / Escáner de Códigos QR Online
   ========================================================================== */
.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem !important;
  max-width: 960px;
  margin: 0 auto;
}

.scanner-dropzone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scanner-dropzone:hover,
.scanner-dropzone.drag-active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  transform: scale(1.01);
}

.scanner-preview-wrap {
  width: 100%;
  animation: fadeInPopup 0.25s ease;
}

.scanner-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
}

.preview-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-clear-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.scanner-preview-canvas-box {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

#scanner-preview-canvas {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.dropzone-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.scanner-dropzone h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.scanner-dropzone p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dropzone-badge-paste {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.scanner-video-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: #000000;
}

#scanner-video {
  width: 100%;
  display: block;
  object-fit: cover;
}

.scanner-video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scanner-laser-box {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  border-radius: 12px;
  pointer-events: none;
  overflow: hidden;
}

.scanner-laser-line {
  width: 100%;
  height: 2px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  position: absolute;
  top: 0;
  animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0; opacity: 0.2; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0; opacity: 0.2; }
}

.scanner-cam-hint {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin: 0;
}

.scanner-result-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-highlight);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  animation: fadeInPopup 0.25s ease;
}

.scanner-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scanner-success-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.scanner-result-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text);
  resize: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.scanner-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scanner-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}

.scanner-info-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.scanner-info-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.scanner-status-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  animation: fadeInPopup 0.2s ease;
}

.scanner-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.scanner-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.scanner-status-msg.info {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
  .scanner-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem !important;
  }
}

/* ==========================================================================
   Medidor de Escaneabilidad y Contraste (Score de Calidad WCAG)
   ========================================================================== */
.contrast-card {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.contrast-card.high {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
}

.contrast-card.medium {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.contrast-card.low {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.contrast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.contrast-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contrast-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
}

.contrast-card.medium .contrast-status-icon {
  background: #f59e0b;
}

.contrast-card.low .contrast-status-icon {
  background: #ef4444;
}

.contrast-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.contrast-score-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.contrast-card.medium .contrast-score-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.contrast-card.low .contrast-score-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.contrast-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.contrast-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.35s ease, background 0.35s ease;
}

.contrast-card.medium .contrast-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.contrast-card.low .contrast-bar-fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.contrast-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Simulador de Capas (Layer Slicer Slider)
   ========================================================================== */
.layer-slider-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.layer-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.layer-readout-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
}

/* ==========================================================================
   Estimador Maker: Métricas de Impresión 3D (Gramos, Tiempo, Pausa M600)
   ========================================================================== */
.maker-stats-card {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.maker-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  text-align: center;
}

.maker-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.maker-stat-cell.maker-stat-highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.maker-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
}

.maker-stat-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.maker-stat-highlight .maker-stat-val {
  color: #10b981;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE CONTACTO Y REPORTE DE ERRORES (ARKHARQUITECTURA@GMAIL.COM)
   ========================================================================== */
.floating-contact {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: inherit;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: visible;
}

.floating-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(79, 70, 229, 0.65);
  background: var(--primary-hover);
}

.contact-btn-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: contact-pulse-anim 2s infinite;
}

@keyframes contact-pulse-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.floating-contact-card {
  width: 330px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 16px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: contact-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contact-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-card-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-card-close:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.contact-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.contact-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.contact-email-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  user-select: all;
}

.btn-copy-email {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-copy-email:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.contact-mailto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 74px; /* Encima del anchor banner en móvil */
    right: 16px;
  }
  .contact-btn-text {
    display: none;
  }
  .floating-contact-btn {
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
}

/* ==========================================================================
   DROPDOWN "MÁS HERRAMIENTAS" MULTI-TOOL (SUITE DE MICRO-SAAS)
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 330px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px;
  z-index: 2000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

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

.dropdown-header {
  padding: 8px 10px 6px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
  color: var(--text) !important;
  border: 1px solid transparent !important;
}

.dropdown-item:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: var(--border-highlight) !important;
  transform: translateX(3px) !important;
}

.dropdown-item.current-app {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-item-icon.qr-icon {
  background: rgba(79, 70, 229, 0.18);
  color: var(--primary);
}

.dropdown-item-icon.new-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-mini {
  background: rgba(79, 70, 229, 0.2);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-new {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.dropdown-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dropdown-footer {
  margin-top: 6px;
  padding: 8px 10px 4px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .nav-dropdown-menu {
    left: auto;
    right: 0;
  }
}


/* LANGUAGE TOGGLE */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.lang-toggle-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}
.lang-flag {
  font-size: 1rem;
}

/* Suite Home Button in Nav */
.nav-suite-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  opacity: 1 !important;
}
.nav-suite-home:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}




/* ==========================================================================
   OPTIMIZACIÓN UNIVERSAL MÓVIL: DROPDOWN HERRAMIENTAS Y BOTÓN CONTACTO
   ========================================================================== */
@media (max-width: 768px) {
  /* DROPDOWN DE HERRAMIENTAS EN MENÚ MÓVIL (NUNCA CORTADO) */
  .nav-dropdown {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .nav-dropdown-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
    background: var(--bg-secondary) !important;
    left: auto !important;
    right: auto !important;
    overflow: hidden !important;
    animation: none !important;
  }

  .dropdown-grid {
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }

  .dropdown-item {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    gap: 12px !important;
  }

  .dropdown-item-info {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .dropdown-item-title {
    font-size: 0.88rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .dropdown-item-desc {
    font-size: 0.74rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }

  .dropdown-footer {
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    font-size: 0.72rem !important;
    padding: 8px 10px !important;
  }

  /* BOTÓN FLOTANTE DE CONTACTO (NUNCA AMONTONADO NI DESBORDADO) */
  .floating-contact {
    position: fixed !important;
    bottom: 22px !important;
    right: 18px !important;
    left: auto !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  /* Ocultar CUALQUIER texto dentro del botón de contacto en móvil */
  .floating-contact-btn span:not(.contact-btn-pulse),
  .floating-contact-btn .contact-btn-text {
    display: none !important;
  }

  .floating-contact-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4) !important;
    border: none !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }

  .floating-contact-btn svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .floating-contact-card {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    bottom: calc(100% + 14px) !important;
    width: calc(100vw - 36px) !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
    z-index: 100000 !important;
  }
}

/* ==========================================================================
   INTERNET REQUIREMENT BADGES & EXPLANATION MODAL (UNIVERSAL)
   ========================================================================== */
.internet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  vertical-align: middle;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .internet-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.internet-badge-micro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-left: 4px;
  vertical-align: middle;
}

.internet-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff !important;
  border: none;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 2px;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.internet-info-btn:hover {
  background: #b45309;
  transform: scale(1.18);
}

[data-theme="dark"] .internet-info-btn {
  background: #f59e0b;
  color: #0f172a !important;
}

[data-theme="dark"] .internet-info-btn:hover {
  background: #fbbf24;
}

/* Modal Explicativo de Requerimiento de Internet */
.internet-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.internet-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
  position: relative;
  box-sizing: border-box;
}

[data-theme="dark"] .internet-modal-card {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.internet-modal-backdrop.active .internet-modal-card {
  transform: translateY(0) scale(1);
}

.internet-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.internet-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .internet-modal-icon {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.internet-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.internet-modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

[data-theme="dark"] .internet-modal-body {
  color: #cbd5e1;
}

.internet-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.internet-modal-close-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.internet-modal-close-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   REPTAR SUITE - PIPELINE Y FLUJO ENCADENADO ENTRE HERRAMIENTAS
   ========================================================================== */
.pipeline-chain-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px dashed rgba(16, 185, 129, 0.38);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .pipeline-chain-box,
body.dark-theme .pipeline-chain-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.pipeline-chain-title {
  font-size: 0.8rem;
  font-weight: 750;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .pipeline-chain-title,
body.dark-theme .pipeline-chain-title {
  color: #34d399;
}

.pipeline-chain-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pipeline-chain-btn,
.btn-pipeline {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  color: var(--text, #1e293b);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.pipeline-chain-btn:hover,
.btn-pipeline:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .pipeline-chain-btn,
body.dark-theme .pipeline-chain-btn,
[data-theme="dark"] .btn-pipeline,
body.dark-theme .btn-pipeline {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .pipeline-chain-btn:hover,
body.dark-theme .pipeline-chain-btn:hover,
[data-theme="dark"] .btn-pipeline:hover,
body.dark-theme .btn-pipeline:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.pipeline-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 6px;
}

