/* ============================================================================
   Arti's Tool Shop — License Terminal
   Industrial console design system. One aesthetic, executed everywhere:
   blueprint-grid dark base, amber signal accent, monospace-led typography,
   corner-bracket panels, LED status language.
   CSP-safe: no external fonts, no inline styles, no images.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0a0c10;
  --panel: #10141b;
  --panel-2: #151a23;
  --line: #232a37;
  --line-strong: #2f3949;

  /* type */
  --text: #e8ebf1;
  --muted: #8b94a5;
  --faint: #5a6374;

  /* signals */
  --accent: #ffb224;
  --accent-dim: #b97f17;
  --accent-ink: #181004;
  --green: #3dd68c;
  --red: #f25c43;
  --blue: #6cb2ff;
  --amber-soft: rgba(255, 178, 36, 0.12);
  --green-soft: rgba(61, 214, 140, 0.12);
  --red-soft: rgba(242, 92, 67, 0.12);
  --blue-soft: rgba(108, 178, 255, 0.12);

  --mono:
    "Cascadia Code", "Cascadia Mono", "JetBrains Mono", "SF Mono",
    "Fira Code", "IBM Plex Mono", Consolas, "Liberation Mono", monospace;

  --radius: 4px;
  --pad: 20px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- backdrop */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(140, 160, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 200, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(140, 160, 200, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 200, 0.025) 1px, transparent 1px);
  background-size:
    160px 160px,
    160px 160px,
    32px 32px,
    32px 32px;
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 480px at 50% -120px,
      rgba(255, 178, 36, 0.07),
      transparent 70%
    ),
    radial-gradient(
      1200px 800px at 50% 110%,
      rgba(10, 12, 16, 0.9),
      transparent 60%
    );
}

/* hazard strip across the very top */
.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    #0a0c10 12px 24px
  );
  opacity: 0.85;
}

/* ------------------------------------------------------------------ layout */

.view {
  min-height: 100vh;
}

.view-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hidden {
  display: none !important;
}

.content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.foot {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 28px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ------------------------------------------------------------------- type */

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.mono {
  font-family: var(--mono);
  word-break: break-all;
}

/* uppercase micro-label used across panels, tables, fields */
.field-label,
.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ login */

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 30px;
  position: relative;
  box-shadow: var(--shadow);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* corner brackets */
.auth-card::before,
.auth-card::after,
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.auth-card::before,
.panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.auth-card::after,
.panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.auth-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.auth-title {
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-shadow: 0 0 24px rgba(255, 178, 36, 0.18);
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}

.auth-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(16, 20, 27, 0.96),
    rgba(10, 12, 16, 0.88)
  );
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: -2px;
  animation: blink-soft 4s steps(1) infinite;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-name {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}

/* ------------------------------------------------------------------- tabs */

.tabs {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tab-index {
  color: var(--faint);
  margin-right: 4px;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab.is-active .tab-index {
  color: var(--accent-dim);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 16px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffc14d;
  border-color: #ffc14d;
  color: var(--accent-ink);
  box-shadow: 0 4px 18px rgba(255, 178, 36, 0.35);
}

.btn-danger {
  background: var(--red-soft);
  border-color: rgba(242, 92, 67, 0.5);
  color: var(--red);
}

.btn-danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #1c0a06;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  font-size: 13px;
  padding: 12px 16px;
}

.btn-discord:hover {
  background: #6b76f5;
  border-color: #6b76f5;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.icon-btn {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.icon-btn:hover {
  color: var(--text);
}

/* ----------------------------------------------------------------- fields */

.input {
  width: 100%;
  background: #0c0f15;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.14);
}

.input::placeholder {
  color: var(--faint);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}

.check input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}

/* ----------------------------------------------------------------- panels */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: 20px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
}

.panel-title .eyebrow {
  color: var(--accent);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar .input {
  flex: 1 1 220px;
  width: auto;
}

.toolbar select.input {
  flex: 0 1 170px;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------------- LEDs */

.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

.led-green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

.led-red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(242, 92, 67, 0.8);
}

.led-amber {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 178, 36, 0.8);
}

