/* Telefonul demo de pe site: aplicația La Zi, doar de privit și de atins (fără date noi). */

.demo-wrap { justify-self: center; width: 360px; max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); display: grid; gap: 12px; }
.demo-note { font-size: 13.5px; color: var(--ink2); text-align: center; }

.demo {
  min-width: 0;
  overflow: hidden;
  width: 100%;
  height: 730px;
  border-radius: 46px;
  background: #12141f;
  padding: 10px;
  box-shadow: 0 40px 80px -36px rgba(18, 20, 31, 0.55);
}
.demo .phone { box-shadow: none; border-radius: 36px; height: 100%; overflow: hidden; }

.d-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--screen);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  user-select: none;
}
:where(.d-screen button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.d-status { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 13px; font-weight: 700; }
.d-status .cam { width: 10px; height: 10px; border-radius: 50%; background: #12141f; }
.d-scroll { flex: 1; overflow-y: auto; padding: 2px 14px 96px; scrollbar-width: none; }
.d-scroll::-webkit-scrollbar { display: none; }

.d-h1 { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 27px; letter-spacing: -0.03em; line-height: 1.05; }
.d-sub { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.d-head { display: flex; align-items: center; gap: 10px; padding: 8px 2px 4px; }
.d-head > div { flex: 1; }
.d-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 8px; }
.d-sec b { font-family: "Bricolage", sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.d-sec span { color: var(--ink2); font-size: 12px; }

.d-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.d-overview { padding: 12px 14px; margin-top: 10px; width: 100%; display: block; }
.d-overview .lbl { display: flex; justify-content: space-between; color: var(--ink2); font-size: 12px; font-weight: 500; }
.d-nums { display: grid; grid-template-columns: 1fr 1fr 1.3fr; margin-top: 6px; }
.d-nums b { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; display: block; line-height: 1.1; }
.d-nums span { font-size: 11.5px; color: var(--ink2); }
.d-line { position: relative; height: 22px; margin-top: 8px; }
.d-line::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); border-radius: 2px; }
.d-line i { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--surface); }

.d-ask { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink2); }
.d-ask .ic { width: 28px; height: 28px; border-radius: 10px; background: var(--bills); display: grid; place-items: center; flex: none; }

.d-chips { display: flex; gap: 7px; overflow-x: auto; margin: 12px -14px 0; padding: 0 14px 2px; scrollbar-width: none; }
.d-chips::-webkit-scrollbar { display: none; }
.d-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--screen); font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-chip i { width: 7px; height: 7px; border-radius: 50%; }
.d-chip.on { background: var(--ink); color: var(--screen); border-color: var(--ink); }

