:root {
  --bg: #e0e0e0;
  --titre: #645e5e;
  --text: rgb(71, 71, 71);
  --tile-bg: #e0e0e0;
  --shadow-light: #ffffff;
  --shadow-dark: #afafaf;
  --shadow-indi: #996dc2;
  --logo_image: url(/static/image/logo_light.webp)
}

body.dark {
  --bg: #212121;
  --titre: #b2eccf;
  --text: whitesmoke;
  --tile-bg: #212121;
  --shadow-light: #313131;
  --shadow-dark: #1a1a1a;
  --shadow-indi: #ffd13d;
  --logo_image: url(/static/image/logo_dark.webp)
}

* {
  box-sizing: border-box;
}
.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

/* Si ton site utilise une classe dark sur body ou html */
body.dark .logo-light {
    display: block;
}

body.dark .logo-dark {
    display: none;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: var(--bg);
  font-family: Arial, sans-serif;
}

.container {
  height: 100vh;
  display: grid;
  grid-template-areas:
    "menu header header"
    "menu content content"
    "menu content content"
    "footer footer footer";
  grid-template-columns: 30% 1fr 1fr;
  grid-template-rows: 70px 1fr 1fr 60px;
  gap: 20px;
  padding: 25px;
  padding-bottom: .5em;
}

header {
  grid-area: header;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
}

nav {
  grid-area: menu;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-radius: 30px;
  background: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
}

nav::-webkit-scrollbar,
.console::-webkit-scrollbar {
  display: none;
}

.content {
  grid-area: content;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
}

footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2vw 8px 2vw;
}

.line-1 {
  font-style: normal;
  color: var(--titre);
  position: relative;
  top: 50%;
  width: 24em;
  border-right: 2px solid rgba(255, 255, 255, .75);
  font-size: 280%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
  font-family: "Gothic";
  margin-left: 15px;
}

.anim-typewriter {
  animation: typewriter 4s steps(44) 1s 1 normal both,
    blinkTextCursor 1s steps(10) infinite normal;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 11.5em; }
}

@keyframes blinkTextCursor {
  from { border-right-color: var(--titre); }
  to { border-right-color: transparent; }
}

.tile {
  margin: 12px 10px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
}

.tile-image {
  min-height: 170px;
  background-color: var(--bg);
  border-radius: 15px;
  box-shadow: inset 5px 5px 3px var(--shadow-dark),
    inset -5px -5px 3px var(--shadow-light);
  background-size: cover;
  background-position: center;
}

#argos {
  background-image: url("https://substackcdn.com/image/fetch/%24s_%21qbTE%21%2Cf_auto%2Cq_auto%3Agood%2Cfl_progressive%3Asteep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8a54b3f-ec97-4929-ad6f-508036540374_1200x630.jpeg");
}

#medusa {
  background-image: url("/static/image/e6c9ec31-3b3d-4594-a939-8bcf4f01c44b.png");
}

.tile-title {
  font-size: 45px;
  font-weight: 600;
  color: var(--titre);
  margin: 15px 0 0 10px;
  font-family: "Gothic";
}

.tile-body,
.tile-footer,
footer h4,
footer p,
.reseau a {
  color: var(--text);
}

.tile-button span {
  display: inline-block;
  transform: translateX(-2em);
  transition: transform 0.4s ease;
}

.tile-button:hover span {
  transform: translateX(2em);
}

/* Footer */
footer {
  padding: 0 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2vw 8px 2vw;
}

footer h4,
footer p {
  margin: 0;
  color: var(--text);
}

.reseau a {
  transition: 0.4s;
  color: var(--text)
}

.socialbar {
  width: 230px;
  background-color: var(--bg);
  border-radius: 3em;
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  margin-top: 15px;
  color: var(--text);
  box-shadow: 3px 3px 15px var(--shadow-dark),
    -3px -3px 15px var(--shadow-light);
}

#github:hover {
  color: #c9510c;
}

#instagram:hover {
  color: #d62976;
}

#facebook:hover {
  color: #3b5998;
}

#discord:hover {
  color: #5865F2;
}

.droit {
  display: flex;
  justify-content: flex-end;
}

