/* =====================================================
   NESHOME PRODUCT SCRAPER
   Modern deluxe orange theme
   ===================================================== */

[hidden] {
  display: none !important;
}


/* =====================================================
   THEME VARIABLES
   ===================================================== */

.neshome-scraper-page {
  --blue: #f17822;
  --blue-dark: #b94a0b;
  --blue-soft: #fff1e6;

  --green: #f17822;
  --green-soft: #fff1e6;

  --ns-deep: #4d1d05;
  --ns-deep-soft: #7c2f08;

  --ns-primary: #ef741f;
  --ns-primary-dark: #c9500c;
  --ns-primary-light: #ffad43;

  --ns-gold: #f5b43d;
  --ns-gold-soft: #fff7e8;

  --ns-cream: #fff9f4;
  --ns-cream-soft: #fffcf9;

  --ns-text: #332016;
  --ns-muted: #806d61;

  --ns-line: #f0d9c8;
  --ns-line-strong: #e3b995;

  background:
    radial-gradient(
      circle at 6% 8%,
      rgba(241, 120, 34, 0.09),
      transparent 27rem
    ),
    radial-gradient(
      circle at 94% 34%,
      rgba(245, 180, 61, 0.08),
      transparent 24rem
    ),
    #f8f4f1;
}


/* =====================================================
   HERO
   ===================================================== */

.neshome-scraper-page .tool-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;

  padding-top: 42px;
  padding-bottom: 94px;

  border-radius: 0 0 42px 42px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 86% -5%,
      rgba(255, 201, 94, 0.52),
      transparent 24rem
    ),
    radial-gradient(
      circle at 14% 120%,
      rgba(255, 255, 255, 0.12),
      transparent 20rem
    ),
    linear-gradient(
      125deg,
      #9e3507 0%,
      #df5b12 48%,
      #f18a24 100%
    );

  box-shadow:
    0 30px 72px rgba(124, 47, 8, 0.22);
}

.neshome-scraper-page .tool-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.11),
      transparent 34%,
      transparent 72%,
      rgba(255, 255, 255, 0.05)
    );
}

.neshome-scraper-page .tool-hero::after {
  content: "";

  position: absolute;
  top: -145px;
  right: -110px;

  width: 370px;
  height: 370px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;

  box-shadow:
    0 0 0 46px rgba(255, 255, 255, 0.03),
    0 0 0 92px rgba(255, 255, 255, 0.02);

  pointer-events: none;
}

.neshome-scraper-page .tool-hero-inner {
  position: relative;
  z-index: 2;
}

.neshome-scraper-page .back-link {
  color: rgba(255, 255, 255, 0.76);
}

.neshome-scraper-page .back-link:hover {
  color: #ffffff;
}

.neshome-scraper-page .tool-title-line {
  gap: 19px;
}

.neshome-scraper-page .tool-title-line h1 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -1.3px;
}

.neshome-scraper-page .tool-title-line p {
  max-width: 680px;
  margin-top: 9px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 15px;
  line-height: 1.55;
}

.neshome-scraper-page .tool-icon {
  position: relative;

  width: 66px;
  height: 66px;

  flex: 0 0 66px;

  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 21px;

  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.09)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 15px 30px rgba(94, 29, 2, 0.2);

  backdrop-filter: blur(14px);
}

.neshome-scraper-page .hero-badge {
  position: relative;

  border-color: rgba(255, 255, 255, 0.22);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.09)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.19),
    0 12px 28px rgba(95, 31, 2, 0.16);

  backdrop-filter: blur(14px);
}

.neshome-scraper-page .success-icon {
  color: #ffffff;
}

.neshome-scraper-page .success-badge {
  background:
    linear-gradient(
      135deg,
      rgba(112, 36, 3, 0.42),
      rgba(164, 59, 8, 0.28)
    );
}


/* =====================================================
   CONTENT STACKING / PANEL OVERLAP
   ===================================================== */

