/* Sidealer.si design system — mirrors the tokens/utilities used by index.html */
:root {
  --background: 80 16% 4%;
  --foreground: 75 20% 92%;
  --card: 80 14% 6.5%;
  --card-foreground: 75 20% 92%;
  --primary: 74 100% 65%;
  --primary-foreground: 80 16% 5%;
  --secondary: 80 10% 11%;
  --secondary-foreground: 75 20% 92%;
  --muted: 80 10% 10%;
  --muted-foreground: 75 8% 56%;
  --accent: 16 100% 60%;
  --accent-foreground: 80 16% 5%;
  --destructive: 0 70% 55%;
  --destructive-foreground: 0 0% 98%;
  --border: 80 9% 16%;
  --input: 80 9% 16%;
  --ring: 74 100% 65%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Type */
.font-display { font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: hsl(var(--primary));
}
.eyebrow.muted { color: hsl(var(--muted-foreground)); }

/* Header — same as the main page */
.top {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid hsl(var(--border) / .8);
  background: hsl(var(--background) / .8);
  backdrop-filter: blur(8px);
}
.top-inner {
  margin: 0 auto; display: flex; height: 3.5rem; max-width: 1280px;
  align-items: center; justify-content: space-between; padding: 0 20px;
}
@media (min-width: 768px) { .top-inner { padding: 0 32px; } }
.logo {
  display: flex; align-items: baseline;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem; line-height: 1; letter-spacing: -.02em;
}
.logo .dot { color: hsl(var(--primary)); }
.caret {
  display: inline-block; width: .55rem; height: 1.05rem; margin-left: .3rem;
  background: hsl(var(--primary)); vertical-align: -0.15rem;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; align-items: center; gap: 20px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.nav a { color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .08em; transition: color .15s; }
.nav a:hover { color: hsl(var(--foreground)); }

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: transparent; border: 1px solid hsl(var(--input)); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: hsl(var(--foreground)); transition: transform .2s, opacity .2s;
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px;
    background: hsl(var(--background) / .97);
    border-bottom: 1px solid hsl(var(--border));
    backdrop-filter: blur(8px);
  }
  .top.nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid hsl(var(--border) / .5); font-size: 13px; }
  .nav a:last-child { border-bottom: 0; }
  .top.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .top.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .top.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Layout */
main { flex: 1 0 auto; max-width: 1280px; margin: 0 auto; padding: 48px 20px 96px; width: 100%; }
@media (min-width: 768px) { main { padding: 64px 32px 128px; } }
.page { max-width: 760px; }
.section { border-bottom: 1px solid hsl(var(--border)); padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
h1.display { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .95; margin: 16px 0 12px; }
h2.display { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1; margin: 12px 0 8px; }
.sub { color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.6; max-width: 56ch; }

/* Buttons — shadcn variants, squared + mono like the main page */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 2.5rem; padding: 0 16px; white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid transparent; border-radius: 0;
  transition: colors .15s, background-color .15s, border-color .15s;
  cursor: pointer;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-default:hover { background: hsl(var(--primary) / .9); }
.btn-outline { border-color: hsl(var(--input)); background: hsl(var(--background)); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { background: hsl(var(--secondary) / .8); }
.btn-danger { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-danger:hover { background: hsl(var(--destructive) / .9); }
.btn-sm { height: 2rem; padding: 0 12px; font-size: 11px; }

/* Forms */
.field { margin-top: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: hsl(var(--muted-foreground));
}
input, select, textarea {
  width: 100%; height: 2.5rem; padding: 0 12px;
  background: hsl(var(--background)); border: 1px solid hsl(var(--input));
  color: hsl(var(--foreground)); font: inherit; font-size: 14px;
  border-radius: 0; transition: border-color .15s;
}
textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground) / .6); }
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(var(--ring)); }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  #who { display: none; }
  input, select, textarea { font-size: 16px; }
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Card / table */
.card {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); padding: 24px;
}
@media (min-width: 768px) { .card { padding: 32px; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: hsl(var(--muted-foreground));
  text-align: left; padding: 10px 8px; border-bottom: 1px solid hsl(var(--border));
}
td { padding: 12px 8px; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.mono-cell { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 13px; }

/* Status pills */
.pill {
  display: inline-block; padding: 2px 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground));
}
.pill.approved { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .6); }
.pill.pending { color: hsl(var(--accent)); border-color: hsl(var(--accent) / .6); }
.pill.rejected, .pill.sold, .pill.withdrawn { color: hsl(var(--muted-foreground)); }
.pill.failed, .pill.blocked { color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / .6); }
.pill.sent, .pill.new { color: hsl(var(--foreground)); }

/* Messages */
.msg { padding: 12px 16px; border: 1px solid hsl(var(--border)); margin-bottom: 20px; font-size: 14px; }
.msg.ok { border-color: hsl(var(--primary) / .6); color: hsl(var(--primary)); }
.msg.err { border-color: hsl(var(--destructive) / .6); color: hsl(var(--destructive)); }

