﻿:root {
  --bg: #090309;
  --panel: #18080c;
  --panel-2: #2a0b0b;
  --text: #f7e7bf;
  --muted: #9a7652;
  --ember: #ff7a1a;
  --maroon: #75140b;
  --red: #ff4c4c;
  --green: #54d7a5;
  --gold: #ffc257;
  --teal: #0aa6a6;
  --border: rgba(255, 194, 87, .16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 194, 87, .20), transparent 24%),
    radial-gradient(circle at 18% 12%, rgba(255, 122, 26, .16), transparent 30%),
    radial-gradient(circle at 82% 32%, rgba(117, 20, 11, .38), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(10, 166, 166, .14), transparent 42%),
    linear-gradient(180deg, #180712 0%, #090309 58%, #061118 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 245, 215, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 215, .018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.tool-shell {
  width: min(100%, 1040px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 24px 28px 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-logo {
  width: min(84vw, 500px);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(255, 122, 26, .34));
}

.brand-subtitle {
  color: rgba(247, 231, 191, .62);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.shop-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(92vw, 430px);
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 76, 76, .48);
  background: rgba(255, 76, 76, .08);
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(255, 76, 76, .10);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.shop-status.open-state {
  border-color: rgba(61, 217, 179, .46);
  background: rgba(61, 217, 179, .08);
  color: var(--green);
}

.shop-status.closed-state {
  color: var(--red);
}

.mechanics-on {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
}

.tool-grid {
  width: min(100%, 700px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.tool-card {
  min-height: 190px;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .92;
  z-index: -2;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, currentColor, transparent 45%);
  opacity: .16;
}

.invoice-card {
  color: var(--gold);
  border: 1px solid rgba(255, 194, 87, .34);
  box-shadow: 0 20px 60px rgba(255, 122, 26, .09);
}

.invoice-card::before {
  background: linear-gradient(180deg, rgba(255, 122, 26, .17), rgba(34, 9, 7, .95));
}

.admin-card {
  color: #ff9a38;
  border: 1px solid rgba(255, 122, 26, .34);
  box-shadow: 0 20px 60px rgba(117, 20, 11, .22);
}

.admin-card::before {
  background: linear-gradient(180deg, rgba(117, 20, 11, .55), rgba(18, 5, 6, .96));
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: currentColor;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .36), 0 0 38px color-mix(in srgb, currentColor 22%, transparent);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 46%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, currentColor 13%, transparent);
  font-size: 22px;
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 10%, transparent);
}

.tool-card h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.72rem, 3.2vw, 2.12rem);
  letter-spacing: .08em;
  line-height: 1;
}

.tool-card p {
  max-width: 245px;
  color: rgba(247, 231, 191, .52);
  font-size: 13px;
  line-height: 1.55;
}

.access-pill {
  margin-top: 0;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 13%, transparent);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-pill.locked {
  color: var(--gold);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px 20px 18px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 2, 10, .96) 38%);
}

.footer::before {
  content: '';
  display: block;
  width: min(80vw, 760px);
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .32), rgba(255, 194, 87, .28), transparent);
}

.footer-text {
  width: min(92vw, 760px);
  margin: 0 auto;
  text-align: center;
  color: rgba(247, 231, 191, .42);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .tool-shell {
    justify-content: flex-start;
    padding-top: 28px;
    gap: 22px;
  }

  .brand-logo {
    width: min(94vw, 420px);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 176px;
  }

  .footer {
    position: static;
  }
}