.neshome-scraper-page .tool-content-shell {
  position: relative;
  z-index: 10;

  margin-top: -58px;

  overflow: visible;
}

.neshome-scraper-page .panel {
  border: 1px solid rgba(232, 197, 169, 0.8);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(255, 250, 246, 0.98)
    );

  box-shadow:
    0 24px 70px rgba(126, 57, 14, 0.09),
    0 4px 14px rgba(126, 57, 14, 0.04);
}

.neshome-scraper-page .scrape-panel {
  position: relative;
  z-index: 2;

  overflow: hidden;

  border-radius: 30px;
}

.neshome-scraper-page .scrape-main {
  position: relative;
  z-index: 2;

  padding: 34px;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fffdfb 100%
    );
}

.neshome-scraper-page .scrape-guide {
  position: relative;
  z-index: 2;

  padding: 34px;

  border-left-color: var(--ns-line);

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(255, 177, 67, 0.16),
      transparent 18rem
    ),
    linear-gradient(
      180deg,
      #fffaf5 0%,
      #fff0e3 100%
    );
}

.neshome-scraper-page .scrape-guide::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 1px;
  height: 100%;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(239, 116, 31, 0.32),
      transparent
    );
}


/* =====================================================
   HEADINGS / TEXT
   ===================================================== */

.neshome-scraper-page .section-kicker {
  color: var(--ns-primary);
}

.neshome-scraper-page .section-description {
  max-width: 720px;

  color: var(--ns-muted);

  line-height: 1.65;
}


/* =====================================================
   FORM
   ===================================================== */

.neshome-scraper-page .field-group label {
  color: #725848;
}

.neshome-scraper-page .field-group input {
  min-height: 56px;

  padding: 15px 17px;

  border: 1px solid #ead4c3;
  border-radius: 16px;

  color: var(--ns-text);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fffaf6
    );

  box-shadow:
    inset 0 1px 2px rgba(102, 46, 12, 0.025);

  font-size: 15px;
  font-weight: 700;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.neshome-scraper-page .field-group input:hover {
  border-color: #ddb996;
}

.neshome-scraper-page .field-group input:focus {
  border-color: #f19a5c;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(241, 120, 34, 0.13),
    0 12px 30px rgba(218, 91, 17, 0.08);

  transform: translateY(-1px);
}


/* =====================================================
   BUTTONS
   ===================================================== */

.neshome-scraper-page .btn-primary,
.neshome-scraper-page .btn-success {
  position: relative;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.13);

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #d6540d 0%,
      #ef741f 56%,
      #ffa13e 100%
    );

  box-shadow:
    0 12px 26px rgba(207, 77, 7, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.neshome-scraper-page .btn-primary::before,
.neshome-scraper-page .btn-success::before {
  content: "";

  position: absolute;
  top: -70%;
  left: -40%;

  width: 55%;
  height: 220%;

  transform: rotate(24deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.24),
      transparent
    );

  transition: left 0.55s ease;
}

.neshome-scraper-page .btn-primary:hover::before,
.neshome-scraper-page .btn-success:hover::before {
  left: 115%;
}

