@import url("home.css");
@import url("admin.css");

/* =========================================================
   ACCÈS CONFIDENTIEL — socle visuel
   ========================================================= */

:root {
  --bg: #03070d;
  --bg-soft: #050d18;
  --ink: #eaf5ff;
  --muted: rgba(176, 205, 232, 0.6);
  --faint: rgba(160, 200, 235, 0.45);
  --cyan: #6ee7ff;
  --cyan-soft: #9deeff;
  --cyan-deep: #2aa8cc;
  --violet: #8b9dff;
  --gold: #ffd479;
  --red: #ff5f6e;
  --green: #5fffc1;
  --line: rgba(130, 200, 255, 0.14);
  --line-strong: rgba(130, 200, 255, 0.28);
  --panel: rgba(8, 16, 27, 0.55);
  --radius: 22px;
  --font: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-panel:
    0 40px 100px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset,
    0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(110, 231, 255, 0.22);
  color: #fff;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(110, 231, 255, 0.72);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #03070d;
}

::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 255, 0.16);
  border-radius: 8px;
  border: 2px solid #03070d;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 231, 255, 0.28);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(110, 231, 255, 0.4);
  background: rgba(6, 14, 24, 0.95);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

/* ---------------------------------------------------------
   Décor
   --------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #08182a 0%, #050c16 42%, #02050a 100%);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
  transition: opacity 2.4s ease;
}

body.is-success #field {
  opacity: 0.9;
}

body.is-success .orb--1 {
  opacity: 0.75;
}

body.is-success .horizon {
  opacity: 0.75;
}

body.is-success .grid-floor {
  opacity: 0.4;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 2.4s ease;
}

.orb--1 {
  width: 58vmax;
  height: 58vmax;
  top: -26vmax;
  left: -18vmax;
  background: radial-gradient(circle at 50% 50%, rgba(31, 133, 191, 0.5), rgba(12, 50, 90, 0.16) 55%, transparent 70%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.orb--2 {
  width: 52vmax;
  height: 52vmax;
  right: -22vmax;
  bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, rgba(70, 90, 210, 0.36), rgba(40, 40, 120, 0.1) 55%, transparent 72%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

.orb--3 {
  width: 46vmax;
  height: 46vmax;
  left: 50%;
  bottom: -28vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(36, 196, 214, 0.24), transparent 68%);
  animation: breathe 16s ease-in-out infinite;
}

.grid-floor {
  position: absolute;
  left: 50%;
  bottom: -18vh;
  width: 260vw;
  height: 78vh;
  transform: translateX(-50%) perspective(420px) rotateX(70deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(120, 210, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 210, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(ellipse 48% 60% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
  mask-image: radial-gradient(ellipse 48% 60% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 72%);
  animation: floor 16s linear infinite;
  transition: opacity 2.4s ease;
}

.horizon {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: min(1100px, 120vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.35), transparent);
  filter: blur(0.5px);
  opacity: 0.45;
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 38%), rgba(90, 195, 255, 0.075), transparent 68%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.spotlight.is-active {
  opacity: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 48%, transparent 35%, rgba(0, 3, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 4, 10, 0.35), transparent 22%, transparent 78%, rgba(0, 4, 10, 0.5));
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}

/* ---------------------------------------------------------
   Connexion
   --------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 56px);
}

.panel {
  position: relative;
  width: min(452px, 100%);
  padding: clamp(26px, 4.6vw, 42px) clamp(22px, 4.2vw, 38px) clamp(22px, 3.6vw, 30px);
  border-radius: var(--radius);
  border: 1px solid rgba(135, 200, 255, 0.11);
  background: linear-gradient(158deg, rgba(15, 30, 48, 0.62), rgba(4, 10, 18, 0.58) 62%, rgba(6, 14, 24, 0.66));
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  box-shadow: var(--shadow-panel);
  isolation: isolate;
  animation: panel-in 1.15s var(--ease) both;
}

.panel.is-leaving {
  opacity: 0 !important;
  transform: translateY(-16px) scale(0.965) !important;
  filter: blur(12px) !important;
  pointer-events: none;
  transition-duration: 0.75s, 0.85s, 0.75s !important;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    rgba(110, 231, 255, 0.55) 55deg,
    rgba(150, 170, 255, 0.35) 130deg,
    transparent 210deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: sweep 9s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}

.panel--admin::before {
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    rgba(255, 212, 121, 0.45) 55deg,
    rgba(139, 157, 255, 0.3) 130deg,
    transparent 210deg,
    transparent 360deg
  );
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .panel::before {
    display: none;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(140, 220, 255, 0.4);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  opacity: 0.65;
}

.corner--tl { top: 13px; left: 13px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 4px; }
.corner--tr { top: 13px; right: 13px; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 4px; }
.corner--bl { bottom: 13px; left: 13px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 4px; }
.corner--br { bottom: 13px; right: 13px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 4px; }

.panel--admin .corner {
  border-color: rgba(255, 212, 121, 0.35);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 34px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.9);
  animation: blink 2.6s ease-in-out infinite;
}

.status--admin .status__dot {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 212, 121, 0.85);
}

.status--admin {
  color: rgba(255, 224, 160, 0.72);
}

.panel__id {
  color: rgba(150, 195, 230, 0.36);
}

.emblem {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto clamp(20px, 3vw, 26px);
  filter: drop-shadow(0 0 18px rgba(110, 231, 255, 0.22));
}

.emblem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.emblem__ring {
  stroke: rgba(130, 225, 255, 0.32);
  stroke-width: 1;
  transform-origin: 50% 50%;
}

.emblem__ring--dashed {
  stroke: rgba(130, 225, 255, 0.4);
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  animation: rotate 24s linear infinite;
}

.emblem__core,
.emblem__stem {
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.emblem__core {
  fill: rgba(110, 231, 255, 0.08);
  transform-origin: 36px 32px;
  animation: core 4.5s ease-in-out infinite;
}

.emblem__stem {
  opacity: 0.75;
}

.emblem--admin {
  filter: drop-shadow(0 0 20px rgba(255, 212, 121, 0.18));
}

.emblem__shield {
  fill: rgba(255, 212, 121, 0.035);
  stroke: rgba(255, 212, 121, 0.38);
  stroke-width: 1;
}

.emblem--admin .emblem__ring--dashed {
  stroke: rgba(255, 212, 121, 0.34);
}

.emblem--admin .emblem__core,
.emblem--admin .emblem__stem {
  stroke: rgba(255, 224, 160, 0.88);
}

.emblem--admin .emblem__core {
  fill: rgba(255, 212, 121, 0.08);
}

.prompt {
  max-width: 26ch;
  margin: 0 auto;
  font-size: clamp(1.06rem, 2.4vw, 1.26rem);
  font-weight: 300;
  line-height: 1.52;
  letter-spacing: -0.012em;
  text-align: center;
  color: rgba(236, 246, 255, 0.94);
}

.prompt__note {
  max-width: 34ch;
  margin: 12px auto 0;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: rgba(170, 205, 230, 0.5);
}

.gate {
  margin-top: clamp(24px, 3.8vw, 32px);
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 7px 0 2px;
  border-radius: 14px;
  border: 1px solid rgba(135, 200, 255, 0.16);
  background: rgba(3, 9, 16, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 12px 30px -18px rgba(0, 0, 0, 0.9);
  transition: border-color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.field__ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.45),
    0 0 34px -4px rgba(80, 205, 255, 0.45),
    inset 0 0 24px -8px rgba(80, 205, 255, 0.35);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.field:focus-within {
  border-color: rgba(110, 231, 255, 0.38);
  background: rgba(5, 13, 23, 0.7);
}

.field:focus-within .field__ring {
  opacity: 1;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  caret-color: var(--cyan);
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: rgba(150, 195, 230, 0.22);
  letter-spacing: 0.45em;
}

.field input::-ms-reveal,
.field input::-ms-clear {
  display: none;
}

.submit {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.28);
  background: rgba(70, 190, 230, 0.09);
  color: rgba(210, 245, 255, 0.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.45s ease, transform 0.35s var(--ease);
}

.submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.submit:hover {
  background: rgba(90, 215, 255, 0.18);
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 0 26px -4px rgba(90, 220, 255, 0.55);
}

.submit:hover svg {
  transform: translateX(2px);
}

.submit:active {
  transform: scale(0.94);
}

.submit:focus-visible {
  outline: 2px solid rgba(110, 231, 255, 0.7);
  outline-offset: 3px;
}

.submit__spinner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(180, 245, 255, 0.22);
  border-top-color: rgba(190, 250, 255, 0.95);
  opacity: 0;
  animation: spin 0.75s linear infinite;
}

.field.is-sending .submit svg {
  opacity: 0;
}

.field.is-sending .submit__spinner {
  opacity: 1;
}

.field.is-sending {
  border-color: rgba(110, 231, 255, 0.32);
}

.field.is-sending .field__ring {
  opacity: 1;
}

.field.is-error {
  border-color: rgba(255, 95, 110, 0.55);
  background: rgba(24, 5, 10, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 34px -12px rgba(255, 70, 90, 0.65);
}

.field.is-error .field__ring {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 95, 110, 0.35),
    0 0 30px -6px rgba(255, 70, 90, 0.5);
}

.field.is-error .submit {
  border-color: rgba(255, 95, 110, 0.35);
  background: rgba(255, 70, 90, 0.08);
}

.field.is-granted {
  border-color: rgba(110, 231, 255, 0.55);
  background: rgba(6, 18, 30, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 50px -14px rgba(90, 225, 255, 0.7);
}

.field.is-granted .field__ring {
  opacity: 1;
}

.field.is-shaking {
  animation: shake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.feedback {
  min-height: 20px;
  margin: 13px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 70, 95, 0.55);
  opacity: 0;
  transform: translateY(-5px);
  filter: blur(3px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease), filter 0.4s ease;
}

.feedback.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(18px, 2.8vw, 24px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.26em;
  color: rgba(150, 195, 230, 0.35);
}

.panel__foot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(140, 185, 220, 0.28);
}

.panel-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 205, 235, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.panel-back .ico {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.panel-back:hover {
  color: rgba(190, 240, 255, 0.85);
}

/* ---------------------------------------------------------
   En-tête de site
   --------------------------------------------------------- */

