/* Van Ark hub v2 (selection menu after admin sign-in, + Telefon tile). Loaded on / only. */
.hub-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(118, 211, 163, 0.10), transparent 60%),
    var(--bg, #080908);
  padding:
    max(28px, calc(18px + env(safe-area-inset-top)))
    max(20px, calc(16px + env(safe-area-inset-right)))
    max(24px, calc(16px + env(safe-area-inset-bottom)))
    max(20px, calc(16px + env(safe-area-inset-left)));
}

.hub-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hub-orb {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.34;
  will-change: transform;
}
.hub-orb--a {
  top: -38vmax;
  left: -26vmax;
  background: radial-gradient(circle, #2f8f66 0%, rgba(47, 143, 102, 0) 65%);
  animation: hub-drift-a 22s ease-in-out infinite alternate;
}
.hub-orb--b {
  right: -30vmax;
  bottom: -40vmax;
  background: radial-gradient(circle, #6d5bd0 0%, rgba(109, 91, 208, 0) 65%);
  animation: hub-drift-b 26s ease-in-out infinite alternate;
}
@keyframes hub-drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes hub-drift-b { to { transform: translate3d(-7vmax, -8vmax, 0) scale(1.1); } }

.hub {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(100%, 880px);
  margin: 0 auto;
  gap: 28px;
}

.hub__header { padding-top: 8px; }
.hub__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--text-soft, #b8beb8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.hub__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.hub__greeting {
  margin: 0 0 6px;
  color: var(--accent-strong, #9be5bc);
  font-size: 15px;
  font-weight: 650;
}
.hub__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 9.4vw, 54px);
  font-weight: 500;
  line-height: 1.04;
  color: var(--text, #f4f5ef);
}
.hub__subtitle {
  margin: 12px 0 0;
  max-width: 34ch;
  color: var(--text-soft, #b8beb8);
  font-size: 16px;
  line-height: 1.5;
}

.hub__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .hub__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hub__header { padding-top: 6vh; }
}

.hub-tile {
  --tile-accent: #76d3a3;
  --tile-accent-2: #2f8f66;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 18px;
  min-height: 176px;
  width: 100%;
  margin: 0;
  padding: 22px 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 60%),
    rgba(17, 19, 17, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
  color: var(--text, #f4f5ef);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease, box-shadow 180ms ease;
}
.hub-tile::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-accent) 0%, transparent 62%);
  opacity: 0.20;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.hub-tile--voice {
  --tile-accent: #a99bff;
  --tile-accent-2: #6d5bd0;
}
.hub-tile--phone {
  --tile-accent: #f2b766;
  --tile-accent-2: #c77d2e;
}
@media (min-width: 720px) {
  .hub-tile--phone { grid-column: 1 / -1; min-height: 150px; }
}
@media (min-width: 720px) {
  .hub-tile--wallet { grid-column: 1 / -1; min-height: 150px; }
}

.hub-tile:hover { border-color: rgba(255, 255, 255, 0.18); }
.hub-tile:hover::before { opacity: 0.32; }
.hub-tile:active { transform: scale(0.982); }
.hub-tile:focus-visible {
  outline: 2px solid var(--tile-accent);
  outline-offset: 3px;
}

.hub-tile__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--tile-accent), var(--tile-accent-2));
  color: #07150d;
  box-shadow: 0 10px 24px -8px var(--tile-accent-2);
}
.hub-tile--voice .hub-tile__icon { color: #120d2b; }
.hub-tile--phone .hub-tile__icon { color: #1d1206; }
.hub-tile--wallet .hub-tile__icon { color: #071018; }
.hub-tile__icon svg { width: 30px; height: 30px; }

.hub-tile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hub-tile__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}
.hub-tile__meta {
  color: var(--tile-accent);
  font-size: 14px;
  font-weight: 650;
}
.hub-tile__chevron {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft, #b8beb8);
  transition: transform 180ms ease, background 180ms ease;
}
.hub-tile__chevron svg { width: 18px; height: 18px; }
.hub-tile:hover .hub-tile__chevron { transform: translateX(3px); background: rgba(255, 255, 255, 0.12); }
.hub-tile__desc {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-soft, #b8beb8);
  font-size: 15px;
  line-height: 1.45;
}
.hub-tile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hub-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #f4f5ef);
  font-size: 13px;
  font-weight: 600;
}

.hub__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--text-muted, #858b85);
  font-size: 13px;
}
.hub__footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Entrance animation */
.hub-screen:not([hidden]) .hub__header,
.hub-screen:not([hidden]) .hub-tile,
.hub-screen:not([hidden]) .hub__footer {
  animation: hub-rise 520ms cubic-bezier(.2, .8, .2, 1) both;
}
.hub-screen:not([hidden]) .hub-tile--chat { animation-delay: 70ms; }
.hub-screen:not([hidden]) .hub-tile--voice { animation-delay: 140ms; }
.hub-screen:not([hidden]) .hub-tile--phone { animation-delay: 200ms; }
.hub-screen:not([hidden]) .hub-tile--wallet { animation-delay: 240ms; }
.hub-screen:not([hidden]) .hub__footer { animation-delay: 260ms; }
@keyframes hub-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-orb,
  .hub-screen:not([hidden]) .hub__header,
  .hub-screen:not([hidden]) .hub-tile,
  .hub-screen:not([hidden]) .hub__footer { animation: none !important; }
  .hub-tile, .hub-tile__chevron, .hub-tile::before { transition: none !important; }
}

/* "Menu" entry inside the chat drawer */
.hub-drawer-button { margin-top: 8px; }