/* Decorative dot grid, same as .grid-dots on the main page */
.grid-dots {
  background-image: radial-gradient(hsl(var(--border)) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.dots-bg { position: relative; }
.dots-bg .grid-dots {
  position: absolute; inset: 0; opacity: .7; pointer-events: none;
}

/* Entrance animation — same .rise as the main page */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: .8s cubic-bezier(.2,.7,.2,1) both rise; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .24s; }

/* Market hero — full-width dot band */
.m-live-band {
  position: relative; height: clamp(280px, 42vw, 600px); margin-bottom: 32px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .4);
}
@media (max-width: 640px) { .m-live-band { height: 320px; } }
.m-live-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-live-live {
  position: absolute; right: 24px; bottom: 14px; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  color: hsl(var(--muted-foreground));
}
.m-live-corner { position: absolute; width: 12px; height: 12px; border-color: hsl(var(--primary)); }
.m-live-corner-tl { left: 8px; top: 8px; border-left: 1px solid hsl(var(--primary)); border-top: 1px solid hsl(var(--primary)); }
.m-live-corner-tr { right: 8px; top: 8px; border-right: 1px solid hsl(var(--primary)); border-top: 1px solid hsl(var(--primary)); }
.m-live-corner-bl { left: 8px; bottom: 8px; border-left: 1px solid hsl(var(--primary)); border-bottom: 1px solid hsl(var(--primary)); }
.m-live-corner-br { right: 8px; bottom: 8px; border-right: 1px solid hsl(var(--primary)); border-bottom: 1px solid hsl(var(--primary)); }
.m-live-tag {
  position: absolute; left: 24px; top: 14px; pointer-events: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  color: hsl(var(--muted-foreground));
}
.m-live-hint {
  position: absolute; left: 24px; bottom: 14px; pointer-events: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  color: hsl(var(--muted-foreground));
}
/* Market stats strip */
.m-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 640px) { .m-stats { grid-template-columns: 1fr; } }
.m-stat { padding: 18px 20px; }
@media (min-width: 641px) { .m-stat + .m-stat { border-left: 1px solid hsl(var(--border)); } }
@media (max-width: 640px) { .m-stat + .m-stat { border-top: 1px solid hsl(var(--border)); } }
.m-stat-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  color: hsl(var(--muted-foreground));
}
.m-dot { width: 6px; height: 6px; background: hsl(var(--muted-foreground)); flex: none; }
.m-dot-live { background: hsl(var(--primary)); animation: m-pulse 1.6s ease-in-out infinite; }
@keyframes m-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.m-stat-num {
  font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -.02em;
  font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; margin: 8px 0 2px;
}
.m-stat-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin: 0; }

/* Market page cards — mirrors the index listing cards */
.m-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .m-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .m-grid { grid-template-columns: repeat(4, 1fr); } }
.m-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 230px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  padding: 20px; transition: border-color .15s;
}
.m-card:hover { border-color: hsl(var(--primary) / .7); }
@media (min-width: 1024px) {
  .m-card.featured { grid-column: span 2; min-height: 270px; }
}
.m-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: hsl(var(--muted-foreground));
}
.m-meta { display: flex; align-items: center; gap: 8px; }
.m-dot { width: 6px; height: 6px; background: hsl(var(--accent)); flex: none; }
.m-badge { display: flex; align-items: center; gap: 4px; color: hsl(var(--primary)); flex: none; }
.m-card-mid { margin: 24px 0; }
.m-name {
  font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -.02em;
  font-size: 3rem; line-height: 1; margin: 0; font-weight: 400;
}
.m-card.featured .m-name { font-size: 3.75rem; }
@media (min-width: 768px) { .m-card.featured .m-name { font-size: 4.5rem; } }
.m-name a {
  color: inherit; text-decoration: none;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 8px; transition: text-decoration-color .15s;
}
.m-name a:hover { text-decoration-color: hsl(var(--primary)); }
.m-tld { color: hsl(var(--primary)); }
.m-pitch {
  margin: 12px 0 0; max-width: 28rem;
  font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground));
}
.m-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; }
.m-inq {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid hsl(var(--border)); padding: 8px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: hsl(var(--foreground)); text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.m-card:hover .m-inq { border-color: hsl(var(--primary)); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* Legal page prose */
.prose p {
  font-size: 14px; line-height: 1.7; color: hsl(var(--muted-foreground));
  margin: 0 0 14px; max-width: 65ch;
}
.prose strong { color: hsl(var(--foreground)); font-weight: 600; }
.prose a { color: hsl(var(--primary)); }

@media (prefers-reduced-motion: reduce) {
  .rise, .caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* Partner badge — end of page */
.partner { display: flex; justify-content: center; padding: 8px 24px 56px; }
.partner-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid hsl(var(--border)); padding: 10px 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: hsl(var(--muted-foreground));
  transition: border-color .15s, color .15s, background .15s;
}
.partner-badge:hover {
  border-color: hsl(var(--primary) / .6); color: hsl(var(--foreground));
  background: hsl(var(--primary) / .06);
}
.partner-tag {
  color: hsl(var(--primary)); border: 1px solid hsl(var(--primary) / .6);
  padding: 2px 6px; font-size: 10px; letter-spacing: .12em;
}
