:root {
  --bg: #03070c;
  --panel: rgba(9, 18, 29, .88);
  --panel2: rgba(13, 26, 41, .88);
  --border: rgba(120, 180, 230, .13);
  --blue: #25a9ff;
  --blue2: #087eea;
  --text: #f4f8fc;
  --muted: #7f94a8;
  --green: #34d399;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 70% 10%, rgba(0, 112, 220, .09), transparent 30%),
    linear-gradient(135deg, #02060a, #06101a);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 245px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 25px 17px;
  background: rgba(3, 9, 15, .94);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px 30px;
}

.brand-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid #39b9ff;
  box-shadow:
    0 0 18px rgba(37, 169, 255, .5),
    inset 0 0 15px rgba(37, 169, 255, .25);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 5px;
}

.brand span {
  color: var(--muted);
  font-size: 10px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #8093a5;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  transition: .2s;
}

.nav-item span {
  width: 20px;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: linear-gradient(
    90deg,
    rgba(20, 126, 220, .23),
    rgba(20, 126, 220, .05)
  );
}

.nav-item.active {
  box-shadow: inset 2px 0 var(--blue);
}

.sidebar-bottom {
  margin-top: auto;
}

.system-status {
  font-size: 11px;
  color: var(--muted);
  padding: 20px 14px 5px;
}

.system-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  box-shadow: 0 0 10px var(--green);
}

/* MAIN */

.main {
  width: calc(100% - 245px);
  margin-left: 245px;
  padding: 24px 30px 115px;
}

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

.topbar p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

#clock {
  font-size: 18px;
  font-weight: 500;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: white;
}

.avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1975bc, #15304c);
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin-top: 15px;
  padding: 45px 50px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 50%, rgba(17, 139, 232, .27), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(26, 86, 139, .18), transparent 30%),
    linear-gradient(110deg, #07111c, #081b2b 60%, #07131e);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .25);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.label {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero h2 {
  margin: 10px 0;
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.05;
  font-weight: 400;
}

.hero p {
  max-width: 500px;
  color: #8ca1b5;
  line-height: 1.6;
  font-size: 14px;
}

.primary-btn {
  margin-top: 13px;
  padding: 12px 20px;
  color: white;
  border: 1px solid rgba(66, 181, 255, .5);
  border-radius: 10px;
  background: linear-gradient(135deg, #087bd2, #0d9af4);
  box-shadow: 0 8px 25px rgba(0, 133, 230, .2);
}

.hero-orb {
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
}

.orb-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 190, 255, .65);
  box-shadow:
    0 0 35px rgba(0, 157, 255, .35),
    0 0 90px rgba(0, 120, 255, .18),
    inset 0 0 40px rgba(0, 157, 255, .12);
  animation: breathe 3s ease-in-out infinite;
}

.orb-core {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 200;
  background: radial-gradient(circle, #178ed0, #07375c 60%, #061522);
  box-shadow: 0 0 30px #0789e2;
}

@keyframes breathe {
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 50px rgba(0, 157, 255, .55),
      0 0 110px rgba(0, 120, 255, .25),
      inset 0 0 50px rgba(0, 157, 255, .18);
  }
}

/* DASHBOARD */

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 16px;
}

.card {
  min-height: 220px;
  padding: 21px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(11, 22, 34, .94), rgba(6, 14, 23, .94));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

.card h3 {
  margin: 5px 0 15px;
  font-size: 18px;
  font-weight: 500;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-head button,
.open-business {
  border: 0;
  background: transparent;
  color: var(--blue);
}

/* AGENDA */

.agenda-list {
  margin-top: 15px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 50px 2px 1fr;
  gap: 13px;
  align-items: center;
  padding: 11px 0;
}

.time {
  color: #93a6b7;
  font-size: 12px;
}

.agenda-line {
  height: 42px;
  background: var(--blue);
  border-radius: 5px;
}

.agenda-item strong {
  display: block;
  font-size: 13px;
}

.agenda-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* ASSISTANT */

.assistant-card {
  text-align: center;
}

.assistant-card .label {
  display: block;
  text-align: left;
}

.assistant-orb {
  width: 82px;
  height: 82px;
  margin: 7px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  box-shadow: 0 0 25px rgba(37, 169, 255, .3);
}

.assistant-orb div {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #168bcf, #06243d);
}

.assistant-card h3 {
  margin-bottom: 5px;
}

.assistant-card p {
  color: var(--muted);
  font-size: 11px;
}

.voice-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(54, 180, 255, .4);
  border-radius: 50%;
  background: rgba(12, 113, 181, .2);
  color: white;
}