.neshome-scraper-page .btn-primary:hover,
.neshome-scraper-page .btn-success:hover {
  background:
    linear-gradient(
      135deg,
      #bf4508,
      #df6214 58%,
      #f38b29
    );

  box-shadow:
    0 16px 34px rgba(207, 77, 7, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.neshome-scraper-page .btn-soft {
  color: #b74608;

  border: 1px solid #edc8ab;

  background:
    linear-gradient(
      180deg,
      #fffaf6,
      #ffeadb
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.neshome-scraper-page .btn-soft:hover {
  border-color: #dcaa82;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #ffe2cc
    );
}

.neshome-scraper-page .btn-ghost {
  border-color: #ead8ca;

  color: #6d584b;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fff9f5
    );
}

.neshome-scraper-page .btn-ghost:hover {
  border-color: #dcb99d;

  background: #ffffff;
}

.neshome-scraper-page .btn-dark {
  background:
    linear-gradient(
      135deg,
      #482316,
      #6c3218
    );

  box-shadow:
    0 10px 24px rgba(69, 31, 11, 0.18);
}


/* =====================================================
   LOADING
   ===================================================== */

.neshome-scraper-page .loading-box {
  margin-top: 18px;

  padding: 16px 18px;

  border: 1px solid #f0caa9;
  border-radius: 16px;

  color: #a84109;

  background:
    linear-gradient(
      135deg,
      #fff9f4,
      #ffecdd
    );

  box-shadow:
    0 10px 26px rgba(213, 86, 15, 0.08);
}

.neshome-scraper-page .spinner {
  width: 20px;
  height: 20px;

  border-width: 3px;
  border-color: #ffd1ae;
  border-top-color: var(--ns-primary);
}


/* =====================================================
   FEATURE TAGS
   ===================================================== */

.neshome-scraper-page .feature-tags span {
  padding: 9px 12px;

  border-color: #efd3bd;

  color: #755a49;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fff6ef
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}


/* =====================================================
   GUIDE
   ===================================================== */

.neshome-scraper-page .guide-list {
  gap: 14px;
}

.neshome-scraper-page .guide-item {
  padding: 16px;

  border-color: #edcfb7;
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff8f2
    );

  box-shadow:
    0 9px 24px rgba(171, 74, 16, 0.055);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.neshome-scraper-page .guide-item:hover {
  border-color: #dfb18c;

  box-shadow:
    0 13px 28px rgba(171, 74, 16, 0.1);

  transform: translateY(-2px);
}

.neshome-scraper-page .guide-number {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #ca4b08,
      #f18a27
    );

  box-shadow:
    0 7px 16px rgba(204, 75, 7, 0.22);
}


/* =====================================================
   RECENT DOWNLOADS
   ===================================================== */

.recent-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.neshome-scraper-page .recent-panel {
  padding: 30px;

  border-radius: 28px;
}

.recent-card {
  position: relative;

  padding: 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  overflow: hidden;

  border: 1px solid #ecd5c3;
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(255, 177, 67, 0.09),
      transparent 12rem
    ),
    linear-gradient(
      145deg,
      #ffffff,
      #fff8f3
    );

  box-shadow:
    0 9px 26px rgba(122, 58, 19, 0.055);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.recent-card::before {
  content: "";

  position: absolute;
  inset: 0 auto 0 0;

  width: 4px;

  background:
    linear-gradient(
      to bottom,
      #da570f,
      #f5a23f
    );
}

.recent-card:hover {
  border-color: #ddb28f;

  box-shadow:
    0 15px 34px rgba(122, 58, 19, 0.11);

  transform: translateY(-3px);
}

.recent-card > div:first-child {
  min-width: 0;

  display: grid;

  gap: 5px;
}

.recent-card strong {
  overflow: hidden;

  color: var(--ns-text);

  text-overflow: ellipsis;
}

.recent-card span {
  color: var(--ns-muted);

  font-size: 12px;
}


/* =====================================================
   RESULT SUMMARY
   ===================================================== */

.result-summary-panel {
  padding: 30px;

  border-radius: 28px;
}

.result-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 25px;
}

.result-heading-row h2 {
  max-width: 650px;
}

.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 13px;

  margin-top: 24px;
}

.metric-card {
  position: relative;

  min-width: 0;

  overflow: hidden;

  padding: 16px;

  border: 1px solid #ecd4c1;
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff8f3
    );

  box-shadow:
    0 8px 22px rgba(119, 55, 18, 0.05);
}

.metric-card::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 54px;
  height: 54px;

  border-radius: 0 0 0 54px;

  background:
    linear-gradient(
      135deg,
      transparent,
      rgba(241, 120, 34, 0.08)
    );
}

