@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  font-family: Inter, Arial, sans-serif;
  color: #f5efff;
  background: #0b0910;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #0b0910;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 15%, #29143d 0%, #100c17 45%, #09080d 100%);
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

#root {
  min-height: 100vh;
}




.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: auto;
  padding: 24px 20px 30px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #a56aff;
  border-radius: 14px;
  color: #d5b6ff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 0 20px #873bba55;
}

.brand h1 {
  font-size: 18px;
  letter-spacing: 3px;
  margin: 0;
}

.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a28caf;
  margin-top: 4px;
}

.language {
  border: 1px solid #49345f;
  color: #d9c3f4;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
}

.hero {
  text-align: center;
  padding: 38px 0 30px;
}

.orb {
  width: 175px;
  height: 175px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #a65bff22 0%, #7134a955 38%, transparent 70%);
  border: 1px solid #a66aff55;
  box-shadow: 0 0 35px #8c3ddd44,
              inset 0 0 30px #8c3ddd33;
  animation: pulse 4s ease-in-out infinite;
}

.orb-inner {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 1px solid #b58aff88;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #32194e, #100c19);
}

.orb-symbol {
  font-size: 55px;
  color: #d6a9ff;
  text-shadow: 0 0 20px #a85bff;
}

.orb-caption {
  font-size: 9px;
  letter-spacing: 4px;
  color: #bda0da;
}

@keyframes pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 55px #a04aff66;
  }
}

.eyebrow,
.section-label {
  color: #a985c7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero h2 {
  font-size: 29px;
  margin: 13px 0;
  letter-spacing: -1px;
}

.hero h2 span {
  color: #bd83ff;
}

.intro {
  max-width: 310px;
  margin: auto;
  color: #a99cb8;
  font-size: 13px;
  line-height: 1.7;
}