.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 4vw, 36px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  background: rgba(7, 17, 30, 0.6);
  color: rgba(150, 235, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand:hover .brand__mark {
  color: var(--cyan);
  border-color: rgba(110, 231, 255, 0.34);
  box-shadow: 0 0 24px -8px rgba(80, 220, 255, 0.55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(235, 246, 255, 0.9);
}

.brand__sub {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(150, 200, 230, 0.38);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.head-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(130, 200, 255, 0.14);
  background: rgba(7, 16, 28, 0.55);
  color: rgba(200, 228, 245, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.head-btn .ico {
  width: 14px;
  height: 14px;
}

.head-btn:hover {
  color: rgba(215, 248, 255, 0.95);
  border-color: rgba(110, 231, 255, 0.32);
  background: rgba(10, 24, 40, 0.75);
  box-shadow: 0 0 26px -12px rgba(80, 220, 255, 0.6);
}

.head-btn--quiet {
  border-color: transparent;
  background: transparent;
  color: rgba(170, 205, 230, 0.5);
}

.head-btn--quiet:hover {
  border-color: rgba(130, 200, 255, 0.14);
  background: rgba(7, 16, 28, 0.55);
}

.logout-form {
  display: flex;
  margin: 0;
}

.head-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 212, 121, 0.16);
  background: rgba(48, 36, 12, 0.32);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 224, 160, 0.62);
}

/* ---------------------------------------------------------
   Boutons partagés
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 19px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.btn .ico {
  width: 15px;
  height: 15px;
}

.btn--primary {
  border-color: rgba(180, 250, 255, 0.42);
  background: linear-gradient(135deg, #b4f6ff, #6ee0fa 58%, #4fc3ea);
  color: #02131c;
  box-shadow:
    0 16px 40px -20px rgba(90, 225, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px -20px rgba(90, 225, 255, 0.9),
    0 0 30px -10px rgba(110, 231, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--primary:active {
  transform: translateY(0) scale(0.985);
}

.btn--ghost {
  border-color: rgba(130, 200, 255, 0.17);
  background: rgba(8, 18, 31, 0.58);
  color: rgba(210, 235, 250, 0.78);
}

.btn--ghost:hover {
  border-color: rgba(110, 231, 255, 0.32);
  background: rgba(11, 26, 44, 0.75);
  color: rgba(225, 248, 255, 0.95);
  box-shadow: 0 0 28px -14px rgba(80, 220, 255, 0.6);
}

.btn--ghost .ico {
  transform: rotate(0deg);
}

.btn--danger {
  border-color: rgba(255, 95, 110, 0.32);
  background: rgba(255, 95, 110, 0.12);
  color: rgba(255, 168, 176, 0.95);
}

.btn--danger:hover {
  background: rgba(255, 95, 110, 0.2);
  border-color: rgba(255, 95, 110, 0.5);
  box-shadow: 0 0 30px -12px rgba(255, 95, 110, 0.55);
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 8.5px;
  border-radius: 8px;
}

.btn--sm .ico {
  width: 13px;
  height: 13px;
}

/* ---------------------------------------------------------
   Détail d'une case
   --------------------------------------------------------- */

.detail-main {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 54px) clamp(18px, 4vw, 36px) 52px;
}