.bundle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bundle h4 {
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo_ico {
  display: block;
  transform: translateY(-4px);
  background-image: var(--logo_image);
  width: 30px;
  height: 30px;
}

button {
  width: 100%;
  color: var(--text);
  padding: 12px 15px;
  font-size: 18px;
  border-radius: 3em;
  background: var(--bg);
  cursor: pointer;
  border: 1px solid var(--bg);
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}

button:active {
  color: var(--titre);
  box-shadow:
    inset 4px 4px 12px var(--shadow-dark),
    inset -4px -4px 12px var(--shadow-light);
}

.label {
  display: inline-block;
  cursor: pointer;
  margin-right: 10px;
}

.toggle {
  position: relative;
  width: 30px;
  height: 50px;
  border-radius: 50px;
  background: var(--bg);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
}

.toggle p {
  margin: 3px;
}

.toggle-state {
  display: none;
}

.indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0px 0px 3px 3px var(--shadow-indi);
  transition: 0.3s;
}

.toggle-state:checked + .indicator {
  transform: translateY(23px);
}

.section {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.section.active {
  opacity: 1;
  pointer-events: auto;
}

.c0 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Gothic";
  color: var(--titre);
  font-size: 6em;
  text-decoration: underline;
  font-style: oblique;
  text-align: center;
}

.content div.c1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas:
        "cTitle console"
        "explications console"
        "check_mail console"
        "check_button console"
        "searchStatus console";
    gap: 15px;
    height: 100%;
    padding: 15px;
}

.content div.c2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto auto auto auto;
    grid-template-areas:
        "cTitle console"
        "explications console"
        "check_user console"
        "separator console"
        "check_mail console"
        "check_button console"
        "searchStatus console";
    gap: 15px;
    height: 100%;
    padding: 15px;
}

.content div.c3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto auto auto auto auto;
  grid-template-areas: 
    "cTitle console"
    "explications console"
    "ChoosePorts console"
    "ports_area console"
    "ip_check console"
    "check_button console"
    "searchStatus console"
  ;
  gap: 15px;
  height: 100%;
  padding: 15px;
}

#IpToCheck {
  grid-area: ip_check;
}

#ports_list {
  grid-area: ports_area;
}

#ChoosePorts {
  grid-area: ChoosePorts;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin: auto;
  width: 100%;
  gap: 15px;
}

.cTitle {
  grid-area: cTitle;
  text-align: center;
  font-family: "Gothic";
  font-size: 4em;
  border-radius: 30px;
  background: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cTitle h4 {
  margin: 0;
  color: var(--titre);
}

.explications {
  grid-area: explications;
  padding: 2em;
  border-radius: 30px;
  background-color: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
}

.explications p {
  color: var(--text);
}

.checkToUser { grid-area: check_user; }
.checkToMail { grid-area: check_mail; }
.checkButton { grid-area: check_button; }
.searchStatus { grid-area: searchStatus; }

.checkToMail,
.checkToIp {
  display: flex;
  gap: 12px;
  align-items: center;
}

.c1Controls,
.c3Controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.userCheck,
.ip,
.email {
  background: none;
  border: none;
  outline: none;
  padding: 12px 20px;
  width: 100%;
  font-size: 16px;
  border-radius: 9999px;
  box-shadow: 25px 25px 59px var(--shadow-dark),
    -25px -25px 59px var(--shadow-light);
  color: var(--titre);
}

#dropBoxPorts {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 14px 45px 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: #4b5563;
  background: var(--bg);
  border: none;
  border-radius: 18px;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

#questions {
  color: var(--titre);
}

#dropBoxPorts option {
  background: var(--bg);
  color: var(--text);
}

.dropbox-wrapper {
  position: relative;
  display: inline-block;
}

.dropbox-wrapper::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: #6b7280;
}

.separator {
  grid-area: separator;
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--titre);
  font-weight: bold;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--titre);
}

.separator span {
  padding: 0 15px;
}

.console {
  grid-area: console;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background-color: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
    inset -25px -25px 59px var(--shadow-light);
  padding: 2em;
  overflow-y: auto;
}

.services_title {
  align-self: center;
  font-family: "Gothic";
  font-size: 2em;
  font-style: italic;
  color: var(--titre);
  margin-bottom: 12px;
}

.panel {
  margin-top: 2em;
  padding-bottom: 1em;
  width: 100%;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
}

.panel .domain_name {
  margin: 0;
  display: inline-block;
  margin-top: -.6em;
  margin-left: 1em;
  color: var(--titre);
  font-family: "Gothic";
  font-size: 2em;
}

.panel .infos {
  color: var(--text);
  margin: .5em 1em;
  word-break: break-word;
}

.panel .infos p {
  display: inline;
  margin-left: 8px;
}

.panel .url a:visited {
  color: var(--shadow-indi);
}

.argos-console {
  position: relative;
}

.argos-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 10px 0 18px 0;
}

.argos-stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  text-align: center;
}

.argos-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.argos-stat strong {
  font-size: 22px;
  color: var(--titre);
}

