/* MILLAVAT shared UI — brand tokens + small components used on every page */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --black: #11110f; --cream: #f4f0e8; --orange: #ff6238; --grey: #aaa69d; --sand: #e8e3d9;
  --muted: #6b675f; --line: #11110f26; --error: #c2260c; --ok: #14804a;
  --radius: 6px; --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.mv-body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; background: var(--sand); color: var(--black); line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
.mv-body a { color: inherit; }
.mv-body button, .mv-body input, .mv-body textarea, .mv-body select { font: inherit; }
.mv-body button { cursor: pointer; touch-action: manipulation; }
.mv-body :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--black); }

/* ---------- header ---------- */
.mvh { position: sticky; top: 0; z-index: 30; background: rgba(17, 17, 15, .96); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mvh-in { max-width: 1160px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mvh .brand { display: inline-flex; align-items: center; gap: 7px; font-family: Oswald, sans-serif; font-size: 30px; letter-spacing: 3px; line-height: 1.25; text-decoration: none; color: #fff; }
.logo-img{height:46px;width:auto;display:block;flex:none}
.logo-word{font:inherit;letter-spacing:inherit;line-height:1;color:inherit}
.brand-dot { color: var(--orange); }
.brand-name { display: inline-grid; vertical-align: baseline; }
.brand-name > span { grid-area: 1 / 1; animation: brand-language 6s infinite; }
.brand-name > span:last-child { animation-delay: -3s; }
@keyframes brand-language { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
.mvh nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mvh nav a { border: 1px solid rgba(255, 255, 255, .25); padding: 9px 15px; border-radius: 30px; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; text-decoration: none; text-transform: uppercase; color: #e5e1d8; transition: border-color .2s, background .2s; }
.mvh nav a:hover, .mvh nav a[aria-current="page"] { border-color: var(--orange); background: rgba(255, 98, 56, .1); color: #fff; }

/* ---------- layout ---------- */
.mv-wrap { max-width: 1160px; margin: auto; padding: 28px 24px 64px; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.mv-h1 { font-family: Oswald, sans-serif; font-weight: 700; text-transform: uppercase; margin: 8px 0 6px; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -1px; }
.mv-h2 { font-family: Oswald, sans-serif; font-weight: 600; text-transform: uppercase; margin: 0 0 16px; font-size: 22px; letter-spacing: .5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.panel { background: var(--cream); border: 1px solid #11110f10; border-radius: var(--radius); box-shadow: 0 5px 18px #11110f0a; padding: 24px; }
.panel.dark { background: var(--black); color: #fff; border-color: transparent; }

/* ---------- buttons / fields ---------- */
.btn { border: 1px solid var(--black); border-radius: 3px; padding: 13px 20px; min-height: 46px; font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--black); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .25s, color .25s, border-color .25s, transform .2s; }
@media (hover: hover) { .btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--black); } }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--black); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--black); }
.btn.sm { min-height: 38px; padding: 9px 14px; font-size: 11px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.in { width: 100%; min-height: 46px; padding: 11px 12px; font-size: 16px; color: var(--black); background: #fbf9f4; border: 1px solid #11110f40; border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.in:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #ff623833; }

/* ---------- chips / live dot / toast ---------- */
.mv-chip { display: inline-block; padding: 4px 10px; border-radius: 30px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ok); }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #14804a66; animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px #14804a00; } 100% { box-shadow: 0 0 0 0 #14804a00; } }
.mv-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 999; max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 4px; background: var(--black); color: #fff; font-size: 13px; font-weight: 700; border-left: 4px solid var(--orange); box-shadow: 0 12px 40px #0006; transition: opacity .25s, transform .35s var(--ease); }
.mv-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mv-toast[data-kind="error"] { border-left-color: #ff5a43; background: #3a0f08; }
.mv-toast[data-kind="ok"] { border-left-color: #2fd07a; }

@media (max-width: 600px) {
  .mvh-in { padding: 12px 16px; }
  .mvh .brand { font-size: 26px; }
  .logo-img{height:38px}
  .mvh nav a { padding: 8px 11px; font-size: 10px; letter-spacing: 1px; }
  .mv-wrap { padding: 20px 16px 48px; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .brand-name { display: inline-flex; gap: .3em; } .brand-name > span { opacity: 1; }
}
