/* ============================================================
   In-app guided tour + help drawer — Sand & Sea palette.
   ============================================================ */

/* ---- Trigger button (portal/public; admin reuses .admin-iconbtn) ---- */
.ttc-help-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff;
    font-weight: 700; cursor: pointer; text-decoration: none; font-size: .95rem; line-height: 1;
}
.ttc-help-btn:hover { background: rgba(255,255,255,.24); }

/* ============================================================
   Guided tour
   ============================================================ */
.ttc-overlay { position: fixed; inset: 0; z-index: 9998; display: none; background: transparent; }
.ttc-spot {
    position: fixed; z-index: 9999; display: none; border-radius: 12px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(12, 40, 42, .62), 0 0 0 3px var(--c-accent);
    transition: all .25s ease; opacity: 0;
}
.ttc-spot.no-anim { transition: none; }

.ttc-bubble {
    position: fixed; z-index: 10000; display: none; width: 330px; max-width: calc(100vw - 24px);
    background: #fff; color: var(--c-text); border-radius: 14px; padding: 20px 20px 16px;
    box-shadow: 0 18px 50px rgba(12,40,42,.35); font-family: var(--font-ui);
}
.ttc-bubble.no-anim { transition: none; }
.ttc-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--c-primary); margin: 0 6px 8px 0; }
.ttc-body { font-size: .92rem; line-height: 1.55; color: var(--c-text); }
.ttc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.ttc-nav { display: flex; align-items: center; gap: 10px; }
.ttc-count { font-size: .78rem; color: var(--c-muted); }
.ttc-bubble button { font-family: var(--font-ui); cursor: pointer; border-radius: 8px; font-size: .88rem; }
.ttc-skip { background: none; border: 0; color: var(--c-muted); padding: 6px 4px; }
.ttc-skip:hover { color: var(--c-text); }
.ttc-back { background: #fff; border: 1px solid var(--c-border); color: var(--c-primary); padding: 8px 14px; }
.ttc-next { background: var(--c-primary); border: 1px solid var(--c-primary); color: #fff; padding: 8px 16px; font-weight: 600; }
.ttc-next:hover { filter: brightness(1.08); }
.ttc-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--c-muted); cursor: pointer; }
.ttc-close:hover { color: var(--c-text); }

/* ============================================================
   Help drawer
   ============================================================ */
.ttc-drawer-back { position: fixed; inset: 0; z-index: 10001; background: rgba(12,40,42,.45);
                   opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.ttc-drawer-back.open { opacity: 1; visibility: visible; }
.ttc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 10002; width: 380px; max-width: 90vw;
    background: var(--c-bg); box-shadow: -12px 0 40px rgba(12,40,42,.25);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    display: flex; flex-direction: column;
}
.ttc-drawer.open { transform: translateX(0); }
.ttc-drawer-head { display: flex; align-items: center; justify-content: space-between;
                   padding: 20px 22px; background: var(--c-primary); color: #fff; position: sticky; top: 0; }
.ttc-drawer-head h2 { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: #fff; }
.ttc-drawer-head .ttc-close { position: static; color: rgba(255,255,255,.8); font-size: 1.6rem; }
.ttc-drawer-head .ttc-close:hover { color: #fff; }
.ttc-drawer-body { padding: 22px; }

.ttc-tour-start { width: 100%; background: var(--c-accent); color: var(--c-primary); border: 0;
                  border-radius: 10px; padding: 13px; font-weight: 700; font-size: .95rem; cursor: pointer; margin-bottom: 18px; }
.ttc-tour-start:hover { filter: brightness(1.04); }
.ttc-help-intro { color: var(--c-muted); font-size: .92rem; margin: 0 0 16px; }
.ttc-help-sec { margin-bottom: 20px; }
.ttc-help-sec h3 { font-family: var(--font-head); font-size: 1rem; color: var(--c-primary); margin: 0 0 8px; }
.ttc-help-sec ul { margin: 0; padding-left: 18px; }
.ttc-help-sec li { font-size: .9rem; line-height: 1.6; color: var(--c-text); margin-bottom: 5px; }
.ttc-help-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.ttc-help-links a { font-size: .88rem; color: var(--c-secondary); font-weight: 600; text-decoration: none; }
.ttc-help-support a { color: var(--c-secondary); }
.ttc-reset { background: none; border: 1px solid var(--c-border); color: var(--c-muted); border-radius: 8px;
             padding: 8px 12px; font-size: .82rem; cursor: pointer; }
.ttc-reset:hover { color: var(--c-text); border-color: var(--c-secondary); }

@media (max-width: 640px) {
    .ttc-bubble { width: calc(100vw - 24px); }
}
