/* ==========================================================
   GAYZZEE MOBILE FINISH V3
   Home + Hulp + eerste-start-rondleiding
   Alleen mobiel. Geen cam/PiP/desktop-regels.
========================================================== */

.gz-mobile-home-dashboard,
.gz-mobile-tour,
.gz-mobile-profile-help-link {
  display: none;
}

@media (max-width: 979px) {
  body.gz-mobile-home-v3 .workspace {
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.gz-mobile-home-v3 .gz-mobile-home-dashboard {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 15% 0%, rgba(137, 62, 255, .14), transparent 32%),
      radial-gradient(circle at 90% 20%, rgba(255, 47, 175, .09), transparent 30%),
      #0a0711;
    -webkit-overflow-scrolling: touch;
  }

  body.gz-mobile-home-v3[data-mobile-tab="more"] .control-sidebar {
    display: none !important;
  }

  body.gz-mobile-home-v3[data-mobile-tab="more"] .gz-mobile-home-dashboard {
    display: block !important;
  }

  body.gz-mobile-home-v3:not([data-mobile-tab="more"]) .gz-mobile-home-dashboard {
    display: none !important;
  }

  .gz-mobile-home-inner {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
  }

  .gz-mobile-home-welcome,
  .gz-mobile-home-stats,
  .gz-mobile-home-main-actions,
  .gz-mobile-home-section,
  .gz-mobile-home-moderator,
  .gz-mobile-home-help {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(18, 12, 28, .86);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  }

  .gz-mobile-home-welcome {
    padding: 18px 16px;
    background:
      linear-gradient(135deg, rgba(101, 48, 184, .23), rgba(237, 48, 169, .08)),
      rgba(18, 12, 28, .94);
  }

  .gz-mobile-home-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(190, 102, 255, .26);
    border-radius: 999px;
    color: #d9b7ff;
    background: rgba(157, 75, 255, .10);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .gz-mobile-home-welcome h1 {
    margin: 12px 0 5px;
    color: #fff;
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.05;
  }

  .gz-mobile-home-welcome p {
    margin: 0;
    color: #bfb6ca;
    font-size: 11px;
    line-height: 1.5;
  }

  .gz-mobile-home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
  }

  .gz-mobile-home-stats > div {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .025);
  }

  .gz-mobile-home-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, .07);
  }

  .gz-mobile-home-stats strong {
    color: #fff;
    font-size: 20px;
    line-height: 1;
  }

  .gz-mobile-home-stats small {
    color: #9f96aa;
    font-size: 9px;
    font-weight: 800;
  }

  .gz-mobile-home-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
  }

  .gz-mobile-home-dot.is-online {
    background: #31e981;
    box-shadow: 0 0 12px rgba(49, 233, 129, .75);
  }

  .gz-mobile-home-dot.is-live {
    background: #ff3b63;
    box-shadow: 0 0 12px rgba(255, 59, 99, .72);
  }

  .gz-mobile-home-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .gz-mobile-home-main-actions button {
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: start;
    gap: 5px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    text-align: left;
    touch-action: manipulation;
  }

  .gz-mobile-home-main-actions button:first-child {
    border-color: rgba(214, 68, 255, .24);
    background: linear-gradient(145deg, rgba(133, 56, 222, .18), rgba(255, 54, 176, .07));
  }

  .gz-mobile-home-main-actions button > span {
    font-size: 22px;
  }

  .gz-mobile-home-main-actions strong {
    font-size: 12px;
  }

  .gz-mobile-home-main-actions small {
    color: #a9a0b4;
    font-size: 8px;
    line-height: 1.35;
  }

  .gz-mobile-home-section {
    padding: 12px;
  }

  .gz-mobile-home-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .gz-mobile-home-section-title strong {
    color: #fff;
    font-size: 12px;
  }

  .gz-mobile-home-section-title small {
    color: #8e8598;
    font-size: 8px;
  }

  .gz-mobile-home-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gz-mobile-home-media-grid a,
  .gz-mobile-home-wide-button {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    text-decoration: none;
    touch-action: manipulation;
  }

  .gz-mobile-home-media-grid a span,
  .gz-mobile-home-wide-button span {
    font-size: 20px;
  }

  .gz-mobile-home-media-grid a strong,
  .gz-mobile-home-wide-button strong {
    font-size: 10px;
  }

  .gz-mobile-home-wide-button {
    width: 100%;
    justify-content: center;
    border-color: rgba(68, 199, 255, .18);
  }

  .gz-mobile-home-wide-button:disabled {
    opacity: .48;
  }

  .gz-mobile-home-moderator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 13px;
  }

  .gz-mobile-home-moderator[hidden] {
    display: none !important;
  }

  .gz-mobile-home-moderator > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .gz-mobile-home-moderator-dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #31e981;
    box-shadow: 0 0 13px rgba(49, 233, 129, .72);
  }

  .gz-mobile-home-moderator > div > div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .gz-mobile-home-moderator small,
  .gz-mobile-home-moderator span {
    color: #9f96aa;
    font-size: 8px;
  }

  .gz-mobile-home-moderator strong {
    color: #fff;
    font-size: 11px;
  }

  .gz-mobile-home-moderator button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(93, 215, 255, .21);
    border-radius: 12px;
    color: #fff;
    background: rgba(54, 182, 227, .08);
    font-size: 9px;
    font-weight: 900;
  }

  .gz-mobile-home-help {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .gz-mobile-home-help > div:first-child {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .gz-mobile-home-help > div:first-child > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(173, 69, 255, .10);
    font-size: 20px;
  }

  .gz-mobile-home-help > div:first-child > div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .gz-mobile-home-help strong {
    color: #fff;
    font-size: 11px;
  }

  .gz-mobile-home-help small {
    color: #9f96aa;
    font-size: 8px;
    line-height: 1.4;
  }

  .gz-mobile-home-help-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gz-mobile-home-help-actions a,
  .gz-mobile-home-help-actions button {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
  }

  .gz-mobile-home-stop {
    min-height: 44px;
    margin: 2px 0 8px;
    border: 0;
    color: #c3b8c9;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Profiel: één eenvoudige ingang naar mobiele hulp. */
  .gz-mobile-profile-help-link {
    display: block;
    margin: 12px 0 2px;
    padding: 0 12px 12px;
  }

  .gz-mobile-profile-help-link a {
    min-height: 56px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(196, 92, 255, .17);
    border-radius: 14px;
    color: #fff;
    background: rgba(164, 66, 236, .06);
    text-decoration: none;
  }

  .gz-mobile-profile-help-link a > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .gz-mobile-profile-help-link strong {
    font-size: 10px;
  }

  .gz-mobile-profile-help-link small {
    color: #9e94a8;
    font-size: 8px;
  }

  /* ======================================================
     KORTE EERSTE-START-RONDLEIDING
  ====================================================== */
  body.gz-mobile-tour-open {
    touch-action: none;
  }

  .gz-mobile-tour {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    background: rgba(4, 2, 8, .80);
    backdrop-filter: blur(14px);
  }

  .gz-mobile-tour-card {
    width: min(100%, 430px);
    max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(206, 91, 255, .28);
    border-radius: 22px;
    background:
      radial-gradient(circle at 50% 0%, rgba(123, 58, 223, .18), transparent 35%),
      #100b18;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  }

  .gz-mobile-tour-topline {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    color: #bcb2c6;
    font-size: 9px;
    font-weight: 900;
  }

  .gz-mobile-tour-topline button {
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    color: #d9b7ff;
    background: transparent;
    font-size: 9px;
    font-weight: 900;
  }

  .gz-mobile-tour-progress {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, .06);
  }

  .gz-mobile-tour-progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--gz-tour-progress, 20%);
    background: linear-gradient(90deg, #7d4dff, #f33caf);
    transition: width .18s ease;
  }

  .gz-mobile-tour-copy {
    min-height: 250px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 28px 24px 22px;
    text-align: center;
  }

  .gz-mobile-tour-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 5px;
    border: 1px solid rgba(207, 102, 255, .18);
    border-radius: 22px;
    background: rgba(168, 74, 244, .08);
    font-size: 34px;
  }

  .gz-mobile-tour-copy small {
    color: #a77dff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .gz-mobile-tour-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
  }

  .gz-mobile-tour-copy p {
    max-width: 330px;
    margin: 0;
    color: #bdb3c7;
    font-size: 11px;
    line-height: 1.65;
  }

  .gz-mobile-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
  }

  .gz-mobile-tour-actions > div {
    display: flex;
    gap: 7px;
  }

  .gz-mobile-tour-actions button {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 900;
  }

  .gz-mobile-tour-actions .is-secondary {
    border: 1px solid rgba(255, 255, 255, .09);
    color: #c7bdcf;
    background: rgba(255, 255, 255, .035);
  }

  .gz-mobile-tour-actions .is-primary {
    border: 1px solid rgba(212, 85, 255, .30);
    color: #fff;
    background: linear-gradient(135deg, #723ee2, #c432a5);
  }

  /* ======================================================
     MOBIELE HULPPAGINA
  ====================================================== */
  body.gz-mobile-help-page .workspace {
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background:
      radial-gradient(circle at 15% 0%, rgba(135, 59, 238, .13), transparent 30%),
      #09060f;
    -webkit-overflow-scrolling: touch;
  }

  .gz-mobile-help-main {
    width: min(100%, 620px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
    padding: 14px 12px calc(96px + env(safe-area-inset-bottom));
  }

  .gz-mobile-help-hero {
    padding: 19px 16px;
    border: 1px solid rgba(198, 91, 255, .18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(118, 49, 204, .18), rgba(255, 59, 177, .06));
  }

  .gz-mobile-help-hero small {
    color: #c49cff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .gz-mobile-help-hero h1 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: 24px;
  }

  .gz-mobile-help-hero p {
    margin: 0;
    color: #bdb3c8;
    font-size: 10px;
    line-height: 1.55;
  }

  .gz-mobile-help-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .gz-mobile-help-hero-actions a,
  .gz-mobile-help-hero-actions button {
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
  }

  .gz-mobile-help-list {
    display: grid;
    gap: 8px;
  }

  .gz-mobile-help-list details {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(18, 12, 28, .84);
    overflow: hidden;
  }

  .gz-mobile-help-list summary {
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    color: #fff;
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
  }

  .gz-mobile-help-list summary::-webkit-details-marker {
    display: none;
  }

  .gz-mobile-help-list summary > span:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(166, 76, 238, .08);
    font-size: 19px;
  }

  .gz-mobile-help-list summary > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .gz-mobile-help-list summary strong {
    font-size: 11px;
  }

  .gz-mobile-help-list summary small {
    color: #998fa4;
    font-size: 8px;
  }

  .gz-mobile-help-list summary > span:last-child {
    color: #a78ab7;
    font-size: 18px;
    transition: transform .16s ease;
  }

  .gz-mobile-help-list details[open] summary > span:last-child {
    transform: rotate(90deg);
  }

  .gz-mobile-help-details {
    display: grid;
    gap: 9px;
    padding: 0 14px 14px 61px;
    color: #b8aebe;
    font-size: 10px;
    line-height: 1.55;
  }

  .gz-mobile-help-details p {
    margin: 0;
  }

  .gz-mobile-help-details a {
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(197, 82, 255, .20);
    border-radius: 11px;
    color: #fff;
    background: rgba(167, 67, 234, .07);
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
  }

  .gz-mobile-help-info-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .gz-mobile-help-info-links a {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    color: #aaa0b4;
    background: rgba(255, 255, 255, .025);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
  }

  @media (max-width: 350px) {
    .gz-mobile-home-main-actions,
    .gz-mobile-home-help-actions,
    .gz-mobile-help-hero-actions {
      grid-template-columns: 1fr;
    }

    .gz-mobile-home-stats > div {
      padding-inline: 10px;
    }

    .gz-mobile-help-details {
      padding-left: 14px;
    }
  }

  @media (orientation: landscape) and (max-height: 560px) {
    .gz-mobile-home-dashboard {
      padding-top: 8px !important;
    }

    .gz-mobile-home-inner {
      gap: 8px;
    }

    .gz-mobile-tour-copy {
      min-height: 165px;
      padding-block: 18px;
    }

    .gz-mobile-tour-icon {
      width: 58px;
      height: 58px;
      font-size: 28px;
    }
  }
}
