/* Euro Import Hub — dark brushed stainless, bright green lettering */
:root {
  --bg: #0a0a0b;
  --panel: #141517;
  --panel2: #1b1d20;
  --line: #2c2f33;
  --text: #3dff73;          /* bright green main lettering */
  --ink: #e8f5e9;           /* near-white for body copy where green is too much */
  --dim: #7dc98f;           /* softer green secondary text */
  --faint: #6b7a6e;
  --silver: linear-gradient(180deg, #e6e9ec, #b9bfc6 45%, #8f969e);
  --danger: #ff5f56;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.008) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #101112, var(--bg) 240px);
  min-height: 100vh;
}
h1, h2, h3 { color: var(--text); letter-spacing: .4px; margin: .4em 0 .5em; }
h2 { font-size: 1.45rem; }
a { color: var(--text); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.price { color: var(--text); font-weight: 700; }

.wrap { max-width: 980px; margin: 0 auto; padding: 14px 14px 60px; }

/* header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: linear-gradient(180deg, #1e2023, #121315);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.brand span { color: var(--text); font-weight: 800; letter-spacing: 1.2px; font-size: .95rem; }
.who { display: flex; align-items: center; gap: 8px; }
.who-name { color: var(--text); font-weight: 700; }
.who-role { color: #101312; background: var(--silver); border-radius: 20px; padding: 1px 9px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.mainnav {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
  background: #0e0f10; border-bottom: 1px solid var(--line);
  position: sticky; top: 61px; z-index: 19;
}
.mainnav a {
  white-space: nowrap; text-decoration: none; color: var(--dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 7px 13px; font-size: .9rem;
  background: var(--panel2);
}
.mainnav a:active { border-color: var(--text); color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--silver); color: #14161a; border: 1px solid #6f767e;
  border-radius: 11px; padding: 9px 16px; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none; min-height: 42px;
}
.btn.primary { background: linear-gradient(180deg, #57ff8a, #22c550); border-color: #17a03c; color: #06130a; }
.btn.ghost { background: transparent; color: var(--dim); border-color: var(--line); }
.btn.danger { background: #3a1715; color: #ff8a80; border-color: #6e2a25; }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: .85rem; border-radius: 9px; }
.btn.big { min-height: 54px; font-size: 1.08rem; width: 100%; }
.btn.block { width: 100%; margin: 10px 0; }
.btn:disabled { opacity: .45; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.btnrow form { display: inline; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 13px; }
label { display: block; color: var(--dim); font-size: .9rem; font-weight: 600; }
input, select, textarea {
  width: 100%; margin-top: 5px; padding: 12px; font-size: 1rem; color: var(--ink);
  background: #0d0e0f; border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--text); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.textarea-wrap { position: relative; }
.textarea-wrap .mic { position: absolute; right: 8px; bottom: 8px; }
.flash {
  background: #12291a; border: 1px solid #1f6b35; color: var(--text);
  border-radius: 10px; padding: 10px 14px; margin: 10px 0;
}

/* panels / stats */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.panel h3 { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat-num { display: block; color: var(--text); font-size: 1.5rem; font-weight: 800; }
.stat-label { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 5px 0; }

/* rows & cards */
.rowlink { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); }
.rowlink:last-child { border-bottom: 0; }
.rowmain { display: flex; flex-direction: column; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: none; }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar input { flex: 1 1 200px; width: auto; margin-top: 0; }
.searchbar select { width: auto; margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-photo { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--panel2); }
.card-photo.empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--faint); }
.card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.card-name { color: var(--text); font-weight: 700; text-decoration: none; line-height: 1.25; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stepper { display: inline; }
.qty { color: var(--ink); font-weight: 700; font-size: .9rem; }

/* detail */
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.gallery img { height: 190px; border-radius: 12px; border: 1px solid var(--line); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; }
.detail div { border-bottom: 1px solid var(--line); padding: 6px 0; }
.detail dt { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.detail dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }

/* photos strip in editor */
.photostrip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.photostrip figure { margin: 0; position: relative; flex: none; }
.photostrip img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photostrip .badge { position: absolute; top: 6px; left: 6px; background: var(--text); color: #06130a; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.ph-actions { display: flex; gap: 4px; margin-top: 4px; }
.ph-actions form { display: inline; }
.ph-actions .btn { min-height: 30px; padding: 2px 8px; font-size: .78rem; }

/* feed */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed-who { color: var(--text); font-weight: 800; }
.feed-what { color: var(--ink); flex: 1 1 220px; }
.feed-when { font-size: .8rem; margin-left: auto; }

/* team */
.teamrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.teamrow:last-child { border-bottom: 0; }
.teamrow > div { flex: 1 1 180px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.inline input { width: auto; margin-top: 0; padding: 8px; }

/* auth */
body.auth { display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; text-align: center; }
.auth-card h1 { font-size: 1.35rem; }
.auth-logo { width: 150px; max-width: 60%; border-radius: 14px; border: 1px solid var(--line); }
.auth-card label { text-align: left; }
.auth-card .stack { margin-top: 14px; }

/* category chips on the parts list */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.chip {
  text-decoration: none; color: var(--dim); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: .9rem;
}
.chip.on {
  color: #06130a; font-weight: 700; border-color: #17a03c;
  background: linear-gradient(180deg, #57ff8a, #22c550);
}

/* voice assistant */
.assistant {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.assistant-btn {
  width: 60px; height: 60px; border-radius: 50%; font-size: 1.55rem; cursor: pointer;
  background: linear-gradient(180deg, #57ff8a, #22c550); color: #06130a;
  border: 2px solid #17a03c; box-shadow: 0 6px 18px rgba(0,0,0,.55);
}
.assistant-btn.listening {
  background: linear-gradient(180deg, #ff7a70, #d63a30); border-color: #8f231c; color: #fff;
  animation: eih-pulse 1s ease-out infinite;
}
@keyframes eih-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,255,115,.45); }
  100% { box-shadow: 0 0 0 16px rgba(61,255,115,0); }
}
.assistant-panel {
  width: min(320px, calc(100vw - 32px)); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.assistant-head { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-weight: 800; margin-bottom: 4px; }
.assistant-mute { background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; padding: 3px 8px; cursor: pointer; }
.assistant-heard { color: var(--dim); font-size: .85rem; margin: 4px 0; min-height: 1em; }
.assistant-reply { color: var(--ink); margin: 4px 0; }
.assistant-status { color: var(--faint); font-size: .85rem; margin: 4px 0 0; min-height: 1em; }

/* online store */
.storefoot { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 12px; }
.cartline { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cartline .grow { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; }
.qty-input { width: 72px; margin-top: 0; }
.order-status { border-radius: 20px; padding: 2px 10px; font-size: .75rem; font-weight: 800; background: var(--silver); color: #101312; }
.order-status.paid { background: linear-gradient(180deg, #57ff8a, #22c550); color: #06130a; }
.order-status.failed { background: #3a1715; color: #ff8a80; }