.led-blue {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(108, 178, 255, 0.8);
}

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
}

.badge-red {
  background: var(--red-soft);
  color: var(--red);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--accent);
}

.badge-gray {
  background: rgba(139, 148, 165, 0.12);
  color: var(--muted);
}

/* ----------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 14px;
  white-space: nowrap;
}

table.data td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.data tbody tr {
  transition: background 0.12s ease;
}

table.data tbody tr:hover {
  background: rgba(255, 178, 36, 0.035);
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

.hwid-cell .mono {
  font-size: 12px;
  color: var(--muted);
}

.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.actions-cell {
  text-align: right;
}

.discord-cell .small {
  color: var(--faint);
}

/* license group block */
.license-group {
  margin-bottom: 26px;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.license-group:nth-child(2) {
  animation-delay: 0.05s;
}
.license-group:nth-child(3) {
  animation-delay: 0.1s;
}
.license-group:nth-child(4) {
  animation-delay: 0.15s;
}
.license-group:nth-child(5) {
  animation-delay: 0.2s;
}

.group-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title::before {
  content: "▸";
  color: var(--accent);
}

.expiry-sub {
  display: block;
  font-size: 11px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ store */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.store-grid .product-card:nth-child(2) {
  animation-delay: 0.06s;
}
.store-grid .product-card:nth-child(3) {
  animation-delay: 0.12s;
}
.store-grid .product-card:nth-child(4) {
  animation-delay: 0.18s;
}
.store-grid .product-card:nth-child(5) {
  animation-delay: 0.24s;
}
.store-grid .product-card:nth-child(6) {
  animation-delay: 0.3s;
}

.product-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.product-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.product-id {
  font-size: 11px;
  color: var(--faint);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 0 0 22px rgba(255, 178, 36, 0.18);
}

.price-per {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owned-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* checkout confirmation rows (modal) */
.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.row:last-child {
  border-bottom: none;
}

.row .k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  flex: none;
  padding-top: 2px;
}

.row .v {
  text-align: right;
  word-break: break-word;
}

.row .v.mono {
  font-size: 12px;
}

.total-row .v {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.stripe-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

/* payment processing state */
.pay-wait {
  text-align: center;
  padding: 18px 6px 8px;
}

.pay-wait .spinner {
  margin: 0 auto 18px;
}

.key-reveal {
  background: #0c0f15;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  word-break: break-all;
  color: var(--accent);
  text-align: center;
  margin: 14px 0;
  box-shadow: inset 0 0 24px rgba(255, 178, 36, 0.06);
}

/* ---------------------------------------------------------------- subtabs */

.subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.subtab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px 10px;
  cursor: pointer;
}

.subtab:hover {
  color: var(--text);
}

.subtab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------------------------ notes */

.notes {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.note {
  background: var(--panel-2);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 12px;
  font-size: 12.5px;
}

.note-meta {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

/* ------------------------------------------------------------------ modal */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 16px;
  overflow-y: auto;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.modal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.modal::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  padding: 11px 18px;
  max-width: min(480px, calc(100vw - 32px));
  box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}

.toast.is-success {
  border-left-color: var(--green);
}

.toast.is-error {
  border-left-color: var(--red);
}

/* ------------------------------------------------------------------ alert */

.alert {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--red-soft);
  border: 1px solid rgba(242, 92, 67, 0.4);
  color: var(--red);
}

/* ---------------------------------------------------------------- spinner */

.spinner {
  width: 26px;
  height: 26px;
  margin: 28px auto;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ------------------------------------------------------------- animations */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes blink-soft {
  0%,
  92% {
    opacity: 1;
  }
  96% {
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .user {
    width: 100%;
    justify-content: flex-end;
  }

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

  .auth-title {
    font-size: 32px;
  }

  table.data th,
  table.data td {
    padding: 9px 10px;
  }

  .cell-actions {
    justify-content: flex-start;
  }

  .actions-cell {
    text-align: left;
  }
}