.argos-meta {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.argos-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
}

.argos-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.argos-service {
  font-size: 20px;
  font-family: "Gothic";
  color: var(--titre);
  word-break: break-word;
}

.argos-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  box-shadow:
    inset 3px 3px 7px var(--shadow-dark),
    inset -3px -3px 7px var(--shadow-light);
}

.argos-card-body {
  display: grid;
  gap: 8px;
  color: var(--text);
  word-break: break-word;
}

.argos-card-body a {
  color: var(--shadow-indi);
}

.argos-found {
  border-left: 5px solid #4caf50;
}

.argos-not-found {
  border-left: 5px solid #f44336;
}

.argos-skip {
  border-left: 5px solid #ffc107;
}

.empty-argos {
  margin-top: 16px;
  color: var(--text);
}

.c1TooltipWrap,
.c2TooltipWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.clear_cache {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -6px -6px 14px var(--shadow-light);
}

.clear_cache input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow:
    inset 3px 3px 7px var(--shadow-dark),
    inset -3px -3px 7px var(--shadow-light);
  position: relative;
}

.clear_cache input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--shadow-indi);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.c1TooltipWrap .tooltip,
.c2TooltipWrap .tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  max-width: 240px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
  box-shadow:
    8px 8px 18px var(--shadow-dark),
    -8px -8px 18px var(--shadow-light);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 200;
}

.c1TooltipWrap:hover .tooltip,
.c2TooltipWrap:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.console-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: inherit;
}

.console-overlay.active {
  display: flex;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.9);
}

.up {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.loading-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loaders,
.loadersB {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loader,
.loaderA {
  width: 10px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  animation: loaderPulse 1s ease-in-out infinite;
}

.loader:nth-child(1) { animation-delay: 0s; }
.loader:nth-child(2) { animation-delay: 0.08s; }
.loader:nth-child(3) { animation-delay: 0.16s; }
.loader:nth-child(4) { animation-delay: 0.24s; }
.loader:nth-child(5) { animation-delay: 0.32s; }
.loader:nth-child(6) { animation-delay: 0.40s; }
.loader:nth-child(7) { animation-delay: 0.48s; }
.loader:nth-child(8) { animation-delay: 0.56s; }
.loader:nth-child(9) { animation-delay: 0.64s; }
.loader:nth-child(10) { animation-delay: 0.72s; }

.loader::before {
  content: "";
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: block;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.loaderA {
  animation: loaderFloat 1.1s ease-in-out infinite;
}

.loaderA:nth-child(1) { animation-delay: 0s; }
.loaderA:nth-child(2) { animation-delay: 0.08s; }
.loaderA:nth-child(3) { animation-delay: 0.16s; }
.loaderA:nth-child(4) { animation-delay: 0.24s; }
.loaderA:nth-child(5) { animation-delay: 0.32s; }
.loaderA:nth-child(6) { animation-delay: 0.40s; }
.loaderA:nth-child(7) { animation-delay: 0.48s; }
.loaderA:nth-child(8) { animation-delay: 0.56s; }
.loaderA:nth-child(9) { animation-delay: 0.64s; }

.ball0, .ball1, .ball2, .ball3, .ball4, .ball5, .ball6, .ball7, .ball8 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
}

@keyframes loaderPulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes loaderFloat {
  0%, 100% { transform: translateY(6px); opacity: 0.6; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.socialbar {
  padding: 14px;
  border-radius: 3em;
  box-shadow: 3px 3px 15px var(--shadow-dark),
    -3px -3px 15px var(--shadow-light);
}

.bundle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo_ico {
  display: block;
  transform: translateY(-2px);
}

#backToTop {
  display: none;
  margin-top: 20px;
}

.tile-button {
  width: 30%;
  align-self: flex-end;
}

.searchStatus {
  text-align: center;
  color: var(--titre);
}
    
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: var(--titre);
  box-shadow: 0 0 0 2px var(--titre);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: var(--titre);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--titre);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: var(--titre);
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: var(--titre);
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px var(--titre);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

#ports_list {
  padding-left: 1.3em;
  padding-right: 1.5em;
  color: var(--text);
  resize: none;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: inset 25px 25px 59px var(--shadow-dark),
            inset -25px -25px 59px var(--shadow-light);
}

#ports_list:focus {
  outline: none !important;
}

