/* ============================================================
   ONBOARDING OVERLAY
   ============================================================ */

.tiq-ob-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    backdrop-filter: blur(6px);
    padding: 1rem;
    animation: tiq-ob-fade-in 0.25s ease;
}

@keyframes tiq-ob-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tiq-ob-modal {
    background: var(--tiq-surface);
    border: 1.5px solid var(--tiq-border);
    border-radius: 16px;
    box-shadow: var(--tiq-shadow-lg), 0 0 0 1px rgba(0,178,122,0.1);
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: relative;
    animation: tiq-ob-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Green top stripe */
.tiq-ob-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tiq-green), var(--tiq-green-bright));
    border-radius: 16px 16px 0 0;
}

@keyframes tiq-ob-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Progress dots */
.tiq-ob-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tiq-ob-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tiq-border-2);
    transition: all 0.2s;
}

.tiq-ob-dot--active {
    background: var(--tiq-green);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,178,122,0.4);
}

.tiq-ob-dot--done {
    background: rgba(0,178,122,0.35);
}

/* Step container */
.tiq-ob-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
}

/* Map illustration */
.tiq-ob-illustration {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--tiq-border);
    box-shadow: var(--tiq-shadow-sm);
}

.tiq-ob-map-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Step emoji icon */
.tiq-ob-step-emoji {
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
    margin-top: 0.5rem;
}

/* Headline */
.tiq-ob-headline {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tiq-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
}

/* Body copy */
.tiq-ob-body {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--tiq-text-2);
    line-height: 1.7;
    text-align: center;
}

/* Feature tags on step 1 */
.tiq-ob-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.tiq-ob-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid;
    letter-spacing: 0.01em;
}

.tiq-ob-tag--green {
    color: #15803D;
    background: #F0FDF4;
    border-color: #86EFAC;
}

.tiq-ob-tag--amber {
    color: #B45309;
    background: #FFFBEB;
    border-color: #FDE68A;
}

.tiq-ob-tag--red {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

/* Steps list on step 2 */
.tiq-ob-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tiq-ob-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.tiq-ob-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tiq-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(0,178,122,0.3);
}

.tiq-ob-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.875rem;
}

.tiq-ob-step-text strong {
    color: var(--tiq-text);
    font-weight: 700;
}

.tiq-ob-step-text span {
    color: var(--tiq-text-3);
    line-height: 1.5;
}

.tiq-ob-optional-label {
    font-weight: 400;
    color: var(--tiq-text-4);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Bonus tips on step 3 */
.tiq-ob-bonus {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tiq-ob-bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--tiq-surface-2);
    border: 1.5px solid var(--tiq-border);
    border-radius: var(--tiq-radius);
    padding: 0.85rem 1rem;
}

.tiq-ob-bonus-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.tiq-ob-bonus-text {
    font-size: 0.865rem;
    color: var(--tiq-text-2);
    line-height: 1.6;
}

.tiq-ob-bonus-text strong {
    color: var(--tiq-text);
    font-weight: 700;
    display: block;
    margin-bottom: 0.15rem;
}

/* Navigation row */
.tiq-ob-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.tiq-ob-btn-back {
    background: transparent;
    border: 1.5px solid var(--tiq-border-2);
    border-radius: var(--tiq-radius);
    color: var(--tiq-text-3);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.tiq-ob-btn-back:hover {
    border-color: var(--tiq-text-3);
    color: var(--tiq-text-2);
}

.tiq-ob-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    background: var(--tiq-surface-2);
    color: var(--tiq-text);
    border: 1.5px solid var(--tiq-border-2);
    border-radius: var(--tiq-radius);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.tiq-ob-btn-next:hover {
    border-color: var(--tiq-green);
    color: var(--tiq-green-dim);
    background: var(--tiq-green-light);
}

.tiq-ob-btn-start {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.75rem;
    background: var(--tiq-green);
    color: #fff;
    border: none;
    border-radius: var(--tiq-radius);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 10px rgba(0,178,122,0.4);
    position: relative;
    overflow: hidden;
}

.tiq-ob-btn-start::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.tiq-ob-btn-start:hover {
    background: var(--tiq-green-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,178,122,0.5);
}

/* Skip link */
.tiq-ob-skip {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0.6rem;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--tiq-text-4);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}

.tiq-ob-skip:hover { color: var(--tiq-text-3); text-decoration: underline; }

/* ============================================================
   GUIDED TOUR TOGGLE — lives in the input panel header
   ============================================================ */

/* Header row: logo left, toggle right */
.fi-input-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

/* The label wraps the checkbox + text, making the whole thing clickable */
.tiq-guided-tour-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    padding: 0.3rem 0.65rem 0.3rem 0.5rem;
    border: 1.5px solid var(--tiq-border);
    border-radius: 20px;
    background: var(--tiq-surface-2);
    transition: all 0.15s;
    white-space: nowrap;
}

.tiq-guided-tour-toggle:hover {
    border-color: var(--tiq-green);
    background: var(--tiq-green-light);
}

/* Native checkbox, styled minimally — let the OS render it */
.tiq-guided-tour-checkbox {
    width: 14px;
    height: 14px;
    accent-color: var(--tiq-green);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.tiq-guided-tour-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tiq-text-3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
}

/* When checked, highlight the label text green */
.tiq-guided-tour-toggle:has(.tiq-guided-tour-checkbox:checked) {
    border-color: rgba(0,178,122,0.3);
    background: var(--tiq-green-light);
}

.tiq-guided-tour-toggle:has(.tiq-guided-tour-checkbox:checked) .tiq-guided-tour-label {
    color: var(--tiq-green-dim);
}

/* Mobile */
@media (max-width: 600px) {
    .tiq-ob-modal { padding: 1.5rem 1.25rem 1.25rem; }
    .tiq-ob-headline { font-size: 1.15rem; }
    .tiq-ob-step { min-height: 240px; }
    .tiq-ob-btn-start { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    .tiq-guided-tour-label { display: none; } /* icon-only on very small screens */
}