.d-hero { margin-top: 12px; border-radius: 28px; color: #fff; padding: 16px; position: relative; overflow: hidden; }
.d-hero .wm { position: absolute; right: -18px; bottom: -22px; opacity: 0.14; }
.d-pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 5px 10px; }
.d-big { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 76px; line-height: 0.95; letter-spacing: -0.05em; margin-top: 6px; }
.d-big small { font-family: "DM Sans", sans-serif; font-size: 16px; letter-spacing: 0; font-weight: 700; margin-left: 6px; }
.d-hero .t { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-top: 4px; }
.d-hero .s { font-size: 12.5px; opacity: 0.92; }
.d-hero .dt { font-size: 12.5px; font-weight: 700; }
.d-btns { display: flex; gap: 8px; margin-top: 14px; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 13px; font-weight: 700; font-size: 13.5px; }
.d-btn.w { background: #fff; }
.d-btn.g { background: rgba(255, 255, 255, 0.2); color: #fff !important; }

.d-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-tile { border-radius: 22px; color: #fff; padding: 12px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.d-tile .d-top { display: flex; justify-content: space-between; align-items: flex-start; }
.d-glass { width: 32px; height: 32px; border-radius: 11px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; }
.d-cnt { text-align: right; line-height: 1; }
.d-cnt b { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.04em; display: block; }
.d-cnt span { font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.d-tile .t { font-weight: 700; font-size: 14px; line-height: 1.2; }
.d-tile .s { font-size: 11.5px; opacity: 0.88; margin-top: 2px; }

.d-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; margin-bottom: 7px; }
.d-sq { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.d-row .mid { flex: 1; min-width: 0; }
.d-row .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row .s { font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row .end { text-align: right; line-height: 1; }
.d-row .end b { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 19px; display: block; }
.d-row .end span { font-size: 10.5px; color: var(--ink2); }

.d-asset { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; margin-bottom: 8px; border-radius: 22px; }
.d-asset .d-sq { width: 50px; height: 50px; border-radius: 17px; }
.d-asset .nx { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; margin-top: 3px; }
.d-asset .nx i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.d-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px 8px; z-index: 2; }
.d-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--ink2) !important; text-align: center; }
.d-nav .pillic { width: 52px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.d-nav button.on { color: var(--ink) !important; font-weight: 700; }
.d-nav button.on .pillic { background: var(--ink); color: var(--screen); }
.d-fab { position: absolute; right: 14px; bottom: 82px; width: 52px; height: 52px; border-radius: 17px; background: var(--ink) !important; color: var(--screen) !important; display: grid; place-items: center; z-index: 2; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4); }

.d-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 18, 0.5); z-index: 5; display: flex; align-items: flex-end; }
.d-sheet { width: 100%; max-height: 90%; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; scrollbar-width: none; }
.d-sheet::-webkit-scrollbar { display: none; }
.d-sheet .hd { color: #fff; padding: 10px 16px 16px; position: relative; overflow: hidden; }
.d-sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); margin: 0 auto 8px; }
.d-sheet .bar { display: flex; justify-content: space-between; align-items: center; }
.d-sheet .x { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; color: #fff !important; }
.d-sheet .t { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 26px; margin-top: 10px; letter-spacing: -0.02em; }
.d-sheet .bd { padding: 4px 16px 16px; }
.d-field { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.d-field span:first-child { color: var(--ink2); font-weight: 500; }
.d-field.col { display: block; }
.d-field.col .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.d-mini { padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.d-mini.on { color: #fff; border-color: transparent; }
.d-hist { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.d-primary { width: 100%; text-align: center !important; color: #fff !important; font-weight: 700; padding: 13px; border-radius: 16px; margin-top: 14px; display: flex; justify-content: center; gap: 8px; }

.d-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--screen); font-size: 12.5px; padding: 10px 14px; border-radius: 14px; width: max-content; max-width: 86%; z-index: 9; text-align: center; animation: d-in 0.2s ease-out; }
@keyframes d-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Statistici */
.d-month { border-radius: 26px; color: #fff; padding: 16px; margin-top: 10px; }
.d-month .amt { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -0.04em; margin-top: 8px; line-height: 1; }
.d-month .amt small { font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.d-prog { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); margin-top: 12px; overflow: hidden; }
.d-prog i { display: block; height: 100%; background: #fff; border-radius: 999px; }
.d-card { padding: 14px; margin-top: 10px; }
.d-card .ttl { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 16px; }
.d-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-top: 12px; }
.d-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 10.5px; color: var(--ink2); }
.d-bars div i { width: 100%; border-radius: 7px 7px 3px 3px; display: block; }
.d-catrow { margin-top: 10px; font-size: 12.5px; }
.d-catrow .l { display: flex; justify-content: space-between; }
.d-catrow .b { height: 7px; border-radius: 999px; background: var(--line); margin-top: 4px; overflow: hidden; }
.d-catrow .b i { display: block; height: 100%; border-radius: 999px; }

/* Setări */
.d-set { padding: 14px; margin-top: 10px; }
.d-set .ttl { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 16px; }
.d-set p { color: var(--ink2); font-size: 12.5px; margin: 4px 0 8px; }
.d-set .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-plus { border-radius: 24px; background: var(--ink); color: var(--screen); padding: 16px; margin-top: 10px; }
.d-plus .ttl { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 18px; margin-top: 8px; }
.d-plus p { font-size: 12.5px; opacity: 0.8; margin-top: 4px; }

/* Asistent */
.d-chat { position: absolute; inset: 0; background: var(--screen); z-index: 4; display: flex; flex-direction: column; }
.d-chat .bar { display: flex; align-items: center; gap: 10px; padding: 4px 14px 8px; }
.d-chat .back { width: 36px; height: 36px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.d-chat .log { flex: 1; overflow-y: auto; padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: none; }
.d-chat .log::-webkit-scrollbar { display: none; }
.d-me { align-self: flex-end; max-width: 84%; background: var(--ink); color: var(--screen); border-radius: 18px 18px 6px 18px; padding: 9px 12px; font-size: 13.5px; }
.d-bot { max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; padding: 9px 12px; font-size: 13.5px; }
.d-act { border-radius: 20px; padding: 12px; color: #fff; margin-left: 18px; font-size: 13px; }
.d-act b { display: block; font-size: 14px; }
.d-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.d-sugg button { padding: 8px 12px; border-radius: 999px; background: var(--surface) !important; border: 1px solid var(--line) !important; font-size: 12.5px; font-weight: 500; }
.d-input { margin: 0 12px 12px; padding: 12px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font-size: 12.5px; }
.d-typing { display: flex; gap: 4px; padding: 12px; width: max-content; }
.d-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink2); opacity: 0.4; animation: d-blink 1s infinite; }
.d-typing i:nth-child(2) { animation-delay: 0.2s; }
.d-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes d-blink { 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .d-toast, .d-typing i { animation: none; }
}

/* Rândul de jos din asistent: câmpul și microfonul */
.d-inrow { display: flex; gap: 8px; align-items: center; margin: 0 12px 12px; }
.d-inrow .d-input { margin: 0; flex: 1; }
.d-micbtn { width: 46px; height: 46px; border-radius: 50%; background: var(--ink) !important; color: var(--screen) !important; display: grid !important; place-items: center; flex: none; }
