:root {
  --hub-bg: #09070f;
  --hub-text: #fbf9ff;
  --hub-muted: #a99faf;
  --hub-line: rgba(255,255,255,.1);
  --hub-purple: #aa70ff;
  --hub-cyan: #19c7e8;
  --hub-amber: #ffbb52;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; overflow-x: hidden; color: var(--hub-text); background: radial-gradient(circle at 15% 10%, rgba(170,112,255,.11), transparent 26rem), radial-gradient(circle at 88% 85%, rgba(25,199,232,.06), transparent 24rem), var(--hub-bg); font-family: Inter, system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .13; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at center, black, transparent 80%); }
a { color: inherit; }
.tool-hub { width: min(1180px, calc(100% - 32px)); min-height: 100dvh; margin: 0 auto; padding: 24px 0 20px; display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(20px, 4vh, 38px); }
.hub-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.hub-brand-mark { width: 38px; height: 38px; padding: 9px 8px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: linear-gradient(145deg, rgba(201,155,255,.28), rgba(109,52,199,.82)); }
.hub-brand-mark i { width: 5px; border-radius: 999px; background: white; }
.hub-brand-mark i:nth-child(1) { height: 9px; opacity: .72; }
.hub-brand-mark i:nth-child(2) { height: 17px; }
.hub-brand-mark i:nth-child(3) { height: 13px; opacity: .86; }
.hub-brand > span:last-child strong, .hub-brand > span:last-child small { display: block; }
.hub-brand strong { font: 800 15px Syne, sans-serif; }
.hub-brand small { margin-top: 2px; color: var(--hub-muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hub-account-actions { display: flex; align-items: center; gap: 10px; }
.hub-account-actions a { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hub-line); border-radius: 9px; text-decoration: none; font-size: 10px; font-weight: 800; }
.hub-account-actions .hub-account-primary { border-color: rgba(170,112,255,.3); background: rgba(170,112,255,.09); }
.hub-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hub-intro p { margin: 0 0 9px; color: #c99bff; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.hub-intro h1 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1 Syne, sans-serif; letter-spacing: -.05em; }
.hub-intro > span { padding-bottom: 5px; color: var(--hub-muted); font-size: 11px; }
.hub-products { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.hub-product { min-width: 0; min-height: 390px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; position: relative; isolation: isolate; border: 1px solid var(--hub-line); border-radius: 22px; background: rgba(21,15,30,.78); text-decoration: none; box-shadow: 0 24px 70px rgba(0,0,0,.28); transition: transform .2s ease, border-color .2s ease; }
.hub-product::before { content: ""; position: absolute; width: 240px; height: 240px; top: -130px; right: -110px; z-index: -1; border-radius: 50%; filter: blur(5px); opacity: .13; }
.hub-product:hover, .hub-product:focus-visible { transform: translateY(-4px); }
.hub-pay:hover, .hub-pay:focus-visible { border-color: rgba(170,112,255,.35); }
.hub-inventory:hover, .hub-inventory:focus-visible { border-color: rgba(25,199,232,.35); }
.hub-expense:hover, .hub-expense:focus-visible { border-color: rgba(255,187,82,.35); }
.hub-pay::before { background: var(--hub-purple); }
.hub-inventory::before { background: var(--hub-cyan); }
.hub-expense::before { background: var(--hub-amber); }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; font: 800 12px Syne, sans-serif; }
.hub-pay .product-icon { background: rgba(170,112,255,.13); color: #d7b7ff; }
.hub-inventory .product-icon { background: rgba(25,199,232,.1); color: #75e2f3; }
.hub-expense .product-icon { background: rgba(255,187,82,.1); color: #ffd38e; }
.product-status { padding: 6px 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #9f96a6; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-status.available { color: #8ee4bc; border-color: rgba(99,230,170,.15); background: rgba(99,230,170,.04); }
.product-copy { margin: auto 0; }
.product-copy small { color: #8f8497; font-size: 7px; font-weight: 800; letter-spacing: .15em; }
.product-copy h2 { margin: 10px 0 0; font: 700 clamp(26px, 3vw, 37px)/1 Syne, sans-serif; letter-spacing: -.045em; }
.product-copy p { margin: 15px 0 0; color: var(--hub-muted); font-size: 12px; line-height: 1.65; }
.product-action { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.065); font-size: 10px; font-weight: 800; }
.product-action span { font-size: 16px; }
.hub-footer { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #827888; }
.hub-footer a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 9px; font-weight: 800; }
.hub-footer p { margin: 0; font-size: 9px; }

@media (max-width: 760px) {
  .tool-hub { width: calc(100% - 24px); padding: 14px 0 12px; gap: 14px; }
  .hub-header { min-height: 42px; }
  .hub-account-primary { display: none !important; }
  .hub-account-actions a { min-height: 34px; padding-inline: 11px; }
  .hub-intro { display: block; }
  .hub-intro p { margin-bottom: 6px; font-size: 7px; }
  .hub-intro h1 { font-size: clamp(28px, 9vw, 38px); }
  .hub-intro > span { display: none; }
  .hub-products { grid-template-columns: 1fr; gap: 7px; }
  .hub-product { min-height: 0; height: auto; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 11px; border-radius: 15px; }
  .product-topline { grid-row: 1 / -1; }
  .product-topline .product-status { display: none; }
  .product-icon { width: 42px; height: 42px; }
  .product-copy { min-width: 0; margin: 0; }
  .product-copy small { font-size: 6px; }
  .product-copy h2 { margin-top: 3px; font-size: 19px; }
  .product-copy p { margin: 4px 0 0; overflow: hidden; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .product-action { grid-column: 3; grid-row: 1 / -1; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; font-size: 0; }
  .product-action span { font-size: 14px; }
  .hub-footer p { display: none; }
}

@media (max-height: 650px) and (max-width: 760px) {
  .tool-hub { gap: 9px; }
  .hub-intro p { display: none; }
  .hub-product { padding-block: 9px; }
  .hub-footer { min-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-product { transition: none; }
}