.metric-card small {
  display: block;

  color: var(--ns-muted);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;

  margin-top: 7px;

  overflow: hidden;

  color: var(--ns-text);

  text-overflow: ellipsis;

  font-size: 16px;
}


/* =====================================================
   COPYABLE CONTENT
   ===================================================== */

.content-copy-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-top: 18px;
}

.copy-card {
  overflow: hidden;

  border-radius: 22px;
}

.copy-card-full {
  grid-column: 1 / -1;
}

.copy-card-head {
  padding: 16px 17px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.copy-card-head strong {
  color: var(--ns-text);
}

.copy-card textarea {
  min-height: 245px;

  padding: 15px 17px 18px;

  resize: vertical;

  border: 0;
  border-radius: 0;

  color: #5f4d42;

  background: transparent;

  line-height: 1.6;
}

.copy-card-full textarea {
  min-height: 86px;
}

.copy-card textarea:focus {
  box-shadow: none;
}


/* =====================================================
   IMAGE GALLERY
   ===================================================== */

.image-panel {
  margin-top: 20px;

  padding: 30px;

  border-radius: 28px;
}

.image-heading-row {
  align-items: center;
}

.image-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(235px, 1fr));

  gap: 18px;
}

.image-card {
  position: relative;

  overflow: hidden;

  border: 1px solid #ead1bd;
  border-radius: 21px;

  background: #ffffff;

  box-shadow:
    0 12px 34px rgba(122, 58, 19, 0.07);

  transition:
    transform 0.23s ease,
    border-color 0.23s ease,
    box-shadow 0.23s ease;
}

.image-card:hover {
  border-color: #dda980;

  box-shadow:
    0 20px 44px rgba(122, 58, 19, 0.14);

  transform: translateY(-4px);
}

.image-preview {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      45deg,
      #f6f2ef 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      #f6f2ef 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      #f6f2ef 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      #f6f2ef 75%
    );

  background-size: 18px 18px;

  background-position:
    0 0,
    0 9px,
    9px -9px,
    -9px 0;
}

.image-preview img {
  width: 100%;

  aspect-ratio: 1 / 1;

  display: block;

  object-fit: contain;

  background: rgba(255, 255, 255, 0.84);

  transition:
    transform 0.35s ease;
}

.image-card:hover .image-preview img {
  transform: scale(1.025);
}

.image-number {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;

  min-width: 32px;
  height: 32px;

  padding: 0 10px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      rgba(179, 61, 4, 0.95),
      rgba(239, 116, 31, 0.92)
    );

  box-shadow:
    0 7px 18px rgba(142, 49, 5, 0.24);

  font-size: 11px;
  font-weight: 900;

  backdrop-filter: blur(8px);
}

.failed-image {
  aspect-ratio: 1 / 1;

  display: grid;
  place-items: center;

  color: var(--red);

  background:
    linear-gradient(
      135deg,
      #fff7f7,
      #ffeded
    );

  font-weight: 900;
}

.image-info {
  padding: 16px;
}

.filename {
  display: block;

  min-height: 42px;

  color: var(--ns-text);

  word-break: break-word;

  font-size: 12px;
  line-height: 1.5;
}

.error-text {
  color: var(--red);

  font-size: 12px;
}

.image-actions {
  display: grid;

  margin-top: 13px;
}

.image-actions .btn {
  width: 100%;
}


/* =====================================================
   EMPTY STATE / NOTE
   ===================================================== */

.neshome-scraper-page .empty-state {
  border-color: #e5bfa0;

  color: var(--ns-muted);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff7f0
    );
}

.neshome-scraper-page .tool-note {
  color: #8b7465;
}


/* =====================================================
   ENTRANCE ANIMATIONS
   ===================================================== */

.recent-card,
.metric-card,
.image-card,
.copy-card {
  animation:
    neshome-card-enter 0.45s ease both;
}

.recent-card:nth-child(2),
.metric-card:nth-child(2),
.image-card:nth-child(2) {
  animation-delay: 0.05s;
}