.mode-section {
  margin-top: 12px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.mode-card {
  background: #17121f;
  border: 1px solid #352540;
  border-radius: 15px;
  padding: 17px 10px;
  color: white;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 115px;
}

.mode-card.selected {
  border-color: #a56aff;
  background: linear-gradient(145deg, #321b49, #17121f);
  box-shadow: 0 0 18px #a04aff22;
}

.mode-icon {
  font-size: 25px;
  color: #c18aff;
}

.mode-card strong {
  font-size: 12px;
  letter-spacing: 1px;
}

.mode-card small {
  font-size: 11px;
  color: #a99cb8;
}

.session-panel {
  background: linear-gradient(145deg, #1c1428, #100d17);
  border: 1px solid #49305f;
  border-radius: 19px;
  padding: 20px 16px;
  margin-top: 27px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.panel-heading h3 {
  font-size: 16px;
  margin: 8px 0 0;
}

.status {
  color: #a99cb8;
  font-size: 9px;
  letter-spacing: 1px;
}

.status.live {
  color: #c58cff;
}

.waveform {
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 17px 0;
}

.waveform span {
  width: 3px;
  height: var(--bar);
  max-height: 50px;
  border-radius: 5px;
  background: linear-gradient(#d5adff, #8039bd);
  opacity: 0.7;
}

.waveform.playing span {
  animation: wave 0.7s ease-in-out infinite alternate;
}

.waveform.playing span:nth-child(3n) {
  animation-delay: 0.2s;
}

.waveform.playing span:nth-child(2n) {
  animation-delay: 0.4s;
}

@keyframes wave {
  to { transform: scaleY(0.35); opacity: 1; }
}

.frequency {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #d5adff;
  margin: 10px 0 20px;
}

.frequency small {
  display: block;
  font-size: 9px;
  color: #9f8aaf;
  letter-spacing: 2px;
  margin-top: 5px;
}

.start-button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #8138bf, #a85aff);
  box-shadow: 0 5px 20px #8138bf44;
  cursor: pointer;
}

.stop-button {
  background: linear-gradient(100deg, #492b63, #70438f);
}

.notice {
  font-size: 10px;
  color: #95869f;
  text-align: center;
  line-height: 1.6;
  margin: 14px 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #30233b;
  color: #786887;
  font-size: 8px;
  letter-spacing: 1px;
}

@media (max-width: 360px) {
  .app { padding: 18px 14px; }
  .hero h2 { font-size: 25px; }
  .orb { width: 150px; height: 150px; }
  .orb-inner { width: 110px; height: 110px; }
}


.audio-controls {
  margin: 20px 0;
  padding: 15px;
  border-radius: 12px;
  background: #17111f;
  border: 1px solid #382447;
}

.control-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.control-heading label {
  color: #bda0da;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.control-heading strong {
  color: #d5adff;
  font-size: 13px;
}

.speed-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.speed-options button {
  padding: 11px 4px;
  border-radius: 8px;
  border: 1px solid #49345f;
  background: #21182b;
  color: #bca8cf;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.speed-options button.speed-active {
  background: #7037a7;
  border-color: #c18aff;
  color: white;
}

.volume-control {
  margin-top: 20px;
}

.volume-control input {
  width: 100%;
  accent-color: #ae6aff;
  cursor: pointer;
}

.coming-soon {
  text-align: center;
  padding: 30px 12px;
}

.coming-soon > span {
  display: block;
  color: #c18aff;
  font-size: 40px;
  margin-bottom: 12px;
}

.coming-soon strong {
  color: #d5adff;
  letter-spacing: 2px;
}

.coming-soon p {
  color: #a99cb8;
  font-size: 12px;
  line-height: 1.7;
}

.audio-error {
  color: #ff9baf;
  background: #351923;
  border: 1px solid #713347;
  border-radius: 9px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.evp-module {
  text-align: center;
  padding-top: 18px;
}

.evp-indicator {
  width: 92px;
  height: 92px;
  margin: 10px auto 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #69458b;
  background: radial-gradient(circle, #38204e, #17111f);
  box-shadow: 0 0 25px #8c3ddd22;
  color: #b58aff;
  font-size: 38px;
}

.evp-indicator.evp-active {
  border-color: #c18aff;
  box-shadow: 0 0 30px #a04aff66;
  animation: pulse 2s ease-in-out infinite;
}

.evp-status {
  color: #c18aff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.evp-timer {
  color: #ead8ff;
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 18px 0;
}

.evp-description {
  color: #a99cb8;
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 5px 22px;
}

.evp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-button {
  background: linear-gradient(100deg, #a12c60, #d04b7c);
  box-shadow: 0 5px 20px #a12c6044;
}

.secondary-button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #49345f;
  color: #cbb4df;
  background: #21182b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}

.recordings-section {
  margin-top: 30px;
  text-align: left;
  border-top: 1px solid #49305f;
  padding-top: 18px;
}

.recordings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d5adff;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.recordings-heading span {
  background: #38204e;
  border-radius: 20px;
  padding: 5px 9px;
}

.empty-recordings {
  text-align: center;
  color: #95869f;
  font-size: 11px;
  padding: 20px 0;
}

.recordings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.recording-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border-radius: 11px;
  background: #17111f;
  border: 1px solid #382447;
}

.recording-info {
  min-width: 0;
  flex: 1;
}

.recording-info strong,
.recording-info small {
  display: block;
}

.recording-info strong {
  color: #e4d3f5;
  font-size: 11px;
}

.recording-info small {
  color: #a99cb8;
  font-size: 10px;
  margin-top: 5px;
}

.recording-info audio {
  width: 100%;
  height: 38px;
  margin-top: 10px;
}

.delete-recording {
  border: 1px solid #713347;
  background: #351923;
  color: #ff9baf;
  border-radius: 8px;
  min-width: 32px;
  height: 32px;
  cursor: pointer;
}


/* ===== SPIRITWAVE V0.4 : ANALYSEUR AUDIO ===== */
.analyzer-module {
  text-align: center;
  padding-top: 12px;
}

.dominant-frequency {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 22px 0;
}

.dominant-frequency strong {
  font-size: 46px;
  font-weight: 800;
  color: #d5adff;
  text-shadow: 0 0 24px #a34dff88;
}

.dominant-frequency span {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a99cb8;
}

.spectrum-display {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 10px;
  margin: 20px 0;
  border: 1px solid #49305f;
  border-radius: 14px;
  background: linear-gradient(180deg, #21152e, #100d18);
}

.spectrum-display span {
  flex: 1;
  max-width: 12px;
  min-height: 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e1aaff, #9c4dff, #5823a0);
  box-shadow: 0 0 9px #a34dff66;
  transition: height 100ms ease;
}

.frequency-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 20px 0;
}

.frequency-bands div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 5px;
  border: 1px solid #49305f;
  border-radius: 10px;
  background: #17111f;
}

.frequency-bands strong {
  color: #d5adff;
  font-size: 19px;
}

.frequency-bands span {
  color: #a99cb8;
  font-size: 8px;
  letter-spacing: 1px;
}

/* ===== SPIRITWAVE V0.5 : BALAYAGE VOCAL ===== */

.voice-module {
  text-align: center;
  padding-top: 12px;
}

.voice-orb {
  width: 112px;
  height: 112px;
  margin: 10px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #9860c9;
  background: radial-gradient(circle, #49266b, #171020 72%);
  box-shadow: 0 0 35px #9d50e955, inset 0 0 24px #a56aff33;
}

.voice-orb span {
  font-size: 48px;
  color: #e2c2ff;
  text-shadow: 0 0 20px #bd79ff;
}

.voice-description {
  color: #b9a9c7;
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0 20px;
}

.voice-style-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 18px 0;
}

.voice-style-options button {
  min-height: 48px;
  padding: 9px 5px;
  border: 1px solid #49305f;
  border-radius: 10px;
  background: #17111f;
  color: #bda9cf;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.voice-style-options button.voice-style-active {
  color: #fff;
  border-color: #b477ee;
  background: linear-gradient(145deg, #482365, #21142e);
  box-shadow: 0 0 14px #a04aff33;
}

.voice-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-top: 20px;
}

.voice-settings > label {
  color: #c9b6d9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 7px;
}

.voice-select {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  color: #fff;
  background: #17111f;
  border: 1px solid #49305f;
  border-radius: 9px;
  font-size: 12px;
}

.voice-hint {
  color: #bda9cf;
  font-size: 11px;
  line-height: 1.5;
}

.last-voice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 12px;
  margin: 20px 0;
  border: 1px solid #49305f;
  border-radius: 12px;
  background: linear-gradient(145deg, #21152e, #120e19);
}

.last-voice span {
  color: #a99cb8;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.last-voice strong {
  color: #e0c4ff;
  font-size: 17px;
  line-height: 1.5;
  text-shadow: 0 0 12px #a34dff55;
}

/* SPIRITWAVE V0.6 - Interface multilingue et dialogue */

.voice-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 18px 0;
}

.voice-mode-options button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(174, 113, 255, 0.28);
  border-radius: 12px;
  background: rgba(91, 49, 145, 0.13);
  color: #c8b6e8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.voice-mode-options button.voice-mode-active {
  border-color: #b77aff;
  background: rgba(139, 77, 218, 0.28);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(160, 91, 255, 0.16);
}

.voice-warning {
  color: #ffbd8b !important;
  border-left: 2px solid #ff9e63;
  padding-left: 10px;
}

.dialogue-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(174, 113, 255, 0.25);
  border-radius: 16px;
  background: rgba(70, 38, 105, 0.13);
  text-align: left;
}

.dialogue-panel > label,
.voice-question span {
  color: #bda3df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.dialogue-input {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(174, 113, 255, 0.3);
  border-radius: 10px;
  outline: none;
  background: rgba(8, 7, 17, 0.85);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
}

.dialogue-input:focus {
  border-color: #b77aff;
  box-shadow: 0 0 12px rgba(160, 91, 255, 0.14);
}

.dialogue-send {
  min-height: 46px;
  border: 1px solid #9860d4;
  border-radius: 10px;
  background: rgba(130, 73, 190, 0.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.dialogue-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* DICTIONNAIRE MULTILINGUE */
.dictionary-module {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}

.dictionary-intro {
  padding: 20px 16px;
  border: 1px solid rgba(174, 113, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(91, 48, 132, 0.2), rgba(15, 10, 28, 0.65));
  text-align: center;
}

.dictionary-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border: 1px solid rgba(190, 139, 255, 0.55);
  border-radius: 50%;
  background: rgba(130, 73, 190, 0.2);
  color: #d7b5ff;
  font-size: 27px;
  box-shadow: 0 0 22px rgba(160, 91, 255, 0.16);
}

.dictionary-intro h4,
.dictionary-history-heading h4 {
  margin: 0;
  color: #d7b5ff;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.dictionary-intro p {
  margin: 9px 0 0;
  color: #b8accb;
  font-size: 13px;
  line-height: 1.6;
}

.dictionary-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(174, 113, 255, 0.25);
  border-radius: 14px;
  background: rgba(70, 38, 105, 0.13);
}

.dictionary-search label {
  color: #bda3df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.dictionary-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(174, 113, 255, 0.3);
  border-radius: 10px;
  outline: none;
  background: rgba(8, 7, 17, 0.85);
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.dictionary-input:focus {
  border-color: #b77aff;
  box-shadow: 0 0 12px rgba(160, 91, 255, 0.14);
}

.dictionary-send {
  min-height: 46px;
  border: 1px solid #9860d4;
  border-radius: 10px;
  background: rgba(130, 73, 190, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.dictionary-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dictionary-loading {
  margin: 0;
  color: #c9a4f5;
  font-size: 13px;
  text-align: center;
}

.dictionary-result {
  padding: 16px;
  border: 1px solid rgba(174, 113, 255, 0.35);
  border-radius: 14px;
  background: rgba(38, 23, 57, 0.55);
  overflow-wrap: anywhere;
}

.dictionary-result-heading {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(174, 113, 255, 0.2);
}

.dictionary-result-heading span {
  color: #bda3df;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.dictionary-result-heading strong {
  color: #e5d1ff;
  font-size: 17px;
}

.dictionary-result > p {
  margin: 14px 0 0;
  color: #eee7f7;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}

.dictionary-history {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dictionary-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.dictionary-history-heading span {
  color: #9483aa;
  font-size: 11px;
}

.dictionary-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(174, 113, 255, 0.2);
  border-radius: 9px;
  background: rgba(20, 14, 32, 0.75);
  color: #eee7f7;
  text-align: left;
}

.dictionary-history-item span {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dictionary-history-item small {
  flex-shrink: 0;
  color: #bda3df;
  font-size: 10px;
}

.dictionary-history-item:active {
  background: rgba(130, 73, 190, 0.25);
}

.voice-question {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(12, 9, 22, 0.65);
  overflow-wrap: anywhere;
}

.voice-question strong {
  color: #eee2ff;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 360px) {
  .voice-mode-options button {
    font-size: 9px;
    padding: 8px 5px;
  }
}


.recording-playback-control {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #17111f;
  border: 1px solid #382447;
}

.recording-playback-control input {
  width: 100%;
  accent-color: #ae6aff;
  cursor: pointer;
  margin-top: 8px;
}

.recording-playback-control small {
  display: block;
  color: #a99cb8;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
}


/* ===== DÉTECTEUR EMF ===== */
.emf-module {
  padding-top: 18px;
  text-align: center;
}

.emf-meter {
  padding: 20px 14px;
  border: 1px solid #49305f;
  border-radius: 16px;
  background: #17111f;
}

.emf-meter-label,
.emf-unit,
.emf-gauge-scale,
.emf-axes span,
.emf-baseline span,
.emf-alert span {
  display: block;
  color: #a99cb8;
  font-size: 10px;
  letter-spacing: 1px;
}

.emf-meter > strong {
  display: block;
  margin-top: 12px;
  color: #e2c2ff;
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px #bd79ff66;
}

.emf-unit {
  margin-bottom: 18px;
}

.emf-gauge {
  height: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: #30243b;
}

.emf-gauge-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8050b8, #d19aff);
  transition: width 0.2s ease;
}

.emf-gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 9px;
}

.emf-axes,
.emf-baseline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.emf-baseline {
  grid-template-columns: repeat(2, 1fr);
}

.emf-axes > div,
.emf-baseline > div {
  padding: 13px 5px;
  border: 1px solid #352540;
  border-radius: 11px;
  background: #17121f;
}

.emf-axes strong,
.emf-baseline strong {
  display: block;
  margin-top: 8px;
  color: #e2c2ff;
  font-size: 12px;
}

.emf-alert {
  margin: 14px 0;
  padding: 15px 10px;
  border: 1px solid #49305f;
  border-radius: 12px;
  background: #21172d;
}

.emf-alert strong {
  display: block;
  margin-top: 8px;
  color: #d7adff;
  font-size: 13px;
}

/* CAMERA SLS */
.sls-module {
  padding-top: 18px;
  text-align: center;
}

.sls-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #49305f;
  border-radius: 16px;
  background: #09070d;
}

.sls-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.sls-source-video {
  display: none;
}

.sls-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.sls-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sls-overlay line {
  stroke: #c58aff;
  stroke-width: 0.006;
  stroke-linecap: round;
  filter: drop-shadow(0 0 0.008px #bd79ff);
}

.sls-overlay circle {
  fill: #f0d6ff;
  stroke: #a84cff;
  stroke-width: 0.003;
}

.sls-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #d7adff;
  background: radial-gradient(circle, #281638 0%, #09070d 72%);
}

.sls-placeholder span {
  font-size: 42px;
  text-shadow: 0 0 20px #bd79ff;
}

.sls-placeholder strong {
  font-size: 15px;
  letter-spacing: 2px;
}

.sls-placeholder small {
  color: #a99cb8;
  font-size: 11px;
}

.sls-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #49305f;
  border-radius: 12px;
  background: #17111f;
}

.sls-stats span {
  color: #a99cb8;
  font-size: 10px;
  letter-spacing: 1px;
}

.sls-stats strong {
  color: #e2c2ff;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px #bd79ff66;
}


/* CAMÉRA DE VISION NOCTURNE */
.nightvision-module {
  padding-top: 18px;
  text-align: center;
}

.nightvision-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #49305f;
  border-radius: 16px;
  background: #09070d;
}

.nightvision-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nightvision-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #c9b5df;
  background: radial-gradient(circle, #21172c 0%, #09070d 75%);
}

.nightvision-placeholder span {
  font-size: 42px;
  color: #9b78c2;
}

.nightvision-placeholder strong {
  font-size: 14px;
  letter-spacing: 2px;
}

.nightvision-placeholder small {
  color: #95889f;
  font-size: 12px;
}

.nightvision-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #342541;
  border-radius: 14px;
  background: #100c16;
  text-align: left;
}

.nightvision-filter-buttons {
  display: flex;
  gap: 8px;
}

.nightvision-filter-buttons button {
  flex: 1;
  min-width: 0;
  padding: 11px 5px;
  border: 1px solid #49305f;
  border-radius: 9px;
  background: #191221;
  color: #c9b5df;
  font-size: 11px;
  font-weight: 700;
}

.nightvision-filter-buttons button.selected {
  border-color: #a879d2;
  background: #38234b;
  color: #ffffff;
}

.nightvision-brightness {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c9b5df;
  font-size: 12px;
  letter-spacing: 1px;
}

.nightvision-brightness strong {
  color: #c59af0;
  font-size: 14px;
}

.nightvision-controls input[type="range"] {
  width: 100%;
  accent-color: #a879d2;
}

@media (max-width: 380px) {
  .nightvision-filter-buttons {
    flex-wrap: wrap;
  }

  .nightvision-filter-buttons button {
    font-size: 10px;
  }
}

/* ===== PLANCHE OUIJA ===== */

.ouija-module {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ouija-intro {
  text-align: center;
  color: #c9b5df;
  font-size: 13px;
}

.ouija-intro p {
  margin: 8px 0 0;
}

.ouija-mode-buttons {
  display: flex;
  gap: 10px;
}

.ouija-mode-buttons button {
  flex: 1;
  padding: 13px 8px;
  border: 1px solid #49305f;
  border-radius: 10px;
  background: #191221;
  color: #c9b5df;
  font-size: 12px;
  font-weight: 800;
}

.ouija-mode-buttons button.selected {
  border-color: #b77be8;
  background: #38234b;
  color: #fff;
  box-shadow: 0 0 14px #a45cdb55;
}

.ouija-board {
  position: relative;
  overflow: hidden;
  padding: 20px 12px;
  border: 2px solid #805b43;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, #35251f 0%, #211713 65%, #120e0d 100%);
  box-shadow:
    inset 0 0 30px #000000aa,
    0 0 22px #9b663b22;
  text-align: center;
}

.ouija-board-title {
  margin-bottom: 22px;
  color: #e4c9a5;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 0 12px #d69b65;
}

.ouija-special-keys,
.ouija-letters,
.ouija-numbers,
.ouija-bottom-keys {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.ouija-key {
  min-width: 34px;
  min-height: 38px;
  padding: 7px;
  border: 1px solid #9a7659;
  border-radius: 8px;
  background: linear-gradient(145deg, #493326, #241912);
  color: #f0d6b2;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 5px #0008;
  transition: 0.15s ease;
}

.ouija-key:disabled {
  opacity: 0.75;
}

.ouija-key.active {
  border-color: #f4d69b;
  background: #8b5a35;
  color: #fff7d9;
  box-shadow: 0 0 18px #ffbd69cc;
  transform: scale(1.12);
}

.ouija-special {
  min-width: 85px;
  min-height: 42px;
  border-radius: 50%;
  color: #f4d69b;
}

.ouija-letters {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.ouija-numbers .ouija-key {
  min-width: 32px;
}

.ouija-bottom-keys .ouija-key {
  min-width: 95px;
  font-size: 10px;
}

.ouija-goodbye {
  padding: 11px 28px;
  border: 1px solid #bd8a65;
  border-radius: 30px;
  background: #39251e;
  color: #f1cba4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.ouija-goodbye.active {
  background: #8b4c36;
  box-shadow: 0 0 18px #d68b5c;
}

.ouija-planchette {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 22px auto 0;
  border: 2px solid #d4ad7b;
  border-radius: 50%;
  background: radial-gradient(circle, #68452f, #21130e);
  color: #fff0cf;
  box-shadow: 0 0 18px #d69b6577, inset 0 0 12px #000;
}

.ouija-planchette span {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 10px #ffcf8b;
}

.ouija-message-panel {
  padding: 15px;
  border: 1px solid #49305f;
  border-radius: 12px;
  background: #15101c;
}

.ouija-message-panel p {
  min-height: 42px;
  margin: 12px 0 0;
  color: #e5c9ff;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px #a45cdb66;
}

.ouija-question-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ouija-question-form label {
  color: #c9b5df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ouija-question-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 1px solid #49305f;
  border-radius: 10px;
  background: #15101c;
  color: #fff;
  font: inherit;
  resize: vertical;
}

.ouija-question-form textarea:focus {
  outline: none;
  border-color: #b77be8;
  box-shadow: 0 0 12px #a45cdb44;
}

.ouija-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ouija-history-entry {
  padding: 12px;
  border-left: 3px solid #9564b8;
  border-radius: 7px;
  background: #191221;
}

.ouija-history-entry strong {
  color: #c9a7e8;
  font-size: 12px;
}

.ouija-history-entry p {
  margin: 7px 0 0;
  color: #e8dff0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .ouija-board {
    padding: 16px 7px;
  }

  .ouija-key {
    min-width: 29px;
    min-height: 35px;
    padding: 5px;
    font-size: 11px;
  }

  .ouija-letters {
    gap: 5px;
  }
}


/* OUIJA - MODE EXPERIMENTAL */
.ouija-board {
  touch-action: none;
}


.ouija-trial-planchette {
  position: absolute;
  z-index: 5;
  width: 100px;
  height: 116px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: none;
  filter: drop-shadow(0 0 9px #d99a54bb);
}

.ouija-trial-planchette::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 20%, #ffffff22 45%, transparent 65%),
    linear-gradient(145deg, #c9955e, #81502f 48%, #3b2115);
  border: 3px solid #e7bd83;
  clip-path: polygon(
    50% 0%,
    82% 24%,
    98% 52%,
    94% 73%,
    78% 91%,
    50% 100%,
    22% 91%,
    6% 73%,
    2% 52%,
    18% 24%
  );
  -webkit-mask: radial-gradient(circle 18px at 50% 50%, transparent 0 15px, #000 17px);
  mask: radial-gradient(circle 18px at 50% 50%, transparent 0 15px, #000 17px);
  box-shadow: inset 0 0 14px #170d08;
}

.ouija-trial-window {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border: 4px solid #f0d2a4;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 9px #ffd49aaa, inset 0 0 4px #ffd49a66;
}

.ouija-trial-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ouija-trial-status {
  padding: 12px;
  border: 1px solid #805b43;
  border-radius: 10px;
  background: #211713;
  color: #f0d6b2;
  text-align: center;
  font-size: 13px;
}

/* ASSISTANT COMMUN - TOUS LES MODES */
.global-assistant {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #68477f;
  border-radius: 14px;
  background: linear-gradient(145deg, #1c1425, #100d17);
  box-shadow: 0 0 20px #8d50b522;
}

.global-assistant-heading p {
  margin: 8px 0 0;
  color: #c9bbd5;
  font-size: 13px;
  line-height: 1.5;
}

.global-assistant-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.global-assistant-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 1px solid #654b78;
  border-radius: 10px;
  background: #100c16;
  color: #fff;
  font: inherit;
  resize: vertical;
}

.global-assistant-form textarea:focus {
  outline: none;
  border-color: #bd83e9;
  box-shadow: 0 0 12px #a45cdb44;
}

.global-assistant-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.global-assistant-controls button {
  flex: 1;
  min-width: 125px;
}

.global-microphone-button {
  padding: 12px;
  border: 1px solid #9369ad;
  border-radius: 9px;
  background: #291b35;
  color: #f2e6ff;
  font: inherit;
  font-weight: 600;
}

.global-microphone-button:disabled {
  opacity: 0.5;
}

.global-assistant-listening {
  margin: 0;
  color: #d6a8ff;
  text-align: center;
  font-size: 13px;
}

.global-assistant-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.global-assistant-entry {
  padding: 13px;
  border-left: 3px solid #9564b8;
  border-radius: 8px;
  background: #191221;
  overflow-wrap: anywhere;
}

.global-assistant-entry strong {
  color: #c9a7e8;
  font-size: 11px;
}

.global-assistant-entry p {
  margin: 6px 0 12px;
  color: #eee5f5;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.global-assistant-entry p:last-child {
  margin-bottom: 0;
}

/* ===== PENDULE VIRTUEL ===== */

.pendulum-module {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pendulum-intro p {
  color: #c9bbd5;
  font-size: 13px;
  line-height: 1.5;
}

.pendulum-stage {
  position: relative;
  height: 310px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid #554b79;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 48%, #51408055, transparent 48%),
    linear-gradient(160deg, #171329, #090b18 75%);
}

.pendulum-crystal-wrap {
  position: relative;
  width: 90px;
  height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  z-index: 2;
}

.pendulum-chain {
  width: 2px;
  height: 155px;
  background: linear-gradient(#e9e4ff, #8b83bd, #d9d4ff);
  box-shadow: 0 0 7px #bcb4ff;
}

.pendulum-chain span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 2px solid #dcd5ff;
  border-radius: 50%;
  background: #aaa0e7;
  box-shadow: 0 0 12px #a99bff;
}

.pendulum-crystal {
  position: relative;
  width: 33px;
  height: 50px;
  margin-top: -1px;
  clip-path: polygon(50% 0%, 88% 22%, 100% 65%, 50% 100%, 0% 65%, 12% 22%);
  background: linear-gradient(115deg, #ffffffcc, #8bdcff88 25%, #7d68db99 55%, #e7d8ffcc);
  filter: drop-shadow(0 0 14px #9c8bff);
  box-shadow: inset 0 0 20px #ffffff;
}

.pendulum-crystal::before {
  content: "";
  position: absolute;
  inset: 3px 4px;
  clip-path: polygon(50% 0%, 100% 60%, 50% 100%, 0% 60%);
  background: linear-gradient(135deg, #ffffffbb, #91dfff44 45%, #a88aff88);
}

.pendulum-crystal-glow {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px 8px #9ddfffaa, 0 0 35px 18px #9a72ff77;
}

.pendulum-shadow {
  position: absolute;
  top: 240px;
  width: 95px;
  height: 15px;
  border-radius: 50%;
  background: #8d78ff33;
  filter: blur(12px);
}

.pendulum-hint {
  position: absolute;
  bottom: 17px;
  color: #aaa2d0;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}

.pendulum-stage.is-running.answer-oui .pendulum-crystal-wrap {
  animation: pendulum-yes 6s ease-in-out;
}

.pendulum-stage.is-running.answer-non .pendulum-crystal-wrap {
  animation: pendulum-no 6s ease-in-out;
}

.pendulum-stage.is-running.answer-incertain .pendulum-crystal-wrap {
  animation: pendulum-uncertain 6s ease-in-out;
}

.pendulum-stage.is-running.answer-silence .pendulum-crystal {
  animation: pendulum-glow 6s ease-in-out;
}

@keyframes pendulum-yes {
  0%, 100% { transform: rotate(0deg); }
  25%, 75% { transform: rotate(28deg); }
  50% { transform: rotate(-28deg); }
}

@keyframes pendulum-no {
  0%, 100% { transform: rotate(0deg); }
  25%, 75% { transform: rotate(-28deg); }
  50% { transform: rotate(28deg); }
}

@keyframes pendulum-uncertain {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(12deg); }
  50% { transform: rotate(-9deg); }
  75% { transform: rotate(5deg); }
}

@keyframes pendulum-glow {
  50% { filter: brightness(1.8) drop-shadow(0 0 25px #c5b5ff); }
}

.pendulum-answer {
  padding: 15px;
  text-align: center;
  border: 1px solid #554b79;
  border-radius: 12px;
  background: #171329;
}

.pendulum-answer strong {
  display: block;
  margin-top: 9px;
  color: #d7c7ff;
  font-size: 24px;
  letter-spacing: 3px;
}

.pendulum-question-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pendulum-question-form label {
  color: #d2c4e6;
  font-size: 12px;
  font-weight: 700;
}

.pendulum-question-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 1px solid #65548c;
  border-radius: 10px;
  background: #100d1c;
  color: white;
  font: inherit;
  resize: vertical;
}

.pendulum-question-form textarea:focus {
  outline: none;
  border-color: #b7a2ff;
  box-shadow: 0 0 12px #9c83ff44;
}

.pendulum-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pendulum-history-entry {
  padding: 13px;
  border-left: 3px solid #9c83d9;
  border-radius: 8px;
  background: #191529;
  overflow-wrap: anywhere;
}

.pendulum-history-entry strong {
  color: #e0d5ff;
  font-size: 13px;
}

.pendulum-history-entry p {
  margin: 7px 0 0;
  color: #bda9ef;
  font-weight: 700;
}

.pendulum-history-entry small {
  margin-left: 8px;
  color: #968cae;
  font-weight: 400;
}



/* ===== PENDULE 3D CIRCULAIRE ===== */

.pendulum-stage {
  perspective: 850px;
  perspective-origin: 50% 25%;
}

.pendulum-crystal-wrap {
  transform-style: preserve-3d;
  animation: pendulum-orbit-360 5s linear infinite;
}

.pendulum-chain {
  transform-style: preserve-3d;
}

.pendulum-crystal {
  transform: translateZ(8px);
  backface-visibility: visible;
}

/* Mouvement circulaire permanent à 360 degrés */

@keyframes pendulum-orbit-360 {
  0% {
    transform: rotateX(12deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(0deg) rotateY(12deg);
  }
  50% {
    transform: rotateX(-12deg) rotateY(0deg);
  }
  75% {
    transform: rotateX(0deg) rotateY(-12deg);
  }
  100% {
    transform: rotateX(12deg) rotateY(0deg);
  }
}

/* Réponse : rotation circulaire plus ample */

.pendulum-stage.is-running.answer-oui .pendulum-crystal-wrap {
  animation: pendulum-response-clockwise 6s ease-in-out;
}

.pendulum-stage.is-running.answer-non .pendulum-crystal-wrap {
  animation: pendulum-response-counterclockwise 6s ease-in-out;
}

.pendulum-stage.is-running.answer-incertain .pendulum-crystal-wrap {
  animation: pendulum-response-uncertain 6s ease-in-out;
}

@keyframes pendulum-response-clockwise {
  0%, 100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(0deg) rotateY(28deg);
  }
  50% {
    transform: rotateX(-28deg) rotateY(0deg);
  }
  75% {
    transform: rotateX(0deg) rotateY(-28deg);
  }
}

@keyframes pendulum-response-counterclockwise {
  0%, 100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(0deg) rotateY(-28deg);
  }
  50% {
    transform: rotateX(28deg) rotateY(0deg);
  }
  75% {
    transform: rotateX(0deg) rotateY(28deg);
  }
}

@keyframes pendulum-response-uncertain {
  0%, 100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(15deg) rotateY(12deg);
  }
  50% {
    transform: rotateX(-12deg) rotateY(-15deg);
  }
  75% {
    transform: rotateX(10deg) rotateY(-8deg);
  }
}



/* ===== ORBITE CONIQUE 3D - 3 TOURS ===== */

/* Chaque animation effectue 3 orbites en 6 secondes */

.pendulum-stage.is-running.answer-oui .pendulum-crystal-wrap {
  animation: pendulum-orbit-forward 2s linear 3;
}

.pendulum-stage.is-running.answer-non .pendulum-crystal-wrap {
  animation: pendulum-orbit-backward 2s linear 3;
}

.pendulum-stage.is-running.answer-incertain .pendulum-crystal-wrap {
  animation: pendulum-orbit-uncertain 2s ease-in-out 3;
}

.pendulum-stage.is-running.answer-silence .pendulum-crystal-wrap {
  animation: pendulum-orbit-gentle 2s ease-in-out 3;
}

@keyframes pendulum-orbit-forward {
  0% {
    transform: rotateX(0deg) rotateY(30deg);
  }
  25% {
    transform: rotateX(30deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(0deg) rotateY(-30deg);
  }
  75% {
    transform: rotateX(-30deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(30deg);
  }
}

@keyframes pendulum-orbit-backward {
  0% {
    transform: rotateX(0deg) rotateY(-30deg);
  }
  25% {
    transform: rotateX(-30deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(0deg) rotateY(30deg);
  }
  75% {
    transform: rotateX(30deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(-30deg);
  }
}

@keyframes pendulum-orbit-uncertain {
  0% {
    transform: rotateX(0deg) rotateY(24deg);
  }
  25% {
    transform: rotateX(20deg) rotateY(5deg);
  }
  50% {
    transform: rotateX(-5deg) rotateY(-24deg);
  }
  75% {
    transform: rotateX(-20deg) rotateY(-5deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(24deg);
  }
}

@keyframes pendulum-orbit-gentle {
  0% {
    transform: rotateX(0deg) rotateY(18deg);
  }
  25% {
    transform: rotateX(18deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(0deg) rotateY(-18deg);
  }
  75% {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(18deg);
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-access {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.account-email {
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bda7d0;
  font-size: 10px;
}

.account-trigger {
  border: 1px solid #8050a5;
  border-radius: 9px;
  padding: 8px 10px;
  background: #281936;
  color: #e3caff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.account-trigger:active {
  background: #49305e;
}

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #08050dcc;
  backdrop-filter: blur(8px);
}

.account-modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 22px 22px;
  border: 1px solid #69438a;
  border-radius: 19px;
  background: linear-gradient(160deg, #21152d, #100c17 75%);
  box-shadow: 0 15px 60px #000b, 0 0 30px #853dbb22;
  color: #f3eaff;
}

.account-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #cbb4df;
  font-size: 27px;
  cursor: pointer;
}

.account-eyebrow {
  margin: 0 0 8px;
  color: #b77aff;
  font-size: 10px;
  letter-spacing: 3px;
  text-align: center;
}

.account-modal h2 {
  margin: 0 0 24px;
  color: #f0ddff;
  font-size: 19px;
  letter-spacing: 2px;
  text-align: center;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-form label {
  margin-top: 5px;
  color: #c9b5d8;
  font-size: 12px;
}

.account-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 1px solid #49345f;
  border-radius: 9px;
  outline: none;
  background: #100b17;
  color: white;
  font-size: 14px;
}

.account-form input:focus {
  border-color: #a56aff;
  box-shadow: 0 0 0 2px #a56aff22;
}

.account-submit {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #8138bf, #a85aff);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.account-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 17px;
}

.account-links button {
  border: 0;
  background: transparent;
  color: #c59be9;
  font-size: 11px;
  cursor: pointer;
}

.account-message,
.account-error {
  margin: 16px 0 0;
  padding: 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-message {
  border: 1px solid #397b61;
  background: #173a2b66;
  color: #a9edc9;
}

.account-error {
  border: 1px solid #934c65;
  background: #491d3066;
  color: #ffb6c8;
}

.account-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.account-profile p {
  margin: 0;
  color: #bda9ce;
  font-size: 12px;
}

.account-profile strong {
  overflow-wrap: anywhere;
  color: #ead7ff;
  font-size: 14px;
}

.account-note {
  margin: 22px 0 0;
  color: #95869f;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 380px) {
  .account-email {
    max-width: 85px;
  }

  .account-trigger {
    padding: 8px 7px;
    font-size: 9px;
  }

  .topbar-actions {
    gap: 6px;
  }
}

.account-subscription {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
  padding: 14px;
  border: 1px solid #49345f;
  border-radius: 11px;
  background: #100b17;
}

.account-subscription p {
  margin: 0;
  color: #bda9ce;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.account-subscription span {
  color: #c9b5d8;
  font-size: 11px;
}

.account-subscription .account-plan-premium {
  color: #d7a4ff;
  font-size: 14px;
}

.account-subscription .account-plan-free {
  color: #bda9ce;
  font-size: 14px;
}

.account-subscription .account-plan-error {
  color: #ffb6c8;
}

.account-subscription {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
  padding: 14px;
  border: 1px solid #49345f;
  border-radius: 11px;
  background: #100b17;
}

.account-subscription p {
  margin: 0;
  color: #bda9ce;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.account-subscription span {
  color: #c9b5d8;
  font-size: 11px;
}

.account-subscription .account-plan-premium {
  color: #d7a4ff;
  font-size: 14px;
}

.account-subscription .account-plan-free {
  color: #bda9ce;
  font-size: 14px;
}

.account-subscription .account-plan-error {
  color: #ffb6c8;
}

.account-premium-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.account-premium-title {
  margin: 0;
  color: #d7a4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
}

.account-premium-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #49345f;
  border-radius: 10px;
  background: #100b17;
}

.account-premium-option div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.account-premium-option strong {
  color: #ead7ff;
  font-size: 12px;
}

.account-premium-option span {
  color: #c9b5d8;
  font-size: 11px;
}

.account-premium-option button {
  flex-shrink: 0;
  padding: 9px 11px;
  border: 1px solid #9860c2;
  border-radius: 8px;
  background: #39204f;
  color: #f0ddff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.account-premium-option button:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* Tableaux de bord partenaires SPIRITWAVE */
.account-dashboard-loading,
.account-partner-dashboard,
.account-admin-dashboard {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid #59406e;
  border-radius: 12px;
  background: #100b17;
  text-align: left;
}

.account-dashboard-loading,
.account-dashboard-detail,
.account-dashboard-empty {
  color: #bda9ce;
  font-size: 11px;
  line-height: 1.5;
}

.account-dashboard-eyebrow {
  margin: 0 0 6px;
  color: #bd83ef !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 2px;
}

.account-partner-dashboard h3,
.account-admin-dashboard h3 {
  margin: 0 0 14px;
  color: #f0ddff;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-align: center;
}

.account-partner-dashboard h4,
.account-admin-dashboard h4 {
  margin: 17px 0 9px;
  color: #d7a4ff;
  font-size: 10px;
  letter-spacing: 1.3px;
}

.account-dashboard-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #49345f;
  border-radius: 9px;
  background: #1b1225;
}

.account-dashboard-code span,
.account-dashboard-grid span,
.account-dashboard-sale span,
.account-admin-partner span {
  color: #bda9ce;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.account-dashboard-code strong {
  color: #e5c4ff;
  font-size: 17px;
  letter-spacing: 1px;
}

.account-dashboard-code button {
  padding: 8px 12px;
  border: 1px solid #8050a5;
  border-radius: 7px;
  background: #39204f;
  color: #f0ddff;
  font-size: 10px;
  font-weight: 800;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.account-dashboard-grid div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid #49345f;
  border-radius: 8px;
  background: #1b1225;
}

.account-dashboard-grid strong {
  color: #ead7ff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-dashboard-detail {
  margin: 10px 0;
}

.account-dashboard-sales {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-dashboard-sale,
.account-admin-partner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid #382847;
  border-radius: 8px;
  background: #17101f;
}

.account-dashboard-sale strong,
.account-admin-partner strong {
  color: #ead7ff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-dashboard-empty {
  text-align: center;
}
