/* The header's Join button (avatar stack) and its panel, plus the phone drawer card — every page.
   Split from daman-join-studio.css so the whole studio sheet is not loaded site-wide. */

:root {
    --js-navy: #15173a;
    --js-indigo: #6366f1;
    --js-indigo-soft: #eef2ff;
    --js-ink: #15173a;
    --js-muted: #6b7190;
    --js-line: #e6e7f3;
    --js-bg: #f6f6fb;
}

/* ================================================================
   Header: the Join button (avatar stack) + its panel
   ================================================================ */

.dj-join {
    position: relative;
}

.dj-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding-block: 0;
    padding-inline: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--js-navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(21, 23, 58, 0.8);
    transition: transform 0.15s ease;
}

.dj-join-btn,
.dj-join-btn:hover { color: #fff; text-decoration: none; }
.dj-join-btn:hover { transform: translateY(-1px); }

.dj-avatars { display: flex; }

.dj-av {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--js-navy);
}

.dj-av + .dj-av { margin-inline-start: -9px; }

.dj-av img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dj-join-caret {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--js-indigo);
    font-size: 0.7rem;
    transition: transform 0.18s ease;
}

.dj-join.is-open .dj-join-caret { transform: rotate(180deg); }

.dj-panel {
    position: absolute;
    z-index: 1050;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(720px, 92vw);
    padding: 16px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--js-line);
    box-shadow: 0 50px 90px -40px rgba(21, 23, 58, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.dj-join.is-open .dj-panel,
.dj-join:focus-within .dj-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (hover: hover) {
    .dj-join:hover .dj-panel { opacity: 1; visibility: visible; transform: none; }
}

.dj-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dj-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: var(--js-bg);
    color: var(--js-ink);
    text-decoration: none;
}

.dj-tile:hover { background: var(--js-indigo-soft); color: var(--js-ink); }
.dj-tile strong { font-size: 1rem; font-weight: 800; }
.dj-tile span { font-size: 0.82rem; color: var(--js-muted); }

.dj-mini {
    height: 96px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.dj-mini--shop::before {
    content: "";
    display: block;
    height: 34px;
    background: linear-gradient(120deg, #c7d2fe, #fbcfe8, #fde68a);
}

.dj-mini--shop img {
    display: block;
    width: 38px;
    height: 38px;
    margin: -18px 10px 0;
    padding: 3px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.dj-mini--route { background: linear-gradient(135deg, #e0f2fe, #eef2ff); }
.dj-mini--route svg { width: 100%; height: 100%; }

.dj-mini--pro {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
}

.dj-mini--pro img {
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a, #fbcfe8);
    object-fit: contain;
}

.dj-mini-lines { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.dj-mini-lines i { display: block; height: 8px; border-radius: 4px; background: #dcdcef; }
.dj-mini-lines i:nth-child(2) { width: 55%; background: #c7d2fe; }

.dj-panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-block-start: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--js-navy);
    color: #fff;
    font-weight: 700;
}

.dj-panel-foot a { color: #a5b4fc; font-weight: 800; text-decoration: none; }

/* phone drawer card */
.dj-drawer {
    display: block;
    grid-column: 1 / -1;
    padding: 14px;
    border-radius: 20px;
    background: var(--js-navy);
    color: #fff;
}

.dj-drawer strong { display: block; margin-block-end: 10px; font-size: 1.05rem; }

.dj-drawer-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dj-drawer-paths a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
}

.dj-drawer-paths img { width: 42px; height: 42px; object-fit: contain; }


/* role art = full round badges: fill the avatar */
.dj-av { background: none; }
.dj-av img { width: 100%; height: 100%; }
.dj-mini--pro img { padding: 0; background: none; }
.dj-drawer-paths img { width: 48px; height: 48px; }