/* TASKS */

#taskList {
  margin-top: 8px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 12px;
}

.task input {
  accent-color: var(--blue);
}

/* BUSINESS */

.business-card p {
  color: var(--muted);
  font-size: 12px;
}

.vm-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 116, 188, .16), transparent 40%),
    linear-gradient(145deg, #0a1621, #071019);
}

.ferme-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 111, 87, .13), transparent 40%),
    linear-gradient(145deg, #0a161a, #071019);
}

.stats {
  display: flex;
  gap: 28px;
  margin: 28px 0 20px;
}

.stats strong {
  display: block;
  font-size: 21px;
  font-weight: 400;
}

.stats span {
  color: var(--muted);
  font-size: 10px;
}

/* MESSAGES */

.empty-state {
  height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-state > span {
  font-size: 24px;
  margin-bottom: 10px;
}

.empty-state strong {
  color: #bac7d2;
  font-size: 12px;
}

.empty-state p {
  font-size: 10px;
}

/* COMMAND BAR */

.command-bar {
  position: fixed;
  z-index: 50;
  bottom: 20px;
  left: calc(245px + 7%);
  right: 7%;
  height: 62px;
  padding: 7px;
  display: flex;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(74, 168, 230, .22);
  background: rgba(7, 15, 24, .92);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 60px rgba(0,0,0,.5);
}

.command-bar input {
  flex: 1;
  border: 0;
  outline: none;
  color: white;
  background: transparent;
  padding: 0 10px;
}

.command-bar input::placeholder {
  color: #65788a;
}

.command-bar button {
  width: 47px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: rgba(17, 102, 165, .25);
}

#sendCommand {
  background: linear-gradient(135deg, #087ed6, #16a8ff);
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(420px, 90%);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #09131e;
}

.modal-box h3 {
  margin-top: 0;
}

.modal-box input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #050c13;
  color: white;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 17px;
}

.modal-actions button {
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: white;
}

.modal-actions .primary-btn {
  margin: 0;
  background: #087ed6;
}

/* MOBILE */

@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agenda-card {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {

  .sidebar {
    width: 100%;
    height: 65px;
    inset: auto 0 0 0;
    padding: 7px 10px;
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .brand,
  .sidebar-bottom {
    display: none;
  }

  .sidebar nav {
    height: 100%;
    flex-direction: row;
    justify-content: space-around;
  }

  .nav-item {
    width: auto;
    padding: 8px;
    font-size: 0;
    display: grid;
    place-items: center;
  }

  .nav-item span {
    font-size: 20px;
  }

  .nav-item:nth-child(n+6) {
    display: none;
  }

  .main {
    width: 100%;
    margin-left: 0;
    padding: 15px 15px 155px;
  }

  .topbar {
    height: 60px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .hero {
    min-height: 360px;
    padding: 30px 25px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-content {
    max-width: 75%;
  }

  .hero-orb {
    right: -40px;
    bottom: -50px;
    top: auto;
    transform: none;
  }

  .orb-ring {
    width: 150px;
    height: 150px;
  }

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

  .agenda-card {
    grid-column: auto;
  }

  .command-bar {
    left: 15px;
    right: 15px;
    bottom: 78px;
  }

  .stats {
    justify-content: space-between;
  }
}


/* ================================
   PAGE AGENDA NOVA
================================ */

.nova-page {
  padding-bottom: 120px;
}

.page-heading {
  margin: 25px 0 28px;
}

.page-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
}

.page-heading p {
  color: #7f94a8;
}

.agenda-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.agenda-tab {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: #8fa3b7;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.agenda-tab.active {
  background: rgba(255,255,255,.12);
  color: white;
}

.agenda-full-card {
  min-height: 350px;
}

.agenda-page-status {
  color: #7f94a8;
  margin-bottom: 20px;
}

.agenda-day-heading {
  margin: 24px 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
  color: #8fa3b7;
}

.agenda-full-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.agenda-full-time {
  font-weight: 800;
  color: #a8bbcd;
}

.agenda-full-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agenda-full-content strong {
  font-size: 16px;
}

.agenda-full-content span {
  color: #7f94a8;
  font-size: 13px;
}

.agenda-source {
  width: fit-content;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 5px 8px;
  border-radius: 999px;
}

.source-vm {
  background: rgba(72,130,255,.14);
}

.source-ferme {
  background: rgba(207,169,99,.14);
}

@media (max-width: 700px) {
  .agenda-full-item {
    grid-template-columns: 65px 1fr;
    gap: 10px;
  }

  .agenda-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .agenda-tab {
    white-space: nowrap;
  }
}


/* =========================================================
   PAGE VM RENOV
========================================================= */

.vm-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.vm-sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fa3b7;
  font-size: 12px;
  margin-top: 12px;
}

.vm-sync-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62d69f;
  box-shadow: 0 0 12px rgba(98,214,159,.5);
}


.vm-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.vm-summary-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-summary-card > span {
  color: #7f94a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.vm-summary-card > strong {
  font-size: 38px;
  line-height: 1;
}

.vm-summary-card small {
  color: #7f94a8;
}


.vm-detail-card {
  min-height: 390px;
}

.vm-detail-list {
  margin-top: 15px;
}

.vm-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.vm-detail-item:last-child {
  border-bottom: 0;
}

.vm-detail-main {
  min-width: 0;
}

.vm-detail-main strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.vm-detail-main p {
  margin: 0 0 5px;
  color: #a6b6c5;
  font-size: 13px;
}

.vm-detail-main span {
  color: #71869a;
  font-size: 12px;
}

.vm-detail-right {
  text-align: right;
  white-space: nowrap;
}

.vm-amount {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 7px;
}

.vm-status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255,255,255,.07);
  color: #aebdca;
}

