/*
 * My account (resources/views/account/*, + bemyguest/bookings inside the shell).
 * Builds on tripdo-theme.css tokens (--td-*) and the form pieces in site-header.css
 * (.tp-field, .tp-input, .tp-input-eye, .tp-ec email-code box). Phones first.
 */
.tp-my {
    --my-radius: 16px;
    --my-line: var(--td-border, #e2e7ef);
    --my-ink: var(--td-navy, #2c4265);
    --my-muted: var(--td-muted, #6b788d);
    --my-grad: linear-gradient(135deg, #ffb800, #f15a24);
    background: var(--td-surface-2, #f6f8fb);
    color: var(--my-ink);
    padding: 20px 0 64px;
    min-height: 60vh;
}
.tp-my-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.tp-my a { text-decoration: none; }
.tp-my h1, .tp-my h2, .tp-my h3 { color: var(--my-ink); }

/* ── Shell: side menu + page ─────────────────────────────────────── */
.tp-my__wrap { display: grid; gap: 18px; align-items: start; }
.tp-my__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }

.tp-my-side { min-width: 0; }
.tp-my-me { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tp-my-me__avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
    background: var(--my-grad); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(241, 90, 36, .25);
}
.tp-my-me__text { display: grid; min-width: 0; line-height: 1.3; }
.tp-my-me__name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-my-me__mail { font-size: 13px; color: var(--my-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-my-me .tp-my-chip { justify-self: start; margin-top: 4px; }

/* Phones: one swipeable row of chips */
.tp-my-nav {
    display: flex; gap: 8px; margin: 0 calc(var(--td-gutter, 16px) * -1); padding: 2px var(--td-gutter, 16px) 6px;
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--td-gutter, 16px);
}
.tp-my-nav::-webkit-scrollbar { display: none; }
.tp-my-nav__out { margin: 0; display: contents; }
.tp-my-nav__item {
    display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border: 1px solid var(--my-line); border-radius: 999px;
    background: #fff; color: var(--my-ink) !important; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
    scroll-snap-align: start; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tp-my-nav__item .tp-my-ico { width: 18px; height: 18px; color: var(--my-muted); }
.tp-my-nav__item:hover { border-color: var(--td-border-strong, #cfd7e3); }
.tp-my-nav__item.is-active { background: var(--my-ink); border-color: var(--my-ink); color: #fff !important; }
.tp-my-nav__item.is-active .tp-my-ico { color: var(--td-sun, #ffb800); }

@media (min-width: 992px) {
    .tp-my { padding: 36px 0 88px; }
    .tp-my__wrap { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; }
    .tp-my__main { gap: 20px; }
    .tp-my-side {
        position: sticky; top: 96px; padding: 20px 14px 14px; border: 1px solid var(--my-line); border-radius: var(--my-radius); background: #fff;
        box-shadow: var(--td-shadow-sm, 0 1px 2px rgba(44, 66, 101, .08));
    }
    .tp-my-me { flex-direction: column; text-align: center; gap: 10px; padding: 0 6px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--my-line); }
    .tp-my-me__avatar { width: 68px; height: 68px; font-size: 23px; }
    .tp-my-me__text { justify-items: center; width: 100%; }
    .tp-my-me .tp-my-chip { justify-self: center; }
    .tp-my-nav { display: grid; gap: 2px; margin: 0; padding: 0; overflow: visible; }
    .tp-my-nav__out { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--my-line); }
    .tp-my-nav__item { width: 100%; gap: 12px; padding: 11px 14px; border: 0; border-radius: 12px; background: none; font-size: 15px; }
    .tp-my-nav__item:hover { background: var(--td-surface-2, #f6f8fb); }
    .tp-my-nav__item.is-active { position: relative; background: var(--td-sun-50, #fff6dc); color: var(--my-ink) !important; font-weight: 600; }
    .tp-my-nav__item.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--my-grad); }
    .tp-my-nav__item.is-active .tp-my-ico { color: var(--td-coral, #f15a24); }
}

/* ── Building blocks ─────────────────────────────────────────────── */
.tp-my-head { margin: 4px 0 2px; }
.tp-my-head__title { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.tp-my-head__sub { margin: 6px 0 0; font-size: 15px; color: var(--my-muted); }
.tp-my-back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--td-teal, #2c7f83) !important; }
.tp-my-back .tp-my-ico { transform: rotate(180deg); width: 18px; height: 18px; }
.tp-my-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--td-coral, #f15a24); }
.tp-my-muted { margin: 0; font-size: 14px; color: var(--my-muted); }

.tp-my-card {
    padding: 20px; border: 1px solid var(--my-line); border-radius: var(--my-radius); background: #fff;
    box-shadow: var(--td-shadow-sm, 0 1px 2px rgba(44, 66, 101, .08));
}
.tp-my-card--soft { background: transparent; box-shadow: none; border-style: dashed; }
.tp-my-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tp-my-card__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.tp-my-card__sub { margin: 4px 0 0; font-size: 14px; color: var(--my-muted); }
@media (min-width: 768px) { .tp-my-card { padding: 24px 28px; } }

.tp-my-link { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 14px; font-weight: 600; color: var(--td-teal, #2c7f83) !important; }
.tp-my-link .tp-my-ico { width: 18px; height: 18px; }
.tp-my-link:hover { color: var(--my-ink) !important; }

.tp-my-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--my-ink); color: #fff !important; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tp-my-btn .tp-my-ico { width: 18px; height: 18px; }
.tp-my-btn:hover { transform: translateY(-1px); }
.tp-my-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.tp-my-btn--block { display: flex; width: 100%; margin-top: 18px; }
/* Password strength (Login & security, reset password): four bars that fill and change colour as the password grows. */
.tp-pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 4px; }
.tp-pw-meter span { height: 4px; border-radius: 4px; background: var(--my-line, #e2e7ef); transition: background-color .2s ease; }
.tp-pw-meter[data-level="1"] span:nth-child(-n+1) { background: #e2483d; }
.tp-pw-meter[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.tp-pw-meter[data-level="3"] span:nth-child(-n+3) { background: #2cb3ac; }
.tp-pw-meter[data-level="4"] span { background: #0a7a43; }
.tp-pw-label { margin: 0; font-size: 12.5px; color: var(--my-muted, #6b788d); }
.tp-pw-label:empty { display: none; }
.tp-my-btn--sun { background: var(--td-sun, #ffb800); color: var(--td-navy-900, #1f2f4a) !important; }
.tp-my-btn--sun:hover { background: var(--td-sun-600, #e6a600); box-shadow: 0 6px 16px rgba(255, 184, 0, .35); }
.tp-my-btn--line { background: #fff; color: var(--my-ink) !important; box-shadow: inset 0 0 0 1.5px var(--td-border-strong, #cfd7e3); }
.tp-my-btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--my-ink); }
.tp-my-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tp-my-btn.is-done { background: var(--td-green, #006837); color: #fff !important; }
.tp-my-btn .tp-spinner { border-color: rgba(31, 47, 74, .25); border-top-color: var(--td-navy-900, #1f2f4a); }
.tp-my-btn[aria-busy="true"] .tp-spinner { display: inline-block; }
.tp-my-btn[aria-busy="true"] .tp-my-ico { display: none; }

.tp-my-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tp-my-chip .tp-my-ico { width: 15px; height: 15px; }
.tp-my-chip--ok { background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837); }

.tp-my-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tp-my-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tp-my-pill--ok { background: #e7f6ec; color: #006837; }
.tp-my-pill--wait { background: #fff4e5; color: #b54708; }
.tp-my-pill--bad { background: #fdecec; color: #b42318; }
.tp-my-pill--neutral { background: #eef1f6; color: #4a5a73; }

.tp-my-flash {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837);
    font-size: 15px; font-weight: 500; border: 1px solid #b7e0c6; transition: opacity .4s ease, transform .4s ease; animation: tp-my-in .3s ease;
}
.tp-my-flash.is-gone { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.tp-my-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.tp-my-alert--ok { background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837); border: 1px solid #b7e0c6; }
.tp-my-alert--bad { background: var(--td-coral-50, #fdebe4); color: #9a3412; border: 1px solid #f6c3b0; }
@keyframes tp-my-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.tp-my-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--td-surface-2, #f6f8fb); font-size: 14px; line-height: 1.5; color: var(--td-body, #46536b); }
.tp-my-note .tp-my-ico { width: 18px; height: 18px; margin-top: 1px; color: var(--td-teal, #2c7f83); }
.tp-my-note a { font-weight: 600; color: var(--td-teal, #2c7f83); }
.tp-my__main > .tp-my-note { margin: 0; background: transparent; padding: 0 4px; }

.tp-my-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 18px; border-radius: 14px; background: var(--td-surface-2, #f6f8fb); }
.tp-my-empty > div { flex: 1 1 220px; }
.tp-my-empty h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.tp-my-empty p { margin: 0; font-size: 14px; color: var(--my-muted); }
.tp-my-empty__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: #fff; color: var(--td-teal, #2c7f83); box-shadow: var(--td-shadow-sm); }

/* ── Overview ────────────────────────────────────────────────────── */
.tp-my-hero {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 24px 22px;
    border-radius: 20px; overflow: hidden; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(255, 184, 0, .35), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(44, 179, 172, .35), transparent 60%), var(--td-navy, #2c4265);
}
.tp-my-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #ffb800, #f15a24 30%, #2cb3ac 65%, #8bc247); }
.tp-my-hero__text { flex: 1 1 280px; }
.tp-my-hero .tp-my-eyebrow { color: var(--td-sun, #ffb800); }
.tp-my-hero__title { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 700; line-height: 1.15; color: #fff !important; }
.tp-my-hero__sub { margin: 8px 0 0; max-width: 520px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
@media (min-width: 768px) { .tp-my-hero { padding: 32px 34px; } }

.tp-my-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .tp-my-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .tp-my-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-my-stat {
    display: grid; gap: 2px; align-content: start; padding: 16px; border: 1px solid var(--my-line); border-radius: var(--my-radius); background: #fff;
    color: var(--my-ink) !important; box-shadow: var(--td-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
a.tp-my-stat:hover { transform: translateY(-2px); box-shadow: var(--td-shadow, 0 4px 16px rgba(44, 66, 101, .1)); }
.tp-my-stat strong { margin-top: 10px; font-size: 26px; font-weight: 700; line-height: 1.1; }
.tp-my-stat > span:last-child { font-size: 13px; color: var(--my-muted); }
.tp-my-stat__icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; }
.tp-my-stat__icon .tp-my-ico { width: 20px; height: 20px; }
.tp-my-stat__icon--sun { background: var(--td-sun-50, #fff6dc); color: #b37800; }
.tp-my-stat__icon--teal { background: var(--td-teal-50, #e7f4f3); color: var(--td-teal, #2c7f83); }
.tp-my-stat__icon--coral { background: var(--td-coral-50, #fdebe4); color: var(--td-coral, #f15a24); }
.tp-my-stat__icon--green { background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837); }
.tp-my-stat__icon--navy { background: var(--td-navy-50, #eef2f8); color: var(--my-ink); }

.tp-my-trip { display: grid; gap: 16px; }
.tp-my-trip__media { aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; background: #e9eef5; }
.tp-my-trip__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tp-my-trip:hover .tp-my-trip__media img { transform: scale(1.05); }
.tp-my-trip__date { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--td-teal, #2c7f83); }
.tp-my-trip__date .tp-my-ico { width: 16px; height: 16px; }
.tp-my-trip__title { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.tp-my-trip__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; font-size: 14px; color: var(--td-body, #46536b); }
.tp-my-trip__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tp-my-trip__meta .tp-my-ico { width: 17px; height: 17px; color: var(--my-muted); }
.tp-my-trip__countdown { padding: 3px 10px; border-radius: 999px; background: var(--td-sun-50, #fff6dc); color: #8a5a00; font-weight: 600; font-size: 13px; }
.tp-my-trip__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (min-width: 768px) { .tp-my-trip { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: center; } .tp-my-trip__media { aspect-ratio: 4 / 3; } }

.tp-my-tiles { display: grid; gap: 12px; }
@media (min-width: 640px) { .tp-my-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tp-my-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-my-tile {
    display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--my-line); border-radius: var(--my-radius); background: #fff;
    color: var(--my-ink) !important; box-shadow: var(--td-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tp-my-tile:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--td-shadow, 0 4px 16px rgba(44, 66, 101, .1)); }
.tp-my-tile > .tp-my-ico { color: var(--my-muted); transition: transform .2s ease; }
.tp-my-tile:hover > .tp-my-ico { transform: translateX(3px); color: var(--td-coral, #f15a24); }
.tp-my-tile__icon { display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: 14px; background: var(--td-navy-50, #eef2f8); color: var(--my-ink); transition: background .2s ease, color .2s ease; }
.tp-my-tile:hover .tp-my-tile__icon { background: var(--my-grad); color: #fff; }
.tp-my-tile__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tp-my-tile__text strong { font-size: 15px; font-weight: 600; }
.tp-my-tile__text span { font-size: 13px; line-height: 1.4; color: var(--my-muted); }

/* ── Forms ───────────────────────────────────────────────────────── */
.tp-my-form .tp-field:last-of-type { margin-bottom: 0; }
.tp-my-grid2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .tp-my-grid2 { grid-template-columns: 1fr 1fr; } }
.tp-my-narrow { max-width: 520px; }
.tp-my-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.tp-my .tp-input:focus { outline: none; }
.tp-my-textarea { height: auto; min-height: 160px; padding: 12px 14px; }
.tp-my-file { height: auto; padding: 11px 12px; font-size: 14px; }

.tp-my-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.tp-my-row__icon { display: inline-flex; width: 42px; height: 42px; flex: none; align-items: center; justify-content: center; border-radius: 12px; background: var(--td-navy-50, #eef2f8); color: var(--my-ink); }
.tp-my-row__icon--ok { background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837); }
.tp-my-row__text { display: grid; gap: 3px; flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--my-muted); line-height: 1.45; }
.tp-my-row__text strong { font-size: 15px; font-weight: 600; color: var(--my-ink); word-break: break-word; }
.tp-my-row__text .tp-my-chip { justify-self: start; }
.tp-my-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tp-my-list > li { padding: 14px 0; border-top: 1px solid var(--my-line); }
.tp-my-list > li:first-child { padding-top: 0; border-top: 0; }
.tp-my-list > li:last-child { padding-bottom: 0; }
.tp-my-reveal { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--my-line); animation: tp-my-in .25s ease; }
.tp-my-reveal > .tp-my-muted { margin-bottom: 14px; }

/* Toggle switch row (email preferences) */
.tp-my-switchrow { display: flex; align-items: center; gap: 14px; margin: 0; }
.tp-my-switchrow.is-busy { opacity: .6; pointer-events: none; }
.tp-my-switchrow__text { display: grid; gap: 3px; flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--my-muted); cursor: pointer; }
.tp-my-switchrow__text strong { font-size: 15px; font-weight: 600; color: var(--my-ink); }
.tp-my-switch {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px;
    background: #cfd7e3; cursor: pointer; transition: background-color .2s ease;
}
.tp-my-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 47, 74, .3); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.tp-my-switch:checked { background: var(--td-teal, #2c7f83); }
.tp-my-switch:checked::after { transform: translateX(20px); }
.tp-my-switch:focus-visible { outline: none; box-shadow: var(--td-focus); }

/* ── Confirm email / log in page (centred card) ──────────────────── */
.tp-my--center { display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 72px; }
.tp-my-verify {
    width: 100%; max-width: 480px; padding: 28px 22px; border: 1px solid var(--my-line); border-radius: 20px; background: #fff;
    box-shadow: var(--td-shadow, 0 4px 16px rgba(44, 66, 101, .1)); position: relative; overflow: hidden;
}
.tp-my-verify::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffb800, #f15a24 30%, #2cb3ac 65%, #8bc247); }
.tp-my-verify__badge { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 18px; background: var(--my-grad); color: #fff; }
.tp-my-verify__badge .tp-my-ico { width: 28px; height: 28px; }
.tp-my-verify__title { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.tp-my-verify__sub { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--my-muted); }
.tp-my-verify__actions { display: grid; gap: 10px; }
.tp-my-verify__perks { list-style: none; display: grid; gap: 8px; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--td-surface-2, #f6f8fb); }
.tp-my-verify__perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tp-my-verify__perks .tp-my-ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--td-teal-50, #e7f4f3); color: var(--td-teal, #2c7f83); }
.tp-my-verify__out { margin: 18px 0 0; font-size: 14px; color: var(--my-muted); text-align: center; }
@media (min-width: 576px) { .tp-my-verify { padding: 36px 36px 30px; } .tp-my--center { padding-top: 56px; } }

/* ── Refer & earn ────────────────────────────────────────────────── */
.tp-my-promo { display: grid; gap: 22px; background: radial-gradient(100% 120% at 100% 0%, var(--td-sun-50, #fff6dc), #fff 60%); }
.tp-my-steps { list-style: none; display: grid; gap: 12px; margin: 16px 0 0; padding: 0; }
.tp-my-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--td-body, #46536b); }
.tp-my-steps span { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--my-grad); color: #fff; font-weight: 700; font-size: 14px; }
@media (min-width: 992px) { .tp-my-promo { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; } }

.tp-my-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--td-border-strong, #cfd7e3); border-radius: 14px; background: var(--td-surface-2, #f6f8fb); }
.tp-my-copy__icon { color: var(--td-teal, #2c7f83); display: inline-flex; }
.tp-my-copy__input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--my-ink); text-overflow: ellipsis; }
.tp-my-copy__input:focus { outline: none; }
.tp-my-maker .tp-my-copy { margin-top: 4px; animation: tp-my-in .2s ease; }
.tp-my-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-my-share__btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--my-line); border-radius: 999px; background: #fff;
    color: var(--my-ink) !important; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.tp-my-share__btn:hover { border-color: var(--td-border-strong, #cfd7e3); background: var(--td-surface-2, #f6f8fb); }
.tp-my-share__btn .tp-my-ico { width: 18px; height: 18px; color: var(--my-muted); }
.tp-my-share__btn--wa .tp-my-ico { color: #25d366; }
.tp-my-details { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--my-line); }
.tp-my-details summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--td-teal, #2c7f83); cursor: pointer; list-style: none; }
.tp-my-details summary::-webkit-details-marker { display: none; }
.tp-my-details summary .tp-my-ico { width: 17px; height: 17px; }
.tp-my-details[open] summary { margin-bottom: 10px; }
.tp-my-details > .tp-my-muted { margin-bottom: 12px; }
.tp-my-refform__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tp-my-refform__row .tp-input { flex: 1 1 180px; width: auto; padding-left: 62px; }
.tp-my-refform__row { position: relative; }
.tp-my-refform__prefix { position: absolute; left: 14px; top: 25px; transform: translateY(-50%); font-size: 15px; color: var(--my-muted); pointer-events: none; }
.tp-my-refform .tp-field { margin: 0; }

/* Bookings made through the link: a table on wide screens, cards on phones */
.tp-my-table { display: grid; }
.tp-my-table__head { display: none; }
.tp-my-table__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--my-line); font-size: 14px; }
.tp-my-table__row:first-of-type { border-top: 0; }
.tp-my-table__row > span[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--my-muted); }
.tp-my-table__main { grid-column: 1 / -1; display: grid; gap: 2px; font-weight: 600; }
.tp-my-table__main a { color: var(--my-ink) !important; }
.tp-my-table__main a:hover { color: var(--td-teal, #2c7f83) !important; }
.tp-my-table__main small { font-size: 12px; font-weight: 400; color: var(--my-muted); }
.tp-my-table__num { font-weight: 700; }
@media (min-width: 768px) {
    .tp-my-table__head, .tp-my-table__row { grid-template-columns: minmax(0, 2.4fr) 1fr 1fr .9fr; align-items: center; }
    .tp-my-table__head { display: grid; gap: 12px; padding: 0 0 10px; border-bottom: 1px solid var(--my-line); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--my-muted); }
    .tp-my-table__head span:last-child, .tp-my-table__num { text-align: right; }
    .tp-my-table__row:first-of-type { border-top: 0; }
    .tp-my-table__row > span[data-label]::before { display: none; }
    .tp-my-table__main { grid-column: auto; }
}

/* My bookings inside the shell (bemyguest/bookings) */
.tp-co.tp-mb--in-account { padding: 0; min-height: 0; background: transparent; }
.tp-mb--in-account .tp-my-head { margin-bottom: 18px; }
/* Narrower than the full-width page: photo | details, with price and buttons along the bottom */
@media (min-width: 768px) {
    .tp-mb--in-account .tp-mb-card { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: 1fr auto; }
    .tp-mb--in-account .tp-mb-card__media { grid-row: 1 / span 2; }
    .tp-mb--in-account .tp-mb-card__body { padding: 20px 22px 0; }
    .tp-mb--in-account .tp-mb-card__side { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; padding: 14px 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .tp-my *, .tp-my *::before, .tp-my *::after { animation: none !important; transition: none !important; }
}

/* ── Overview: "Complete your travel profile" reminder (partials/travel-profile) ── */
.tp-my-tpf {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--my-radius); color: var(--my-ink) !important;
    background: linear-gradient(120deg, #fff8e6 0%, #ffefe6 100%); border: 1px solid #ffe2c4; transition: transform .15s ease, box-shadow .15s ease;
}
.tp-my-tpf:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(241, 90, 36, .12); }
.tp-my-tpf__ring {
    flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: conic-gradient(#f15a24 calc(var(--p) * 1%), rgba(241, 90, 36, .15) 0);
}
.tp-my-tpf__ring span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 700; }
.tp-my-tpf__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tp-my-tpf__text strong { font-size: 16px; }
.tp-my-tpf__text span { font-size: 13.5px; color: var(--my-muted); }
@media (max-width: 575px) { .tp-my-tpf { flex-wrap: wrap; } .tp-my-tpf__cta { width: 100%; justify-content: center; } }

/* What a partner earns: Refer & earn (account/affiliate, account/_orders) */
.tp-my-earn { margin-top: 4px; }
.tp-my-earn .tp-my-stat strong { font-size: 21px; }
.tp-my-earn__how { margin-top: 14px; line-height: 1.55; }
.tp-my-earn__next { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--td-teal-50, #e7f4f3); font-size: 14px; font-weight: 500; color: var(--my-ink); }
.tp-my-earn__next .tp-my-ico { flex-shrink: 0; width: 18px; height: 18px; color: var(--td-teal, #2c7f83); }
.tp-my-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--td-sun-50, #fff6dc); color: var(--my-ink); font-size: 14px; line-height: 1.5; }
.tp-my-notice .tp-my-ico { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; color: #b37800; }
.tp-my-notice strong { display: block; font-weight: 700; }
.tp-my-notice--stop { background: var(--td-coral-50, #fdebe4); }
.tp-my-notice--stop .tp-my-ico { color: var(--td-coral, #f15a24); }
.tp-my-done { display: flex; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--my-ink); }
.tp-my-done .tp-my-ico { flex-shrink: 0; width: 18px; height: 18px; color: var(--td-green, #006837); }
.tp-my-done a, .tp-my-accept__box a { font-weight: 600; color: var(--td-teal, #2c7f83); }
.tp-my-accept { display: grid; gap: 10px; justify-items: start; margin-bottom: 4px; }
.tp-my-accept__box { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.tp-my-accept > .tp-my-accept__box { margin-top: 0; }
.tp-my-accept__box input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--td-teal, #2c7f83); }
.tp-my-bank { display: grid; gap: 14px; justify-items: stretch; }
.tp-my-bank .tp-field { margin: 0; }
.tp-my-bank > .tp-my-btn { justify-self: start; }
.tp-my-bank__grid { display: grid; gap: 14px; }
.tp-my-bank__off { margin-top: 12px; }
.tp-my-bank .tp-field__hint .tp-my-ico { width: 14px; height: 14px; vertical-align: -2px; }
@media (min-width: 640px) { .tp-my-bank__grid { grid-template-columns: 1fr 1fr; } }
.tp-my-table__earn { display: grid; gap: 4px; justify-items: start; }
.tp-my-table__earn strong { font-weight: 700; }
.tp-my-table__earn small { font-size: 12px; color: var(--my-muted); }
.tp-my-payouts { display: grid; margin: 0; padding: 0; list-style: none; }
.tp-my-payouts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--my-line); font-size: 14px; }
.tp-my-payouts li:first-child { border-top: 0; }
.tp-my-payouts small { display: block; font-size: 12px; color: var(--my-muted); overflow-wrap: anywhere; }
@media (min-width: 768px) {
    .tp-my-table--earn .tp-my-table__head, .tp-my-table--earn .tp-my-table__row { grid-template-columns: minmax(0, 2.2fr) .9fr .9fr .8fr 1.1fr; }
    .tp-my-table--earn .tp-my-table__head span:nth-child(4) { text-align: right; }
    .tp-my-table__earn { justify-items: end; text-align: right; }
}

/* ── Login & security (account/security, owner 2026-11-06) ───────────────────────────────────── */
/* At a glance: three small tiles — email confirmed, password set, alerts by email. */
.tp-sec-glance { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 20px; }
@media (min-width: 768px) { .tp-sec-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-sec-glance__item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--my-line, #e2e7ef); border-radius: 16px; background: #fff; }
.tp-sec-glance__icon { display: inline-flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: var(--td-coral-50, #fdebe4); color: #c2410c; }
.tp-sec-glance__item.is-ok .tp-sec-glance__icon { background: var(--td-green-50, #e5f2ea); color: var(--td-green, #006837); }
.tp-sec-glance__icon .tp-my-ico { width: 18px; height: 18px; }
.tp-sec-glance__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--my-muted, #6b788d); }
.tp-sec-glance__text strong { font-size: 14px; font-weight: 600; color: var(--my-ink, #1f2f4a); }
.tp-sec-glance__text span { overflow: hidden; text-overflow: ellipsis; }
/* The password form beside short tips (stacked on phones). */
.tp-sec-split { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) { .tp-sec-split { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; } }
.tp-sec-split .tp-my-form { max-width: 480px; }
.tp-sec-tips { padding: 16px 18px; border-radius: 16px; background: var(--td-surface-2, #f6f8fb); font-size: 14px; line-height: 1.55; color: var(--td-body, #46536b); }
.tp-sec-tips p { margin: 0 0 10px; }
.tp-sec-tips p:last-child { margin-bottom: 0; }
.tp-sec-tips__title { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--my-ink, #1f2f4a); }
.tp-sec-tips__title .tp-my-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--td-teal, #2c7f83); }
.tp-sec-tips__muted { font-size: 13px; color: var(--my-muted, #6b788d); }
.tp-sec-tips a { font-weight: 600; color: var(--td-teal, #2c7f83); }
/* Log out other devices: the password and the button on one line on wider screens. */
.tp-sec-devices { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; max-width: 640px; }
.tp-sec-devices .tp-field { flex: 1 1 260px; margin: 0; }
.tp-sec-devices .tp-my-btn { flex: none; }
.tp-sec-devices .tp-field__error { margin-bottom: 0; }
/* A field that can't be changed here (the email of a password-reset link). */
.tp-my .tp-input[readonly] { background: var(--td-surface-2, #f6f8fb); color: var(--my-muted, #6b788d); cursor: default; }
/* "set one by email" on Login & security: a button that looks like the link it replaced. */
.tp-sec-tips__form { margin: 0; }
.tp-sec-tips__link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--td-teal, #2c7f83); cursor: pointer; }
.tp-sec-tips__link:hover { text-decoration: underline; color: var(--td-navy, #2c4265); }

/* ── Personal details: how complete, what is missing (App\Support\ProfileDetails), owner 2026-11-07 ── */
.tp-my-complete { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--my-radius, 16px); background: linear-gradient(120deg, #fff8e6 0%, #ffefe6 100%); border: 1px solid #ffe2c4; }
.tp-my-complete__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--my-ink, #1f2f4a); }
.tp-my-complete__top span { font-size: 13px; font-weight: 600; color: #c2410c; }
.tp-my-complete__bar { height: 8px; margin: 10px 0 12px; border-radius: 999px; background: rgba(241, 90, 36, .15); overflow: hidden; }
.tp-my-complete__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb800, #f15a24); transition: width .4s ease; }
.tp-my-complete__todo { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-my-complete__todo a { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #ffd2b0; color: #c2410c !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.tp-my-complete__todo a:hover { border-color: #f15a24; }
.tp-my-needed { padding: 14px; margin: 0 -14px; border-radius: 14px; background: #fff8f2; box-shadow: inset 0 0 0 1px #ffd2b0; }
.tp-my-needed__tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f15a24; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.tp-my-optional { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--my-muted, #6b788d); }
.tp-my-nav__dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #f15a24; flex: none; }
.tp-my-tpf--phone { background: linear-gradient(120deg, #fff4e5 0%, #ffe9dc 100%); border-color: #ffcfa8; }
.tp-my-tpf__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: #f15a24; box-shadow: 0 4px 12px rgba(241, 90, 36, .15); }
.tp-my-tpf__icon svg { width: 24px; height: 24px; fill: currentColor; }

/* ── Saved travellers (account/profile, App\Support\Travellers) ── */
.tp-my-travellers .tp-my-row { flex-wrap: wrap; }
.tp-my-travellers__avatar { width: 40px; height: 40px; font-size: 14px; flex: none; }
.tp-my-travellers__edit { flex-basis: 100%; }
.tp-my-travellers__empty { margin: 0; }
.tp-my-btn--danger { color: #b42318 !important; }
.tp-my-btn--danger:hover { border-color: #b42318 !important; background: #fdecec !important; }
.tp-my-row form { margin: 0; }

/* ── My account → Notifications (account/notifications), owner 2026-11-07 ── */
.tp-my-nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f15a24; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.tp-my-notes { padding: 6px; }
.tp-my-notes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tp-my-note { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; color: var(--my-ink, #1f2f4a) !important; text-decoration: none !important; transition: background .15s; }
.tp-my-note:hover { background: #f6f8fb; }
.tp-my-note.is-unread { background: #f4fbfb; }
.tp-my-note__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #eef1f6; color: #4a5a73; }
.tp-my-note__icon .tp-my-ico { width: 22px; height: 22px; fill: currentColor; }
.tp-my-note--ok .tp-my-note__icon { background: #e7f6ec; color: #006837; }
.tp-my-note--bad .tp-my-note__icon { background: #fdecec; color: #b42318; }
.tp-my-note--wait .tp-my-note__icon { background: #fff4e5; color: #b54708; }
.tp-my-note--sun .tp-my-note__icon { background: #fff8e1; color: #c27c00; }
.tp-my-note__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.tp-my-note__text strong { font-size: 15px; line-height: 1.35; }
.tp-my-note__text span { font-size: 14px; line-height: 1.5; color: #4a5a73; }
.tp-my-note__text time { font-size: 12px; color: #8a96a8; }
.tp-my-note__new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f15a24; color: #fff !important; font-size: 11px !important; font-weight: 700; line-height: 1.6 !important; vertical-align: 1px; }
.tp-my-note__go { flex: none; color: #b8c3d4; }
.tp-my-note__go .tp-my-ico { width: 18px; height: 18px; fill: currentColor; }
.tp-my-notes__empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.tp-my-notes__empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #f1f4f8; color: #8a96a8; margin-bottom: 6px; }
.tp-my-notes__empty-icon .tp-my-ico { width: 26px; height: 26px; fill: currentColor; }
.tp-my-notes__empty span { font-size: 14px; color: #6b788d; }
.tp-my-notes__pages { padding: 12px 10px 6px; }

/* ── Refer & earn: partner toolkit (owner, 2026-11-11) ─────────────────── */
/* Their code at checkout + a ready-made caption. */
.tp-my-code__value .tp-my-copy__input { font-weight: 700; letter-spacing: .08em; }
.tp-my-code__label { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--my-muted); }
.tp-my-code__note { margin: 10px 0 0; font-size: 13px; }
/* Best activities to promote. */
.tp-my-best { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-my-best__item { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--my-line); border-radius: 14px; background: #fff; }
.tp-my-best__item img, .tp-my-best__noimg { display: block; width: 104px; height: 78px; border-radius: 10px; object-fit: cover; background: #eef1f6; }
.tp-my-best__text { display: grid; gap: 2px; min-width: 0; }
.tp-my-best__title { font-weight: 600; color: var(--my-ink) !important; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-my-best__title:hover { text-decoration: underline; }
.tp-my-best__text .tp-my-muted { font-size: 13px; }
.tp-my-best__earn { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #e7f6ec; color: #006837; font-size: 12.5px; font-weight: 600; }
.tp-my-best__actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) {
    .tp-my-best__item { grid-template-columns: 84px minmax(0, 1fr); }
    .tp-my-best__item img, .tp-my-best__noimg { width: 84px; height: 64px; }
    .tp-my-best__actions { grid-column: 1 / -1; flex-direction: row; }
    .tp-my-best__actions .tp-my-btn { flex: 1 1 0; justify-content: center; }
}
/* Banner maker. */
.tp-my-banner { display: grid; gap: 14px; }
.tp-my-banner__controls { display: grid; gap: 12px; }
@media (min-width: 720px) { .tp-my-banner__controls { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.tp-my-banner__sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-my-banner__sizes button { display: grid; justify-items: center; gap: 1px; padding: 8px 14px; border: 1px solid var(--my-line); border-radius: 12px; background: #fff; color: var(--my-ink); font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.tp-my-banner__sizes button small { font-size: 11px; font-weight: 400; color: var(--my-muted); }
.tp-my-banner__sizes button.is-on { border-color: var(--my-ink); background: var(--my-ink); color: #fff; }
.tp-my-banner__sizes button.is-on small { color: rgba(255, 255, 255, .8); }
.tp-my-banner__stage { display: flex; justify-content: center; padding: 14px; border-radius: 14px; background: #eef1f6; }
.tp-my-banner__stage canvas { display: block; width: auto; max-width: 100%; max-height: 520px; height: auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(31, 47, 74, .18); }
.tp-my-banner > .tp-my-btn { justify-self: start; }