.detail-nav {
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 205, 235, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link .ico {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
  transition: transform 0.35s var(--ease);
}

.back-link:hover {
  color: rgba(190, 240, 255, 0.85);
}

.back-link:hover .ico {
  transform: rotate(180deg) translateX(3px);
}

.draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 212, 121, 0.2);
  background: rgba(48, 36, 12, 0.35);
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(255, 226, 168, 0.72);
}

.draft-banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(255, 212, 121, 0.7);
  animation: blink 2.6s ease-in-out infinite;
}

.draft-banner a {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 236, 190, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-panel {
  position: relative;
  padding: clamp(24px, 4.2vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(135, 200, 255, 0.13);
  background: linear-gradient(158deg, rgba(14, 28, 46, 0.72), rgba(4, 10, 18, 0.62) 62%, rgba(6, 14, 24, 0.7));
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  box-shadow:
    0 40px 100px -44px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  isolation: isolate;
  animation: panel-in 1s var(--ease) both;
}

.detail-panel__aura {
  position: absolute;
  top: -42%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(80, 215, 255, 0.14), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.detail-panel--download .detail-panel__aura {
  background: radial-gradient(ellipse at 50% 50%, rgba(130, 145, 255, 0.15), transparent 65%);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 26px);
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 19px;
  border: 1px solid rgba(110, 231, 255, 0.24);
  background: radial-gradient(120% 120% at 28% 16%, rgba(110, 231, 255, 0.19), rgba(7, 19, 33, 0.82));
  color: var(--cyan-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 40px -22px rgba(60, 200, 255, 0.7);
}

.detail-icon .ico {
  width: 30px;
  height: 30px;
}

.detail-panel--download .detail-icon {
  border-color: rgba(139, 157, 255, 0.26);
  background: radial-gradient(120% 120% at 28% 16%, rgba(139, 157, 255, 0.2), rgba(8, 17, 34, 0.84));
  color: #c7d2ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 40px -22px rgba(120, 140, 255, 0.62);
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  background: rgba(6, 16, 28, 0.6);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 235, 255, 0.68);
  white-space: nowrap;
}

.detail-chip .ico {
  width: 13px;
  height: 13px;
}

.detail-chip--download {
  border-color: rgba(139, 157, 255, 0.2);
  color: rgba(195, 205, 255, 0.7);
}

.detail-title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, #ffffff, #dcf9ff 45%, #8fe8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.detail-text {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(185, 214, 236, 0.65);
  text-wrap: pretty;
}

.detail-box {
  margin-top: clamp(24px, 4vw, 34px);
  padding: clamp(17px, 2.8vw, 24px);
  border-radius: 15px;
  border: 1px solid rgba(130, 200, 255, 0.1);
  background: rgba(3, 9, 16, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.detail-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(150, 200, 230, 0.4);
}

.url-display {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(135, 200, 255, 0.12);
  background: rgba(2, 7, 13, 0.6);
}

.url-display__domain {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(175, 240, 255, 0.85);
}

.url-display__full {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(150, 200, 230, 0.42);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.detail-hint {
  margin: 13px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(150, 200, 230, 0.34);
}

.file-display {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(139, 157, 255, 0.14);
  background: rgba(8, 13, 29, 0.55);
}

.file-display__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(139, 157, 255, 0.18);
  background: rgba(139, 157, 255, 0.08);
  color: #c7d2ff;
}

.file-display__icon .ico {
  width: 20px;
  height: 20px;
}

.file-display__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.file-display__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(235, 244, 255, 0.9);
  overflow-wrap: anywhere;
}

.file-display__meta {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(170, 190, 240, 0.45);
}

.file-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 190, 160, 0.8);
}