.vm-status-signed {
  background: rgba(98,214,159,.12);
  color: #83e0b7;
}

.vm-status-draft {
  background: rgba(255,190,90,.10);
  color: #e9bc74;
}

.vm-status-sent {
  background: rgba(72,130,255,.13);
  color: #8eafff;
}


@media (max-width: 800px) {

  .vm-summary {
    grid-template-columns: 1fr;
  }

  .vm-page-heading {
    flex-direction: column;
  }

  .vm-detail-item {
    grid-template-columns: 1fr;
  }

  .vm-detail-right {
    text-align: left;
  }

}


/* =========================================================
   AUTHENTIFICATION NOVA
========================================================= */

.nova-login {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(64,110,255,.13), transparent 35%),
    #071019;
}

.nova-login-panel {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(13,25,37,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.nova-login-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 45px;
}

.nova-login-logo > div:last-child {
  display: flex;
  flex-direction: column;
}

.nova-login-logo strong {
  font-size: 18px;
  letter-spacing: .12em;
}

.nova-login-logo span {
  margin-top: 2px;
  color: #70869a;
  font-size: 11px;
}

.nova-login-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(106,147,255,.45);
  border-radius: 50%;
  background: rgba(72,112,255,.12);
  box-shadow: 0 0 25px rgba(65,105,255,.16);
  color: #a9c1ff;
  font-weight: 800;
}

.nova-login-content h1 {
  margin: 8px 0 7px;
  font-size: 32px;
}

.nova-login-content > p {
  margin: 0 0 30px;
  color: #8195a7;
}

.nova-login-content label {
  display: block;
  margin-bottom: 8px;
  color: #9aabba;
  font-size: 12px;
  font-weight: 700;
}

.nova-password-field {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.nova-password-field:focus-within {
  border-color: rgba(93,133,255,.7);
  box-shadow: 0 0 0 3px rgba(93,133,255,.08);
}

.nova-password-field input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.nova-password-field button {
  width: 50px;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: #8296a8;
  cursor: pointer;
}

.nova-login-error {
  min-height: 20px;
  margin: 9px 0;
  color: #ff8c8c;
  font-size: 12px;
}

.nova-login-button {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: #f2f5f8;
  color: #0a131c;
  font-weight: 800;
  cursor: pointer;
}

.nova-login-button:disabled {
  opacity: .55;
  cursor: wait;
}

.nova-login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  color: #607589;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nova-login-security span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62d69f;
}


@media (max-width: 600px) {
  .nova-login {
    padding: 15px;
  }

  .nova-login-panel {
    padding: 28px 22px;
  }
}