.stats-updated {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 925px) {
  html, body {
    overflow: auto;
  }

  .container {
    display: grid;
    grid-template-areas:
      "header"
      "content"
      "menu"
      "footer";
    grid-template-columns: 100%;
    gap: 20px;
    padding: 25px;
    padding-bottom: 5em;
    overflow-y: auto;
    height: auto;
  }

  .content {
    min-height: 600px;
  }

  .content div.c1,
  .content div.c2 {
    grid-template-columns: 100%;
    grid-template-areas:
      "cTitle"
      "explications"
      "check_user"
      "separator"
      "check_mail"
      "check_button"
      "searchStatus"
      "console";
    overflow-y: auto;
  }
    
  .content div.c1 {
    grid-template-areas:
      "cTitle"
      "explications"
      "check_mail"
      "check_button"
      "searchStatus"
      "console";
  }

  .argos-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkToMail,
  .c3Controls,
  .c1Controls {
    flex-direction: column;
    align-items: stretch;
  }

  .tagline {
    display: none;
  }

  #backToTop {
    display: block;
  }
}

/* =========================
   MEDUSA
========================= */
.medusa-console {
  position: relative;
}

.medusa-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 10px 0 18px 0;
}

.medusa-stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  text-align: center;
}

.medusa-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.medusa-stat strong {
  font-size: 22px;
  color: var(--titre);
}

.medusa-meta {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.medusa-empty {
  margin-top: 16px;
  color: var(--text);
}

.medusa-hidden {
  opacity: 0.65;
}

#ChoosePorts {
  align-items: center;
}

#questions {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  justify-content: center;
}

#ports_list.medusa-readonly {
  cursor: default;
}

.medusa-table {
  width: 100%;
  border-collapse: collapse;
}

.medusa-table thead th {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid rgba(100, 94, 94, 0.18);
}

.medusa-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(100, 94, 94, 0.12);
  color: var(--text);
}

.medusa-badge {
  display: inline-block;
  min-width: 120px;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.medusa-badge.open { background: #4ea338; }
.medusa-badge.closed { background: #c0392b; }
.medusa-badge.timeout { background: #f4b400; color: #1f1f1f; }
.medusa-badge.error { background: #7f8c8d; }

/* Help overlay */
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.10), transparent 35%),
    rgba(20, 20, 20, 0.26);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  animation: helpFadeIn 0.22s ease;
}

.help-overlay.hidden {
  display: none;
}

.help-liquid-card {
  position: relative;
  width: min(760px, 95vw);
  overflow: hidden;
  border-radius: 32px;
  padding: 1px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.22)
    );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.help-liquid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04)),
    rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  pointer-events: none;
}

.help-liquid-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 35%, transparent 60%);
  filter: blur(30px);
  animation: liquidMove 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.help-liquid-noise {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 35%, rgba(255,255,255,0.12));
  mix-blend-mode: screen;
  pointer-events: none;
}

.help-liquid-header,
.help-liquid-content {
  position: relative;
  z-index: 2;
}

.help-liquid-header {
  padding: 24px 24px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.help-liquid-header h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #f4fbff;
  letter-spacing: 0.4px;
}

.help-liquid-header p {
  margin: 8px 0 0 0;
  color: rgba(240, 248, 255, 0.78);
  font-size: 0.95rem;
}

.help-liquid-content {
  padding: 18px 24px 24px 24px;
  color: #eef8ff;
}

.help-mode-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.help-ports-count {
  font-size: 0.92rem;
  color: rgba(235, 245, 255, 0.70);
  margin-bottom: 10px;
}

.help-ports-wrapper {
  margin-top: 16px;
}

.help-ports-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px 10px;
  table-layout: fixed;
}

.help-ports-table td {
  width: 50%;
  vertical-align: top;
}

.help-port-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 20px rgba(0,0,0,0.08);
}

.help-port-number {
  min-width: 52px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.help-port-name {
  color: rgba(240, 248, 255, 0.88);
  font-size: 0.97rem;
  line-height: 1.2;
}

body.help-open {
  overflow: hidden;
}

@keyframes liquidMove {
  0% { transform: translate(-10%, -8%) scale(1); }
  100% { transform: translate(12%, 10%) scale(1.18); }
}

@keyframes helpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 925px) {
  .content div.c3 {
    grid-template-columns: 100%;
    grid-template-areas:
      "cTitle"
      "explications"
      "ChoosePorts"
      "ports_area"
      "ip_check"
      "check_button"
      "searchStatus"
      "console";
    overflow-y: auto;
  }

  .medusa-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-ports-table {
    border-spacing: 8px 8px;
  }

  .help-port-cell {
    padding: 9px 10px;
    min-height: 44px;
  }

  .help-port-number {
    min-width: 42px;
    font-size: 0.95rem;
  }

  .help-port-name {
    font-size: 0.88rem;
  }
}