.file-missing a {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 220, 190, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: clamp(24px, 4vw, 32px);
  padding-top: 15px;
  border-top: 1px solid rgba(130, 200, 255, 0.08);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 200, 230, 0.32);
}

.detail-foot__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-foot__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.55);
}

.detail-foot__item--state {
  margin-left: auto;
  color: rgba(150, 230, 255, 0.5);
}

/* ---------------------------------------------------------
   Pied de page
   --------------------------------------------------------- */

.site-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 36px) 30px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(150, 200, 230, 0.24);
}

.site-foot__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(140, 185, 220, 0.22);
}

.site-foot--admin {
  margin-top: 26px;
  padding-bottom: 34px;
}

/* ---------------------------------------------------------
   Erreur
   --------------------------------------------------------- */

.stage--error {
  gap: 0;
}

.error-panel {
  text-align: center;
}

.error-code {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff, #8ee9ff 70%, #4ec6ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
}

.error-title {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(238, 248, 255, 0.92);
}

.error-message {
  max-width: 42ch;
  margin: 0 auto 24px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

/* ---------------------------------------------------------
   Notifications
   --------------------------------------------------------- */

.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid rgba(95, 255, 193, 0.22);
  background: rgba(6, 18, 22, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.95);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(210, 245, 235, 0.9);
  pointer-events: auto;
  animation: toast-in 0.55s var(--ease) both;
}