.recent-card:nth-child(3),
.metric-card:nth-child(3),
.image-card:nth-child(3) {
  animation-delay: 0.1s;
}

.recent-card:nth-child(4),
.metric-card:nth-child(4),
.image-card:nth-child(4) {
  animation-delay: 0.15s;
}

.image-card:nth-child(5) {
  animation-delay: 0.2s;
}

.image-card:nth-child(6) {
  animation-delay: 0.25s;
}

@keyframes neshome-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 960px) {
  .neshome-scraper-page .scrape-guide::before {
    display: none;
  }

  .neshome-scraper-page .scrape-guide {
    border-top-color: var(--ns-line);
  }

  .result-heading-row {
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .neshome-scraper-page .tool-hero {
    padding-top: 30px;
    padding-bottom: 78px;

    border-radius: 0 0 28px 28px;
  }

  .neshome-scraper-page .tool-icon {
    width: 54px;
    height: 54px;

    flex-basis: 54px;

    border-radius: 17px;
  }

  .neshome-scraper-page .tool-title-line h1 {
    font-size: 27px;
  }

  .neshome-scraper-page .scrape-main,
  .neshome-scraper-page .scrape-guide {
    padding: 22px;
  }

  .neshome-scraper-page .recent-panel,
  .neshome-scraper-page .result-summary-panel,
  .neshome-scraper-page .image-panel {
    padding: 21px;
  }

  .recent-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-actions {
    width: 100%;
  }

  .recent-actions .btn {
    flex: 1;
  }

  .content-copy-grid {
    grid-template-columns: 1fr;
  }

  .copy-card-full {
    grid-column: auto;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   NESHOME TOOL-PAGE ICON
   Same 3D design as homepage
   Used on dashboard and result page
   ===================================================== */

.neshome-tool-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  width: 66px;
  height: 66px;
  flex: 0 0 66px;

  display: grid;
  place-items: center;

  color: #ffffff;

  border:
    1px solid rgba(255, 255, 255, 0.25);

  border-radius: 21px;

  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(255, 255, 255, 0.34),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #c94806 0%,
      #f2761d 52%,
      #ffa333 100%
    );

  box-shadow:
    0 5px 0 #a73a04,
    0 16px 30px rgba(218, 79, 8, 0.34),
    inset 0 2px 1px rgba(255, 255, 255, 0.42),
    inset 0 -5px 10px rgba(117, 35, 2, 0.27);

  transform:
    perspective(500px)
    rotateX(0deg)
    rotateY(0deg)
    translateY(0);

  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms ease,
    filter 420ms ease;
}


/* Moving glass reflection */

.neshome-tool-icon::before {
  content: "";

  position: absolute;
  top: -45%;
  left: -70%;
  z-index: 4;

  width: 65%;
  height: 190%;

  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 32%,
      rgba(255, 255, 255, 0.62) 48%,
      rgba(255, 255, 255, 0.14) 62%,
      transparent 100%
    );

  transform: rotate(14deg);
  opacity: 0;
}


/* Permanent curved highlight */

.neshome-tool-icon::after {
  content: "";

  position: absolute;
  top: 5px;
  right: 10%;
  left: 10%;
  z-index: 1;

  height: 34%;

  pointer-events: none;

  border-radius:
    999px 999px 45% 45%;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.44),
      rgba(255, 255, 255, 0.08),
      transparent
    );

  opacity: 0.58;
}


/* SVG */

