/* XANAX — shared stylesheet. Pixel-identical aesthetic across every page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #050508;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: #c8d8e8;
  padding: 40px 20px;
}

.wrapper { width: 100%; max-width: 420px; }

.header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo { font-size: 18px; letter-spacing: .35em; font-weight: 700; color: #d0e8f8; white-space: nowrap; }
.hline { flex: 1; height: 1px; background: #0d2035; }
.loader-badge { font-size: 10px; letter-spacing: .18em; color: #2a5a7a; white-space: nowrap; }

.card { position: relative; background: #070d14; border: 1px solid #0d2a3f; padding: 22px; }
.corner { position: absolute; width: 10px; height: 10px; border-color: #1e6080; }
.corner.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.title { font-size: 14px; color: #d0e8f8; letter-spacing: .14em; margin-bottom: 4px; }
.subtitle { font-size: 10px; color: #2a5a7a; letter-spacing: .16em; margin-bottom: 18px; }

.product-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid #0d2035; margin-bottom: 18px;
}
.product-icon {
  width: 36px; height: 36px; background: #0a1e2e; border: 1px solid #0d3050;
  border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.product-icon svg { width: 18px; height: 18px; fill: #1a80b0; }
.product-info { flex: 1; }
.product-name { font-size: 13px; color: #b8d0e0; margin-bottom: 5px; letter-spacing: .06em; }
.tags { display: flex; gap: 5px; }
.tag { font-size: 9px; letter-spacing: .12em; padding: 2px 7px; border: 1px solid #0d3050; color: #2a6080; border-radius: 2px; }
.price { font-size: 20px; color: #1a9fd4; letter-spacing: .04em; font-weight: 700; }

.dot { width: 6px; height: 6px; background: #1a70b0; border-radius: 50%; margin: 0 auto 16px; }

.section-label { font-size: 10px; letter-spacing: .2em; color: #2a6080; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.section-label::before { content: '//'; color: #1a5070; }

.input-wrap { position: relative; margin-bottom: 10px; }
.input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #1a5070; font-size: 13px; pointer-events: none; }
input[type=email], input[type=text], input[type=password] {
  width: 100%; background: #040a0f; border: 1px solid #0d2a3f; color: #8ab0c8;
  font-family: 'Share Tech Mono', 'Courier New', monospace; font-size: 12px;
  padding: 10px 10px 10px 32px; outline: none; letter-spacing: .05em; transition: border-color .2s;
}
input::placeholder { color: #1e4060; }
input:focus { border-color: #1a6080; }
input.error   { border-color: #803020; }
input.success { border-color: #206040; }

.hint { font-size: 10px; color: #1e4560; letter-spacing: .1em; margin: 6px 0 16px; min-height: 14px; }
.hint.error   { color: #b06040; }
.hint.success { color: #40b080; }

.btn {
  width: 100%; background: #0d3d50; border: none; color: #4ac8e8;
  font-family: 'Share Tech Mono', 'Courier New', monospace; font-size: 11px;
  letter-spacing: .25em; padding: 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover:not(:disabled)  { background: #123d54; color: #7adaf0; }
.btn:active:not(:disabled) { background: #0a2d40; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; border: 1px solid #0d3050; color: #2a6080; }
.btn.ghost:hover:not(:disabled) { background: #0a1e2e; color: #4ac8e8; }

.spinner {
  display: inline-block; width: 10px; height: 10px; border: 2px solid #4ac8e8;
  border-top-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer { display: flex; justify-content: space-between; margin-top: 12px; font-size: 9px; color: #1a3a50; letter-spacing: .1em; }
.footer-secure { display: flex; align-items: center; gap: 5px; }
.footer-secure::before { content: ''; display: inline-block; width: 8px; height: 9px; border: 1px solid #1a3a50; border-radius: 1px; }

.row-sep { height: 1px; background: #0d2035; margin: 16px 0; }
.link { color: #1a9fd4; text-decoration: none; border-bottom: 1px dotted #0d3d50; font-size: 10px; letter-spacing: .14em; }
.link:hover { color: #4ac8e8; border-bottom-color: #1a9fd4; }

.success-key { background: #040a0f; border: 1px solid #124056; padding: 14px; text-align: center; color: #1a9fd4; font-size: 14px; letter-spacing: .12em; margin: 12px 0 16px; }

/* Admin-specific */
.admin-layout { display: flex; width: 100%; max-width: 1400px; gap: 20px; }
.sidebar { width: 220px; flex-shrink: 0; background: #070d14; border: 1px solid #0d2a3f; padding: 18px; height: fit-content; position: sticky; top: 40px; }
.side-item { display: block; padding: 10px 12px; color: #8ab0c8; font-size: 11px; letter-spacing: .14em; text-decoration: none; border-left: 2px solid transparent; cursor: pointer; }
.side-item.active, .side-item:hover { background: #040a0f; color: #4ac8e8; border-left-color: #1a9fd4; }
.main-col { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #070d14; border: 1px solid #0d2a3f; padding: 14px; position: relative; }
.stat-label { font-size: 9px; color: #2a6080; letter-spacing: .22em; margin-bottom: 6px; }
.stat-value { font-size: 22px; color: #1a9fd4; letter-spacing: .04em; font-weight: 700; }
.badges { display: flex; gap: 10px; margin-bottom: 16px; }
.badge { padding: 6px 10px; font-size: 10px; letter-spacing: .16em; border: 1px solid #0d2a3f; }
.badge.critical { color: #ff6060; border-color: #803020; }
.badge.high     { color: #ffa060; border-color: #804820; }

table.grid { width: 100%; border-collapse: collapse; font-size: 11px; letter-spacing: .05em; background: #070d14; border: 1px solid #0d2a3f; }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #0d2035; color: #b8d0e0; vertical-align: top; }
table.grid th { background: #040a0f; color: #2a6080; font-weight: normal; font-size: 10px; letter-spacing: .18em; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: #040a0f; }
.sev { padding: 2px 8px; font-size: 9px; letter-spacing: .14em; border: 1px solid; display: inline-block; }
.sev.LOW      { color: #708090; border-color: #223040; }
.sev.MEDIUM   { color: #d4c060; border-color: #604820; }
.sev.HIGH     { color: #ffa060; border-color: #804820; }
.sev.CRITICAL { color: #ff6060; border-color: #803020; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { padding: 8px 10px; background: #040a0f; border: 1px solid #0d2a3f; color: #8ab0c8; font-family: inherit; font-size: 11px; letter-spacing: .08em; }
.act-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.act-btn { background: #0a1e2e; border: 1px solid #0d3050; color: #8ab0c8; font-family: inherit; font-size: 9px; letter-spacing: .14em; padding: 4px 8px; cursor: pointer; }
.act-btn:hover { background: #0d3d50; color: #4ac8e8; }
.act-btn.danger { color: #b06040; border-color: #803020; }
.act-btn.danger:hover { background: #2a1010; color: #ff8060; }

.modal-bg { position: fixed; inset: 0; background: rgba(5,5,8,.85); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-bg.show { display: flex; }
.modal { width: 360px; max-width: 90vw; background: #070d14; border: 1px solid #0d2a3f; padding: 22px; position: relative; }
.pill { display: inline-block; font-size: 9px; letter-spacing: .14em; padding: 2px 8px; border: 1px solid; }
.pill.active  { color: #40b080; border-color: #206040; }
.pill.banned  { color: #b06040; border-color: #803020; }
.details-open { background: #040a0f; padding: 10px; margin-top: 6px; font-size: 10px; color: #8ab0c8; white-space: pre-wrap; word-break: break-all; }