.toast--error {
  border-color: rgba(255, 95, 110, 0.28);
  background: rgba(26, 8, 12, 0.94);
  color: rgba(255, 208, 212, 0.92);
}

.toast--success {
  border-color: rgba(95, 255, 193, 0.22);
  color: rgba(205, 255, 235, 0.9);
}

.toast__dot {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(95, 255, 193, 0.8);
}

.toast--error .toast__dot {
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 95, 110, 0.8);
}

.toast__text {
  flex: 1;
  min-width: 0;
}

.toast__close {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(180, 220, 235, 0.45);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.toast.is-leaving {
  animation: toast-out 0.35s ease forwards;
}

/* Flash lumineux (déverrouillage) */
.flash {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(225, 252, 255, 0.85) 0%, rgba(120, 235, 255, 0.28) 28%, transparent 62%);
  opacity: 0;
}

.flash.is-on {
  animation: flash 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes letter-in {
  0% {
    opacity: 0;
    transform: translateY(0.34em) scale(0.97);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes card-ripple {
  0% {
    opacity: 0.85;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(22);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(16px);
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sweep {
  to { --angle: 360deg; }
}

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

@keyframes core {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.94); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-8vmax, -6vmax, 0) scale(0.95); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.95); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

@keyframes floor {
  to { background-position: 0 64px, 0 0; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 3%); }
  40% { transform: translate(4%, -5%); }
  60% { transform: translate(-3%, 6%); }
  80% { transform: translate(5%, 2%); }
  100% { transform: translate(0, 0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.075); opacity: 1; }
}

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

@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------------------------------------------
   Responsive global
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .site-head {
    padding: 16px 16px 0;
  }

  .brand__sub {
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .head-btn span {
    display: none;
  }

  .head-btn {
    width: 36px;
    padding: 0;
  }

  .head-btn--quiet {
    width: 36px;
  }

  .site-foot {
    font-size: 7px;
    letter-spacing: 0.16em;
    padding-bottom: 24px;
  }

  .detail-main {
    padding-top: 22px;
  }

  .detail-head {
    align-items: center;
  }

  .detail-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .detail-icon .ico {
    width: 26px;
    height: 26px;
  }

  .detail-chip {
    font-size: 7px;
    padding: 5px 8px;
  }

  .detail-panel {
    border-radius: 19px;
  }

  .detail-panel .corner {
    width: 10px;
    height: 10px;
  }

  .detail-actions .btn {
    flex: 1 1 100%;
  }

  .detail-foot__item--state {
    margin-left: 0;
  }

  .toasts {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 520px) {
  .stage {
    padding: 18px;
  }

  .panel {
    border-radius: 18px;
    padding-top: 24px;
  }

  .panel::before {
    border-radius: 18px;
  }

  .panel__head {
    margin-bottom: 24px;
  }

  .emblem {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .field {
    height: 56px;
  }

  .field input {
    padding-left: 17px;
    font-size: 16px;
  }

  .grid-floor {
    opacity: 0.2;
  }

  .orb {
    filter: blur(70px);
  }
}

@media (max-width: 380px) {
  .panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .panel__foot {
    letter-spacing: 0.18em;
  }

  .brand__name {
    font-size: 0.76rem;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__mark svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-height: 660px) {
  .panel__head {
    margin-bottom: 16px;
  }

  .emblem {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .gate {
    margin-top: 18px;
  }

  .panel__foot {
    margin-top: 14px;
  }
}

/* ---------------------------------------------------------
   Accessibilité / mouvements réduits
   --------------------------------------------------------- */

@media (forced-colors: active) {
  .field,
  .panel,
  .card,
  .detail-panel {
    border-color: CanvasText;
  }

  .field__ring,
  .flash,
  .grain,
  .card__spot {
    display: none;
  }

  .welcome__letter,
  .admin-title,
  .detail-title,
  .error-code {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }

  .welcome__glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .panel,
  .card,
  .empty-state,
  .eyebrow,
  .welcome__sub,
  .home-rule,
  .detail-panel {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .welcome__letter {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .welcome__glow {
    opacity: 0.55 !important;
  }

  .gear-btn:hover svg,
  .card:hover {
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   Icônes personnalisées & cases multi-contenus
   --------------------------------------------------------- */

img.ico--img {
  object-fit: contain;
}

.card__icon img.ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.card--multi .card__icon {
  border-color: rgba(160, 200, 255, 0.28);
  background:
    radial-gradient(120% 120% at 28% 18%, rgba(110, 231, 255, 0.16), rgba(139, 157, 255, 0.14) 55%, rgba(7, 19, 33, 0.84));
  color: #d9ecff;
}

.card--multi .card__kind {
  border-color: rgba(160, 200, 255, 0.24);
  color: rgba(205, 222, 255, 0.72);
}

.card--multi:hover .card__icon {
  border-color: rgba(180, 220, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 32px -6px rgba(130, 190, 255, 0.6);
}

.detail-icon img.ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
}

.detail-panel--multi .detail-panel__aura {
  background: radial-gradient(ellipse at 50% 50%, rgba(130, 190, 255, 0.16), transparent 65%);
}

.detail-panel--multi .detail-icon {
  border-color: rgba(160, 200, 255, 0.3);
  background: radial-gradient(120% 120% at 28% 16%, rgba(110, 231, 255, 0.16), rgba(139, 157, 255, 0.16) 55%, rgba(8, 17, 34, 0.86));
  color: #dceeff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 40px -22px rgba(120, 170, 255, 0.64);
}

.detail-chip--multi {
  border-color: rgba(160, 200, 255, 0.26);
  color: rgba(205, 225, 255, 0.76);
}

.detail-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-box__head .detail-label {
  margin-bottom: 0;
}

.detail-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(130, 200, 255, 0.16);
  background: rgba(110, 231, 255, 0.06);
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(170, 235, 255, 0.7);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(130, 200, 255, 0.12);
  background: rgba(2, 7, 13, 0.5);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.link-row:hover {
  border-color: rgba(110, 231, 255, 0.26);
  background: rgba(6, 16, 28, 0.65);
}

.link-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  background: rgba(110, 231, 255, 0.06);
  color: var(--cyan-soft);
}

.link-row__icon .ico {
  width: 15px;
  height: 15px;
}

.link-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-row__name {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(235, 246, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row__url {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: rgba(150, 200, 230, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.link-row__actions .row-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(150, 200, 230, 0.45);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.link-row__actions .row-action .ico {
  width: 14px;
  height: 14px;
}

.link-row__actions .row-action:hover {
  color: var(--cyan);
  border-color: rgba(110, 231, 255, 0.24);
  background: rgba(110, 231, 255, 0.08);
}

.link-row__actions .row-action.is-copied {
  color: var(--green);
}

.file-list--detail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list--detail .file-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(139, 157, 255, 0.14);
  background: rgba(8, 13, 29, 0.55);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.file-list--detail .file-row:hover {
  border-color: rgba(160, 175, 255, 0.3);
  background: rgba(11, 18, 38, 0.7);
}

.file-list--detail .file-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(139, 157, 255, 0.18);
  background: rgba(139, 157, 255, 0.08);
  color: #c7d2ff;
}

.file-list--detail .file-row__icon .ico {
  width: 16px;
  height: 16px;
}

.file-list--detail .file-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.file-list--detail .file-row__name {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(230, 240, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list--detail .file-row__meta {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: rgba(170, 185, 235, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .link-row {
    flex-wrap: wrap;
  }

  .link-row__body {
    flex-basis: calc(100% - 50px);
  }

  .link-row__actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid rgba(130, 200, 255, 0.08);
  }

  .file-list--detail .file-row {
    flex-wrap: wrap;
  }

  .file-list--detail .file-row .btn {
    width: 100%;
    justify-content: center;
  }
}