.neshome-tool-icon-svg {
  position: relative;
  z-index: 3;

  width: 38px;
  height: 38px;

  display: block;
  overflow: visible;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter:
    drop-shadow(
      0 1px 0 rgba(255, 255, 255, 0.48)
    )
    drop-shadow(
      0 3px 4px rgba(101, 28, 2, 0.32)
    );

  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.neshome-icon-frame,
.neshome-icon-sun,
.neshome-icon-landscape,
.neshome-icon-download-line,
.neshome-icon-download-arrow {
  transform-box: fill-box;
  transform-origin: center;
}


/* Animations */

@keyframes neshomeToolReflectionSweep {
  0% {
    left: -70%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    left: 125%;
    opacity: 0;
  }
}

@keyframes neshomeToolFramePulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes neshomeToolSunPop {
  0% {
    opacity: 0.4;
    transform: scale(0.55);
  }

  70% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes neshomeToolLandscapeMove {
  from {
    opacity: 0.35;
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes neshomeToolDownloadLine {
  0% {
    opacity: 0.35;
    transform: translateY(-3px);
  }

  70% {
    opacity: 1;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neshomeToolDownloadArrow {
  0% {
    opacity: 0;
    transform:
      translateY(-3px)
      scale(0.7);
  }

  70% {
    opacity: 1;
    transform:
      translateY(2px)
      scale(1.12);
  }

  100% {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* Mobile size */

@media (max-width: 680px) {
  .neshome-tool-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;

    border-radius: 17px;
  }

  .neshome-tool-icon-svg {
    width: 33px;
    height: 33px;
  }
}

/* Fix black SVG shapes */

.neshome-tool-icon > svg {
  width: 38px;
  height: 38px;

  display: block;
  overflow: visible;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neshome-tool-icon svg rect,
.neshome-tool-icon svg circle,
.neshome-tool-icon svg path {
  fill: none !important;
  stroke: currentColor !important;
}

/* =====================================================
   NESHOME HERO STATUS CARD
   ===================================================== */

.neshome-hero-status {
  position: relative;
  width: 320px;
  flex: 0 0 320px;
  overflow: hidden;

  padding: 27px 27px 24px;

  border:
    1px solid rgba(255, 255, 255, 0.28);

  border-radius: 25px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 255, 255, 0.20),
      transparent 105px
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.09)
    );

  box-shadow:
    0 24px 48px rgba(103, 29, 2, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  backdrop-filter: blur(16px);

  transition:
    transform 300ms ease,
    box-shadow 300ms ease;
}

.neshome-hero-status:hover {
  transform: translateY(-4px);

  box-shadow:
    0 30px 55px rgba(103, 29, 2, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}


/* Subtle glass lighting */

.neshome-hero-status::before {
  content: "";

  position: absolute;
  top: -80px;
  right: -55px;

  width: 170px;
  height: 170px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.15),
      transparent 68%
    );

  pointer-events: none;
}


/* Card header */

.neshome-status-head {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;
  font-weight: 850;
}


/* Live indicator */

.neshome-status-dot {
  position: relative;

  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.14);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.neshome-status-dot::before {
  content: "";

  position: absolute;
  inset: 6px;

  border-radius: 50%;

  background: #ffe0cd;

  box-shadow:
    0 0 12px rgba(255, 227, 207, 0.85);
}

.neshome-status-dot::after {
  content: "";

  position: absolute;
  inset: 4px;

  border:
    1px solid rgba(255, 255, 255, 0.55);

  border-radius: 50%;

  animation:
    neshomeStatusPulse
    1.8s ease-out
    infinite;
}


/* Main status */

.neshome-status-title {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 19px;

  color: #ffffff;

  font-size: 43px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.6px;
}

.neshome-status-description {
  position: relative;
  z-index: 2;

  min-height: 48px;

  margin: 12px 0 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: 14px;
  line-height: 1.65;
}


/* Bottom information */

.neshome-status-footer {
  position: relative;
  z-index: 2;

  margin-top: 23px;
  padding-top: 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border-top:
    1px solid rgba(255, 255, 255, 0.22);
}

.neshome-status-footer span {
  color: rgba(255, 255, 255, 0.72);

  font-size: 11px;
  font-weight: 700;
}

.neshome-status-footer strong {
  max-width: 180px;

  overflow: hidden;

  color: #ffffff;

  font-size: 12px;
  font-weight: 900;

  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Complete page variation */

.neshome-hero-status-complete {
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(255, 255, 255, 0.22),
      transparent 105px
    ),
    linear-gradient(
      145deg,
      rgba(113, 32, 3, 0.28),
      rgba(255, 255, 255, 0.10)
    );
}


/* Status pulse */

@keyframes neshomeStatusPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.65);
  }

  70% {
    opacity: 0;
    transform: scale(1.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}


/* Responsive */

@media (max-width: 960px) {
  .neshome-hero-status {
    width: min(100%, 420px);
    flex-basis: auto;
  }
}

@media (max-width: 680px) {
  .neshome-hero-status {
    width: 100%;

    padding: 22px;

    border-radius: 21px;
  }

  .neshome-status-title {
    font-size: 37px;
  }

  .neshome-status-description {
    min-height: 0;
  }
}

/* =====================================================
   NESHOME LARGE HERO
   Stock Tracker layout with Neshome logo
   ===================================================== */

.neshome-scraper-page .neshome-dashboard-hero {
  padding: 72px 0 110px;

  border-radius: 0;
}

.neshome-scraper-page .neshome-hero-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  align-items: center;

  gap: 60px;
}

.neshome-hero-copy {
  min-width: 0;
}

.neshome-dashboard-hero .back-link {
  margin-bottom: 26px;
}


/* Logo and app name */

.neshome-hero-brand-row {
  display: flex;
  align-items: center;

  gap: 17px;
}

.neshome-hero-eyebrow {
  color: #ffd2b6;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}


/* Large headline */

.neshome-dashboard-hero
.neshome-hero-copy
> h1 {
  max-width: 780px;

  margin: 23px 0 16px;

  color: #ffffff;

  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -2.5px;
}


/* Description */

.neshome-hero-description {
  max-width: 700px;

  margin: 0;

  color: rgba(255, 255, 255, 0.81);

  font-size: 17px;
  line-height: 1.65;
}


/* Hero buttons */

.neshome-hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 26px;
}

.neshome-hero-button {
  min-height: 46px;

  padding: 12px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 900;
  text-decoration: none;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.neshome-hero-button:hover {
  transform: translateY(-2px);
}

.neshome-hero-button-primary {
  border: 1px solid rgba(255, 255, 255, 0.12);

  background:
    linear-gradient(
      135deg,
      #dd510a,
      #fa7c22
    );

  box-shadow:
    0 12px 26px rgba(126, 38, 2, 0.28);
}

.neshome-hero-button-primary:hover {
  box-shadow:
    0 17px 34px rgba(126, 38, 2, 0.36);
}

.neshome-hero-button-secondary {
  border:
    1px solid rgba(255, 255, 255, 0.36);

  background:
    rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.neshome-hero-button-secondary:hover {
  background:
    rgba(255, 255, 255, 0.18);
}


/* Keep the logo visible and aligned */

.neshome-dashboard-hero .neshome-tool-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
}


/* Status card alignment */

.neshome-dashboard-hero .neshome-hero-status {
  width: 320px;
  flex-basis: auto;
}


/* Smooth scrolling destination spacing */

#neshome-start,
#recent-downloads {
  scroll-margin-top: 115px;
}


/* Tablet */

@media (max-width: 960px) {
  .neshome-scraper-page .neshome-hero-layout {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .neshome-dashboard-hero .neshome-hero-status {
    width: min(100%, 360px);
  }
}


/* Mobile */

@media (max-width: 680px) {
  .neshome-scraper-page .neshome-dashboard-hero {
    padding: 48px 0 92px;
  }

  .neshome-hero-brand-row {
    align-items: center;

    gap: 13px;
  }

  .neshome-dashboard-hero
  .neshome-hero-copy
  > h1 {
    margin-top: 19px;

    font-size: 42px;
    letter-spacing: -1.7px;
  }

  .neshome-hero-description {
    font-size: 15px;
  }

  .neshome-hero-actions {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;
  }

  .neshome-hero-button {
    width: 100%;
  }

  .neshome-dashboard-hero .neshome-hero-status {
    width: 100%;
  }
}

/* =====================================================
   NESHOME LOGO HOVER
   Works on dashboard and completed result page
   ===================================================== */

.neshome-scraper-page
.neshome-tool-icon:hover {
  transform:
    perspective(500px)
    rotateX(7deg)
    rotateY(-7deg)
    translateY(-7px)
    scale(1.07);

  filter:
    saturate(1.12)
    brightness(1.06);

  box-shadow:
    7px 9px 0 #963301,
    0 25px 38px rgba(218, 79, 8, 0.43),
    inset 0 3px 2px rgba(255, 255, 255, 0.52),
    inset 0 -7px 13px rgba(103, 27, 1, 0.32);
}


/* Reflection sweep */

.neshome-scraper-page
.neshome-tool-icon:hover::before {
  animation:
    neshomeToolReflectionSweep
    850ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


/* Complete SVG lift */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-tool-icon-svg {
  transform:
    translateY(-1px)
    scale(1.05);

  filter:
    drop-shadow(
      0 1px 0 rgba(255, 255, 255, 0.68)
    )
    drop-shadow(
      0 5px 6px rgba(83, 20, 0, 0.42)
    );
}


/* Image frame pulse */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-icon-frame {
  animation:
    neshomeToolFramePulse
    650ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


/* Sun pop */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-icon-sun {
  animation:
    neshomeToolSunPop
    520ms 80ms
    ease both;
}


/* Landscape movement */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-icon-landscape {
  animation:
    neshomeToolLandscapeMove
    550ms 100ms
    ease both;
}


/* Download line movement */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-icon-download-line {
  animation:
    neshomeToolDownloadLine
    600ms 130ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


/* Download arrow movement */

.neshome-scraper-page
.neshome-tool-icon:hover
.neshome-icon-download-arrow {
  animation:
    neshomeToolDownloadArrow
    600ms 170ms
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

/* =====================================================
   RESULT PAGE HERO ALIGNMENT FIX
   Align "New product" like "All apps"
   ===================================================== */

.neshome-result-page .result-hero .tool-hero-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  align-items: start;
  gap: 60px;
}


/* Keep the left content at the top */

.neshome-result-page .result-hero .tool-title-wrap {
  align-self: start;
}


/* Match the dashboard back-link position */

.neshome-result-page .result-hero .back-link {
  display: inline-block;

  margin-top: 0;
  margin-bottom: 26px;
}


/* Keep the status card aligned at the top */

.neshome-result-page
.result-hero
.neshome-hero-status {
  align-self: start;

  width: 320px;
  flex-basis: auto;
}


/* Tablet */

@media (max-width: 960px) {
  .neshome-result-page
  .result-hero
  .tool-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .neshome-result-page
  .result-hero
  .neshome-hero-status {
    width: min(100%, 420px);
  }
}


/* Mobile */

@media (max-width: 680px) {
  .neshome-result-page
  .result-hero
  .neshome-hero-status {
    width: 100%;
  }
}
/* New-product action on the completed result page. */
.neshome-result-page .btn-new-product {
  color: #ffffff;
  border-color: #d9550e;
  background: linear-gradient(180deg, #f47c24, #dd570e);
  box-shadow: 0 12px 24px rgba(197, 72, 7, 0.22);
}

.neshome-result-page .btn-new-product:hover {
  color: #ffffff;
  border-color: #c64707;
  background: linear-gradient(180deg, #ff8d35, #e75d11);
  transform: translateY(-2px);
}


/* =====================================================
   RESULT PRIMARY ACTIONS
   Keep the four completed-product actions on one row.
   ===================================================== */

.neshome-result-page .result-heading-row > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.neshome-result-page .result-primary-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-self: center;
}

.neshome-result-page .result-primary-actions .btn {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .neshome-result-page .result-primary-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .neshome-result-page .result-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neshome-result-page .result-primary-actions .btn {
    width: 100%;
  }
}
