/* ============================================================================
   invite.css — Phase 15 — invite share sheet styling.
   Theme-neutral glass sheet with a 5-col grid of target tiles. Used from
   Settings, Home, and (eventually) the post-call save-prompt flow.
   ========================================================================= */

.y-invite-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: end center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.y-invite-sheet .y-invite-inner {
    width: min(560px, 96vw);
    margin-bottom: max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 14px 14px;
    background: rgba(18, 18, 26, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    color: #f4f6fa;
    animation: y-invite-rise .26s cubic-bezier(.2,0,.1,1);
}
@keyframes y-invite-rise {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .y-invite-sheet .y-invite-inner { animation: none; }
}

.y-invite-sheet .y-invite-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}
.y-invite-sheet .y-invite-head h2 {
    margin: 0; font-size: 18px; font-weight: 600;
}
.y-invite-sheet .y-invite-head p {
    margin: 4px 0 0; font-size: 12.5px; color: #b0b8c4; line-height: 1.45;
}
.y-invite-sheet .y-invite-close {
    appearance: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.3);
    color: #f4f6fa;
    font-size: 14px;
    cursor: pointer;
    grid-row: 1 / 3;
}
.y-invite-sheet .y-invite-close:hover { background: rgba(255, 255, 255, 0.08); }

.y-invite-sheet .y-invite-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
@media (max-width: 480px) {
    .y-invite-sheet .y-invite-grid { grid-template-columns: repeat(4, 1fr); }
}
.y-invite-sheet .y-invite-tile {
    appearance: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 6px 10px;
    color: #f4f6fa;
    font: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: transform .12s ease, background .15s ease;
}
.y-invite-sheet .y-invite-tile:hover  { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.y-invite-sheet .y-invite-tile:active { transform: translateY(0); }
.y-invite-sheet .y-invite-icon  { font-size: 24px; line-height: 1; }
.y-invite-sheet .y-invite-label { font-size: 11.5px; text-align: center; }

.y-invite-sheet .y-invite-copy-row {
    display: flex; justify-content: center;
}
.y-invite-sheet .y-invite-copy {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.32);
    color: #f4f6fa;
    border-radius: 999px;
    padding: 9px 18px;
    font: inherit; font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}
.y-invite-sheet .y-invite-copy:hover { background: rgba(255, 255, 255, 0.08); }
