  body, html { height: 100%; margin: 0; padding: 0; }
.filescan-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(120deg, #1b2233 0%, #233a5e 100%);
  background-image: url('/assets/images/stardust-bg.png');
  z-index: 0;
  opacity: 0.97;
  pointer-events: none;
}
.filescan-main-cardbox {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vw 0;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 90vh;
}
@media (max-height: 700px) {
  .filescan-main-cardbox {
    min-height: unset;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
.filescan-card-clone {
  background: #fff;
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 8px 32px rgba(33,60,120,0.10);
  border: 1.5px solid #e3e8f5;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
.filescan-card-tabs {
  display: flex;
  border-bottom: 2.5px solid #e3e8f5;
  background: #fff;
  height: 54px;
}
.filescan-card-tab {
  flex: 1;
  text-align: center;
  padding: 0.95em 0 0.8em 0;
  font-weight: 600;
  font-size: 1.08em;
  color: #222;
  background: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  border-bottom: 3.5px solid transparent;
  transition: border-color 0.18s, background 0.18s;
}
.filescan-card-tab.active {
  border-bottom: 3.5px solid #222;
  background: #f9fafc;
  color: #222;
}
.filescan-card-content {
  padding: 2.2em 2.3em 2.3em 2.3em;
  background: #f9fafc;
}
.filescan-form-label {
  font-weight: 600;
  color: #222;
  font-size: 1.01em;
  margin-bottom: 0.5em;
  display: block;
}
.filescan-form-row {
  margin-bottom: 1.1em;
}
.filescan-url-row {
  display: flex;
  align-items: center;
  gap: 1em;
}
.filescan-url-input {
  flex: 1;
  border: 1.5px solid #cfd8e3;
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.75em 1em;
  font-size: 1em;
  color: #222;
  transition: border-color 0.2s;
}
.filescan-url-input:focus { border-color: #2478ff; outline: none; }
.url-analyze-btn {
  background: #e3e8f5;
  color: #888;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  padding: 0.75em 1.1em;
  font-size: 1em;
  cursor: not-allowed;
  margin-left: 0.2em;
}
.filescan-form-label .filescan-link { color: #2478ff; text-decoration: underline; cursor: pointer; }
.filescan-dragdrop-row {
  margin-top: 0.6em;
}
.filescan-dragdrop-box {
  border: 2px dashed #cfd8e3;
  border-radius: 6px;
  background: #fff;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #222;
  font-size: 1.06em;
  margin-bottom: 0.2em;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.filescan-dragdrop-box.dragover {
  border-color: #2478ff;
  background: #f4faff;
}
.filescan-dragdrop-box .filescan-drag-icon {
  font-size: 3.5em;
  color: #b0c4de;
  margin-bottom: 0.3em;
}
.filescan-dragdrop-box input[type=file] {
  display: none;
}
.filescan-dragdrop-desc {
  color: #888;
  font-size: 0.97em;
  margin-top: 0.3em;
  margin-bottom: 0.7em;
  text-align: right;
  width: 100%;
}
.filescan-tooltip {
  color: #888;
  font-size: 0.96em;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  text-align: left;
  width: 100%;
}
.filescan-mode-tooltip {
  color: #888;
  font-size: 0.96em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  text-align: left;
  width: 100%;
}
.filescan-form-row .filescan-mode-row {
  margin-top: 0.7em;
  margin-bottom: 0.6em;
  display: flex;
  gap: 1.2em;
}
.filescan-form-row .filescan-mode-row label {
  font-weight: 500;
  font-size: 0.98em;
  color: #222;
}
.filescan-form-row .filescan-mode-row input[type=radio] {
  margin-right: 0.35em;
}
.filescan-form-row .filescan-keyword-input {
  width: 100%;
  border: 1.5px solid #cfd8e3;
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.75em 1em;
  font-size: 1em;
  color: #222;
  transition: border-color 0.2s;
}
.filescan-form-row .filescan-keyword-input:focus { border-color: #2478ff; outline: none; }
.filescan-submit-row {
  margin-top: 1.6em;
  display: flex;
  justify-content: flex-end;
}
.filescan-submit-btn {
  background: linear-gradient(90deg, #2478ff 0%, #00bfff 100%);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.11em;
  padding: 0.8em 2.2em;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 12px rgba(64,159,255,0.09);
}
.filescan-submit-btn:hover {
  background: linear-gradient(90deg, #1b7cff 0%, #009be2 100%);
}
.filescan-file-list {
  margin-top: 0.6em;
  font-size: 1.01em;
  color: #2478ff;
  background: #f8fafc;
  border-radius: 4px;
  padding: 0.45em 1em;
  display: inline-block;
  max-width: 95%;
  word-break: break-all;
}
.filescan-file-list span {
  margin-right: 0.7em;
  color: #444;
}
@media (max-width: 900px) {
  .filescan-card-clone { max-width: 99vw; }
  .filescan-card-content { padding: 1.2em 0.7em 1.2em 0.7em; }
}
@media (max-width: 600px) {
  .filescan-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, #1b2233 0%, #233a5e 100%);
    background-image: url('/assets/images/stardust-bg.png');
    z-index: 0;
    opacity: 0.97;
    pointer-events: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(33,60,120,0.14);
  }
  .filescan-main-cardbox {
    min-height: unset;
    padding: 0.5em 0.1em 1.1em 0.1em;
    max-width: 100vw;
    margin: 0 auto;
    display: block;
    width: 100%;
  }
  .filescan-card-clone {
    background: #fff;
    border-radius: 14px;
    width: 99vw;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(33,60,120,0.13);
    border: 1.5px solid #e3e8f5;
    padding: 0;
    overflow: hidden;
  }
  .filescan-card-tabs {
    height: 44px;
    font-size: 0.97em;
  }
  .filescan-card-content {
    padding: 1.1em 0.7em 1.2em 0.7em;
    background: #f9fafc;
  }
  .filescan-url-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7em;
  }
  .filescan-url-input, .url-analyze-btn {
    font-size: 0.99em;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .url-analyze-btn {
    margin-top: 0.3em;
  }
  .filescan-dragdrop-box {
    min-height: 110px;
    font-size: 0.97em;
    padding: 0.7em 0.2em;
  }
  .filescan-form-row .filescan-mode-row {
    flex-direction: column;
    gap: 0.5em;
  }
  .filescan-form-row .filescan-mode-row label {
    font-size: 0.97em;
  }
  .filescan-form-row .filescan-keyword-input {
    font-size: 0.97em;
    padding: 0.7em 0.8em;
  }
  .filescan-submit-row {
    margin-top: 1.2em;
    display: block;
    text-align: center;
  }
  .filescan-submit-btn {
    width: 100%;
    padding: 0.9em 0;
    font-size: 1.09em;
  }
  .filescan-intro-main {
    font-size: 1.18em;
  }
  .filescan-intro-secondary {
    font-size: 1em;
    padding: 0.43em 1em;
  }
}

/* --- Eye-catching intro text styles: readable, bold, modern --- */
.filescan-intro-main {
  font-size: 2.05em;
  font-weight: 900;
  color: #1b2233;
  letter-spacing: -0.5px;
  margin-bottom: 0.3em;
  display: inline-block;
  position: relative;
  line-height: 1.22;
  padding-bottom: 0.12em;
}
.filescan-intro-main::after {
  content: '';
  display: block;
  width: 60%;
  height: 0.23em;
  background: linear-gradient(90deg, #2478ff 0%, #00bfff 100%);
  border-radius: 1em;
  margin: 0.14em auto 0 auto;
  opacity: 0.20;
  transition: width 0.3s;
}
.filescan-intro-emoji {
  font-size: 1.18em;
  margin-right: 0.13em;
  vertical-align: -0.15em;
}
.filescan-intro-secondary {
  background: rgba(36,120,255,0.10);
  color: #1b2233;
  font-weight: 600;
  font-size: 1.17em;
  border-radius: 1.3em;
  padding: 0.43em 1.6em;
  box-shadow: 0 1.5px 6px 0 rgba(36,120,255,0.09);
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  animation: fadeSlideIn 1.7s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bounceIn {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.18); }
  80% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
