/* =============================================================================
   tenant-portal.css  —  Ikhayalami Tenant+ Portal
   Premium light theme | Clash Display + DM Sans
   Brand: Charcoal #1A1A1F | Orange #F58220 | Sky #56C4F8
   ============================================================================= */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=dm-sans@300,400,500,600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --tp-charcoal: #1A1A1F;
    --tp-charcoal-light: #2C2C35;
    --tp-orange: #F58220;
    --tp-orange-dark: #D96A10;
    --tp-orange-light: #FFF3E6;
    --tp-sky: #56C4F8;
    --tp-sky-dark: #3FA9D9;
    --tp-sky-light: #EBF8FF;
    --tp-white: #FFFFFF;
    --tp-off-white: #F8F9FB;
    --tp-border: rgba(26, 26, 31, 0.1);
    --tp-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --tp-shadow-md: 0 6px 24px rgba(0,0,0,0.09);
    --tp-shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --tp-radius: 16px;
    --tp-radius-sm: 10px;
    --tp-sidebar-w: 240px;
    --tp-font-display: 'Clash Display', sans-serif;
    --tp-font-body: 'DM Sans', sans-serif;
}

/* ── Base Reset ────────────────────────────────────────────────────────────── */
.tp-root, .tp-root * {
    font-family: var(--tp-font-body);
    box-sizing: border-box;
}

    .tp-root h1, .tp-root h2, .tp-root h3, .tp-root h4, .tp-root h5 {
        font-family: var(--tp-font-display);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.tp-landing {
    background: var(--tp-white);
    overflow-x: hidden;
}

/* Hero */
.tp-hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, var(--tp-charcoal) 0%, #2A2A35 50%, #1A1A2F 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
}

.tp-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    pointer-events: none;
    animation: tp-orb-float 8s ease-in-out infinite;
}

.tp-hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--tp-orange);
    top: -100px;
    left: -80px;
    animation-delay: 0s;
}

.tp-hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--tp-sky);
    bottom: -80px;
    right: -60px;
    animation-delay: -3s;
}

.tp-hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--tp-orange);
    top: 40%;
    right: 25%;
    animation-delay: -6s;
}

@keyframes tp-orb-float {
    0%,100% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-20px) scale(1.05)
    }
}

.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,130,32,0.18);
    border: 1px solid rgba(245,130,32,0.35);
    color: #FFA44D;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tp-hero-title {
    font-family: var(--tp-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

    .tp-hero-title .tp-accent {
        color: var(--tp-orange);
    }

    .tp-hero-title .tp-plus {
        color: var(--tp-sky);
        font-size: 0.7em;
        vertical-align: super;
    }

.tp-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.tp-hero-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.tp-btn-primary {
    background: var(--tp-orange);
    color: #fff;
}

    .tp-btn-primary:hover {
        background: var(--tp-orange-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(245,130,32,0.38);
        color: #fff;
    }

.tp-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}

    .tp-btn-outline:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.6);
        color: #fff;
        transform: translateY(-1px);
    }

.tp-btn-sm {
    padding: 9px 20px;
    font-size: 0.82rem;
}

.tp-btn-sky {
    background: var(--tp-sky);
    color: var(--tp-charcoal);
}

    .tp-btn-sky:hover {
        background: var(--tp-sky-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(86,196,248,0.35);
    }

.tp-btn-ghost {
    background: transparent;
    color: var(--tp-charcoal);
    border: 1.5px solid var(--tp-border);
}

    .tp-btn-ghost:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
        transform: translateY(-1px);
    }

.tp-btn-danger {
    background: #e53935;
    color: #fff;
}

    .tp-btn-danger:hover {
        background: #c62828;
    }

/* Stats strip */
.tp-stats-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    background: var(--tp-off-white);
    border-bottom: 1px solid var(--tp-border);
    padding: 18px 24px;
    flex-wrap: wrap;
}

.tp-stat-item {
    text-align: center;
}

.tp-stat-num {
    font-family: var(--tp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tp-orange);
    line-height: 1;
}

.tp-stat-lbl {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* Feature Cards Grid */
.tp-feat-section {
    padding: 72px 24px;
    background: var(--tp-white);
}

.tp-feat-section-title {
    font-family: var(--tp-font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--tp-charcoal);
    text-align: center;
    margin-bottom: 12px;
}

.tp-feat-section-sub {
    text-align: center;
    color: #888;
    max-width: 600px;
    margin: 0 auto 52px;
    font-size: 1rem;
}

.tp-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tp-feat-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 28px 24px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

    .tp-feat-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent 60%, rgba(245,130,32,0.04));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tp-feat-card:hover {
        border-color: var(--tp-orange);
        transform: translateY(-4px);
        box-shadow: var(--tp-shadow-lg);
    }

        .tp-feat-card:hover::before {
            opacity: 1;
        }

.tp-feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.tp-feat-icon-orange {
    background: var(--tp-orange-light);
    color: var(--tp-orange);
}

.tp-feat-icon-sky {
    background: var(--tp-sky-light);
    color: var(--tp-sky-dark);
}

.tp-feat-icon-green {
    background: #E8F5E9;
    color: #388E3C;
}

.tp-feat-icon-purple {
    background: #F3E5F5;
    color: #7B1FA2;
}

.tp-feat-icon-red {
    background: #FFEBEE;
    color: #C62828;
}

.tp-feat-icon-teal {
    background: #E0F2F1;
    color: #00796B;
}

.tp-feat-card h4 {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    margin-bottom: 8px;
}

.tp-feat-card p {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.tp-feat-card-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tp-border);
    letter-spacing: 0.04em;
}

/* Premium Advert Banner */
.tp-premium-section {
    background: var(--tp-charcoal);
    padding: 64px 24px;
}

.tp-premium-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tp-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.tp-premium-title {
    font-family: var(--tp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.tp-premium-spots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tp-premium-slot {
    border: 1.5px dashed rgba(245,130,32,0.35);
    border-radius: var(--tp-radius-sm);
    padding: 28px 20px;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    background: rgba(255,255,255,0.03);
    transition: all 0.25s;
    cursor: pointer;
}

    .tp-premium-slot:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

    .tp-premium-slot i {
        font-size: 1.8rem;
        display: block;
        margin-bottom: 10px;
        opacity: 0.5;
    }

    .tp-premium-slot.occupied {
        border-style: solid;
        border-color: rgba(245,130,32,0.4);
        background: rgba(245,130,32,0.06);
        color: #fff;
    }

        .tp-premium-slot.occupied .tp-slot-logo {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--tp-orange);
            margin-bottom: 6px;
        }

/* Invite Landlord Section */
.tp-invite-section {
    padding: 72px 24px;
    background: var(--tp-sky-light);
}

.tp-invite-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
    padding: 48px 40px;
}

    .tp-invite-card h2 {
        font-family: var(--tp-font-display);
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--tp-charcoal);
    }

    .tp-invite-card p {
        color: #777;
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

/* Channel Pills */
.tp-channel-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tp-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--tp-border);
    background: var(--tp-white);
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

    .tp-channel-pill.active {
        border-color: var(--tp-orange);
        background: var(--tp-orange-light);
        color: var(--tp-orange);
    }

    .tp-channel-pill:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

/* Form inputs */
.tp-form-group {
    margin-bottom: 18px;
}

    .tp-form-group label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--tp-charcoal);
        margin-bottom: 6px;
    }

.tp-input {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--tp-radius-sm);
    border: 1.5px solid var(--tp-border);
    font-size: 0.9rem;
    font-family: var(--tp-font-body);
    background: var(--tp-off-white);
    transition: all 0.2s;
    color: var(--tp-charcoal);
}

    .tp-input:focus {
        outline: none;
        border-color: var(--tp-orange);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(245,130,32,0.1);
    }

.tp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

/* Pricing Card */
.tp-pricing-section {
    padding: 72px 24px;
    background: var(--tp-white);
    text-align: center;
}

.tp-pricing-card {
    max-width: 380px;
    margin: 0 auto;
    border: 2px solid var(--tp-orange);
    border-radius: var(--tp-radius);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

    .tp-pricing-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--tp-orange-light), #fff);
        z-index: 0;
    }

    .tp-pricing-card > * {
        position: relative;
        z-index: 1;
    }

.tp-price-tag {
    font-family: var(--tp-font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--tp-orange);
    line-height: 1;
}

    .tp-price-tag sup {
        font-size: 1.4rem;
        vertical-align: super;
    }

    .tp-price-tag span {
        font-size: 1rem;
        color: #888;
        font-weight: 400;
        font-family: var(--tp-font-body);
    }

.tp-pricing-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

    .tp-pricing-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.875rem;
        color: var(--tp-charcoal);
    }

        .tp-pricing-list li::before {
            content: '✓';
            color: var(--tp-orange);
            font-weight: 700;
            flex-shrink: 0;
        }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDLORD REGISTER  (2-step onboarding)
   ═══════════════════════════════════════════════════════════════════════════ */
.tp-onboard {
    min-height: 100vh;
    background: var(--tp-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.tp-onboard-card {
    width: 100%;
    max-width: 560px;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
    overflow: hidden;
}

.tp-onboard-header {
    background: var(--tp-charcoal);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tp-onboard-logo {
    font-family: var(--tp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

    .tp-onboard-logo span {
        color: var(--tp-orange);
    }

.tp-onboard-body {
    padding: 40px;
}

/* Progress Bar */
.tp-progress-bar {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
}

.tp-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

    .tp-progress-step::after {
        content: '';
        position: absolute;
        bottom: 7px;
        left: 50%;
        right: -50%;
        height: 2px;
        background: var(--tp-border);
        z-index: 0;
    }

    .tp-progress-step:last-child::after {
        display: none;
    }

.tp-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--tp-border);
    background: var(--tp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.tp-progress-step.active .tp-progress-dot {
    border-color: var(--tp-orange);
    background: var(--tp-orange);
    color: #fff;
}

.tp-progress-step.done .tp-progress-dot {
    border-color: var(--tp-sky);
    background: var(--tp-sky);
    color: #fff;
}

    .tp-progress-step.done .tp-progress-dot::after {
        content: '✓';
    }

.tp-progress-step span {
    font-size: 0.75rem;
    color: #aaa;
}

.tp-progress-step.active span {
    color: var(--tp-orange);
    font-weight: 600;
}

/* Category Selector */
.tp-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.tp-category-btn {
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    background: var(--tp-off-white);
}

    .tp-category-btn i {
        display: block;
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .tp-category-btn.active {
        border-color: var(--tp-orange);
        background: var(--tp-orange-light);
        color: var(--tp-orange);
    }

    .tp-category-btn:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD SHELL  (shared by landlord & tenant)
   ═══════════════════════════════════════════════════════════════════════════ */
.tp-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--tp-off-white);
    font-family: var(--tp-font-body);
}

/* Sidebar */
.tp-sidebar {
    width: var(--tp-sidebar-w);
    min-height: 100vh;
    background: var(--tp-charcoal);
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.tp-sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-family: var(--tp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .tp-sidebar-logo .tp-plus-badge {
        background: var(--tp-orange);
        color: #fff;
        font-size: 0.6rem;
        padding: 2px 7px;
        border-radius: 50px;
        vertical-align: super;
    }

.tp-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.tp-nav-section {
    padding: 16px 16px 6px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.tp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 0;
    white-space: nowrap;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

    .tp-nav-link i {
        font-size: 1.1rem;
        flex-shrink: 0;
        width: 20px;
    }

    .tp-nav-link:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .tp-nav-link.active {
        background: rgba(245,130,32,0.15);
        color: var(--tp-orange);
        border-right: 3px solid var(--tp-orange);
    }

.tp-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.tp-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tp-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tp-sidebar-name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-sidebar-role {
    font-size: 0.7rem;
    color: var(--tp-orange);
}

/* Main Content */
.tp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tp-topbar {
    background: var(--tp-white);
    border-bottom: 1px solid var(--tp-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.tp-topbar-title {
    font-family: var(--tp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
}

.tp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-content {
    padding: 28px;
    flex: 1;
}

/* Panel routing */
.tp-panel {
    display: none;
}

    .tp-panel.active {
        display: block;
        animation: tp-panel-in 0.25s ease;
    }

@keyframes tp-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Stats Row ─────────────────────────────────────────────────────────────── */
.tp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tp-stat-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s;
}

    .tp-stat-card:hover {
        border-color: var(--tp-orange);
        box-shadow: var(--tp-shadow-md);
        transform: translateY(-2px);
    }

.tp-stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tp-stat-card-val {
    font-family: var(--tp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    line-height: 1;
}

.tp-stat-card-lbl {
    font-size: 0.75rem;
    color: #888;
    margin-top: 3px;
}

/* ── Property Grid ─────────────────────────────────────────────────────────── */
.tp-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tp-prop-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}

    .tp-prop-card:hover {
        border-color: var(--tp-sky);
        box-shadow: var(--tp-shadow-md);
        transform: translateY(-3px);
    }

.tp-prop-card-head {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--tp-charcoal), var(--tp-charcoal-light));
}

.tp-prop-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-sky);
    font-weight: 600;
    margin-bottom: 6px;
}

.tp-prop-card-name {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.tp-prop-card-body {
    padding: 16px 20px;
}

.tp-prop-card-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}

    .tp-prop-card-stat strong {
        color: var(--tp-charcoal);
    }

.tp-prop-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--tp-border);
    display: flex;
    gap: 8px;
}

/* ── Invite Table ─────────────────────────────────────────────────────────── */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

    .tp-table th {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #999;
        padding: 10px 14px;
        text-align: left;
        border-bottom: 1.5px solid var(--tp-border);
    }

    .tp-table td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--tp-border);
        color: var(--tp-charcoal);
        vertical-align: middle;
    }

    .tp-table tr:last-child td {
        border-bottom: none;
    }

    .tp-table tr:hover td {
        background: var(--tp-off-white);
    }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.tp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,10,16,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

    .tp-modal-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.tp-modal {
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s;
}

.tp-modal-backdrop.open .tp-modal {
    transform: scale(1) translateY(0);
}

.tp-modal-header {
    padding: 22px 26px 16px;
    border-bottom: 1px solid var(--tp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-modal-title {
    font-family: var(--tp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
}

.tp-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    line-height: 1;
}

    .tp-modal-close:hover {
        color: var(--tp-charcoal);
    }

.tp-modal-body {
    padding: 24px 26px;
}

.tp-modal-footer {
    padding: 16px 26px;
    border-top: 1px solid var(--tp-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Badges */
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tp-badge-orange {
    background: var(--tp-orange-light);
    color: var(--tp-orange);
}

.tp-badge-sky {
    background: var(--tp-sky-light);
    color: var(--tp-sky-dark);
}

.tp-badge-green {
    background: #E8F5E9;
    color: #388E3C;
}

.tp-badge-red {
    background: #FFEBEE;
    color: #C62828;
}

.tp-badge-grey {
    background: #f0f0f0;
    color: #888;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TENANT DASHBOARD PANELS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Score Rings */
.tp-score-rings {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.tp-score-ring-wrap {
    text-align: center;
}

.tp-score-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

    .tp-score-ring svg {
        transform: rotate(-90deg);
    }

.tp-score-ring-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tp-score-ring-num {
    font-family: var(--tp-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    line-height: 1;
}

.tp-score-ring-lbl {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 2px;
}

.tp-score-ring-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    margin-top: 8px;
    text-align: center;
    max-width: 100px;
}

/* Rent Countdown */
.tp-rent-countdown {
    background: linear-gradient(135deg, var(--tp-orange) 0%, #F89622 100%);
    border-radius: var(--tp-radius);
    padding: 24px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tp-rent-countdown-days {
    font-family: var(--tp-font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.tp-rent-countdown-lbl {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
}

.tp-rent-amount {
    font-family: var(--tp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.tp-rent-amount-lbl {
    font-size: 0.8rem;
    opacity: 0.85;
    text-align: right;
}

/* Lease progress */
.tp-lease-progress {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.tp-lease-bar-track {
    height: 8px;
    background: var(--tp-off-white);
    border-radius: 4px;
    margin: 12px 0;
    overflow: hidden;
}

.tp-lease-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tp-sky) 0%, var(--tp-orange) 100%);
    transition: width 1s ease;
}

.tp-lease-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #aaa;
}

/* AI Chat — Sakikhaya */
.tp-ai-chat {
    display: flex;
    flex-direction: column;
    height: 520px;
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}

.tp-ai-chat-header {
    padding: 16px 20px;
    background: var(--tp-charcoal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-orange), var(--tp-sky));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tp-ai-name {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.tp-ai-tagline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

.tp-ai-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    margin-left: auto;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.3);
    animation: tp-pulse-green 2s infinite;
}

@keyframes tp-pulse-green {
    0%,100% {
        box-shadow: 0 0 0 2px rgba(76,175,80,0.3)
    }

    50% {
        box-shadow: 0 0 0 5px rgba(76,175,80,0.1)
    }
}

.tp-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-msg {
    max-width: 75%;
}

.tp-msg-ai {
    align-self: flex-start;
}

.tp-msg-user {
    align-self: flex-end;
}

.tp-msg-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tp-msg-ai .tp-msg-bubble {
    background: var(--tp-off-white);
    color: var(--tp-charcoal);
    border-bottom-left-radius: 4px;
}

.tp-msg-user .tp-msg-bubble {
    background: var(--tp-orange);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tp-msg-time {
    font-size: 0.68rem;
    color: #bbb;
    margin-top: 4px;
}

.tp-msg-user .tp-msg-time {
    text-align: right;
}

.tp-typing {
    display: flex;
    gap: 4px;
    padding: 11px 15px;
    background: var(--tp-off-white);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

    .tp-typing span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #bbb;
        animation: tp-typing-dot 1.2s infinite;
    }

        .tp-typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .tp-typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes tp-typing-dot {
    0%,80%,100% {
        transform: scale(1);
        opacity: 0.5
    }

    40% {
        transform: scale(1.3);
        opacity: 1
    }
}

.tp-ai-suggestions {
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--tp-border);
}

    .tp-ai-suggestions::-webkit-scrollbar {
        display: none;
    }

.tp-suggestion-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    background: var(--tp-white);
}

    .tp-suggestion-chip:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

.tp-ai-input-row {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid var(--tp-border);
    gap: 10px;
    align-items: center;
}

.tp-ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-family: var(--tp-font-body);
    background: var(--tp-off-white);
    outline: none;
}

    .tp-ai-input:focus {
        border-color: var(--tp-orange);
        background: #fff;
    }

.tp-ai-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tp-orange);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .tp-ai-send:hover {
        background: var(--tp-orange-dark);
        transform: scale(1.05);
    }

/* Emergency Buttons */
.tp-emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.tp-emergency-btn {
    border: none;
    border-radius: var(--tp-radius);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .tp-emergency-btn i {
        font-size: 2rem;
    }

    .tp-emergency-btn strong {
        display: block;
        font-size: 0.875rem;
        font-weight: 700;
    }

    .tp-emergency-btn small {
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .tp-emergency-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--tp-shadow-lg);
    }

.tp-emg-police {
    background: #1565C0;
    color: #fff;
}

.tp-emg-medical {
    background: #C62828;
    color: #fff;
}

.tp-emg-fire {
    background: #E64A19;
    color: #fff;
}

.tp-emg-locksmith {
    background: #37474F;
    color: #fff;
}

.tp-emg-plumbing {
    background: #0277BD;
    color: #fff;
}

.tp-emg-electrical {
    background: #F57F17;
    color: var(--tp-charcoal);
}

.tp-emg-estate {
    background: #2E7D32;
    color: #fff;
}

.tp-emg-panic {
    background: linear-gradient(135deg, #B71C1C, #D32F2F);
    color: #fff;
    animation: tp-panic-pulse 1.5s infinite;
}

@keyframes tp-panic-pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(183,28,28,0.4)
    }

    50% {
        box-shadow: 0 0 0 12px rgba(183,28,28,0)
    }
}

/* Maintenance Form */
.tp-maintenance-form {
    max-width: 620px;
}

.tp-upload-zone {
    border: 2px dashed var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--tp-off-white);
}

    .tp-upload-zone:hover, .tp-upload-zone.dragover {
        border-color: var(--tp-orange);
        background: var(--tp-orange-light);
    }

    .tp-upload-zone i {
        font-size: 2rem;
        color: #ccc;
        margin-bottom: 10px;
        display: block;
    }

    .tp-upload-zone span {
        font-size: 0.875rem;
        color: #aaa;
    }

/* Rewards */
.tp-rewards-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tp-points-badge {
    background: linear-gradient(135deg, var(--tp-orange), #F89622);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--tp-radius-sm);
    text-align: center;
}

.tp-points-num {
    font-family: var(--tp-font-display);
    font-size: 2rem;
    font-weight: 700;
}

.tp-points-lbl {
    font-size: 0.75rem;
    opacity: 0.85;
}

.tp-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tp-reward-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 18px;
    transition: all 0.2s;
}

    .tp-reward-card:hover {
        border-color: var(--tp-sky);
        box-shadow: var(--tp-shadow-sm);
    }

.tp-reward-partner {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tp-sky-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.tp-reward-desc {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    margin-bottom: 8px;
}

.tp-reward-code {
    font-size: 0.78rem;
    color: var(--tp-orange);
    font-weight: 600;
    font-family: monospace;
    background: var(--tp-orange-light);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Marketplace */
.tp-market-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tp-market-filter-btn {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--tp-border);
    background: var(--tp-white);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

    .tp-market-filter-btn.active {
        background: var(--tp-charcoal);
        color: #fff;
        border-color: var(--tp-charcoal);
    }

    .tp-market-filter-btn:hover {
        border-color: var(--tp-charcoal);
    }

.tp-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.tp-market-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 18px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

    .tp-market-card:hover {
        border-color: var(--tp-sky);
        box-shadow: var(--tp-shadow-md);
        transform: translateY(-2px);
    }

    .tp-market-card.premium {
        border-color: var(--tp-orange);
    }

        .tp-market-card.premium::after {
            content: 'FEATURED';
            position: absolute;
            top: 12px;
            right: -8px;
            background: var(--tp-orange);
            color: #fff;
            font-size: 0.6rem;
            font-weight: 700;
            padding: 3px 14px;
            letter-spacing: 0.08em;
            transform: rotate(0deg);
        }

.tp-market-biz {
    font-family: var(--tp-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin-bottom: 4px;
}

.tp-market-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tp-sky-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.tp-market-desc {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tp-market-rating {
    font-size: 0.75rem;
    color: var(--tp-orange);
    font-weight: 600;
}

.tp-market-stars {
    color: var(--tp-orange);
    letter-spacing: 1px;
}

/* Document Vault */
.tp-vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.tp-vault-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s;
}

    .tp-vault-card:hover {
        border-color: var(--tp-sky);
        box-shadow: var(--tp-shadow-sm);
    }

.tp-vault-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tp-vault-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.tp-vault-meta {
    font-size: 0.72rem;
    color: #aaa;
}

/* Visitor QR */
.tp-visitor-pass {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 28px;
    text-align: center;
    max-width: 300px;
}

.tp-qr-placeholder {
    width: 160px;
    height: 160px;
    background: var(--tp-off-white);
    border: 2px solid var(--tp-border);
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.tp-pass-name {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tp-pass-valid {
    font-size: 0.78rem;
    color: #888;
}

/* Inspection rooms */
.tp-room-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tp-border);
}

.tp-room-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tp-charcoal);
}

.tp-condition-pills {
    display: flex;
    gap: 6px;
}

.tp-condition-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s;
}

.tp-cond-good {
    border-color: #4CAF50;
    color: #4CAF50;
}

    .tp-cond-good.active {
        background: #4CAF50;
        color: #fff;
    }

.tp-cond-fair {
    border-color: #FF9800;
    color: #FF9800;
}

    .tp-cond-fair.active {
        background: #FF9800;
        color: #fff;
    }

.tp-cond-poor {
    border-color: #F44336;
    color: #F44336;
}

    .tp-cond-poor.active {
        background: #F44336;
        color: #fff;
    }

/* Landlord Reputation rating sliders */
.tp-rating-slider {
    margin-bottom: 18px;
}

    .tp-rating-slider label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--tp-charcoal);
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
    }

        .tp-rating-slider label span {
            color: var(--tp-orange);
        }

    .tp-rating-slider input[type=range] {
        width: 100%;
        accent-color: var(--tp-orange);
    }

/* Auth gate */
.tp-auth-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tp-off-white);
    padding: 24px;
}

.tp-auth-card {
    max-width: 440px;
    width: 100%;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
    overflow: hidden;
}

.tp-auth-card-top {
    background: var(--tp-charcoal);
    padding: 36px;
    text-align: center;
}

    .tp-auth-card-top h2 {
        font-family: var(--tp-font-display);
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
    }

    .tp-auth-card-top p {
        color: rgba(255,255,255,0.6);
        font-size: 0.875rem;
    }

.tp-auth-card-body {
    padding: 32px;
}

/* InviteExpired */
.tp-expired {
    text-align: center;
    padding: 80px 24px;
}

    .tp-expired i {
        font-size: 4rem;
        color: #E53935;
        margin-bottom: 20px;
        display: block;
    }

/* Accept Invite */
.tp-accept-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 32px 16px;
}

.tp-accept-property-preview {
    background: var(--tp-charcoal);
    border-radius: var(--tp-radius);
    padding: 24px;
    margin-bottom: 24px;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .tp-sidebar {
        width: 60px;
    }

        .tp-sidebar .tp-sidebar-logo span, .tp-sidebar .tp-sidebar-name, .tp-sidebar .tp-sidebar-role,
        .tp-sidebar .tp-nav-link span, .tp-sidebar .tp-nav-section {
            display: none;
        }

        .tp-sidebar .tp-nav-link {
            justify-content: center;
            padding: 12px;
        }

        .tp-sidebar .tp-sidebar-logo {
            justify-content: center;
            padding: 16px;
        }

        .tp-sidebar .tp-sidebar-avatar {
            margin: 0;
        }

        .tp-sidebar .tp-sidebar-user {
            justify-content: center;
        }

    .tp-content {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .tp-sidebar {
        display: none;
    }

    .tp-topbar {
        padding: 12px 16px;
    }

    .tp-feat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tp-hero {
        padding: 60px 16px 48px;
    }

    .tp-invite-card {
        padding: 28px 20px;
    }

    .tp-onboard-body {
        padding: 24px 20px;
    }

    .tp-modal {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ── Utility ────────────────────────────────────────────────────────────── */
.tp-divider {
    height: 1px;
    background: var(--tp-border);
    margin: 20px 0;
}

.tp-section-title {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #bbb;
}

    .tp-empty-state i {
        font-size: 2.5rem;
        display: block;
        margin-bottom: 12px;
    }

    .tp-empty-state p {
        font-size: 0.875rem;
    }

.tp-alert-success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: #2E7D32;
    border-radius: var(--tp-radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.tp-alert-error {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
    border-radius: var(--tp-radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* =============================================================================
   SUPPLEMENTARY STYLES — Tenant Dashboard, Accept Invite, Invite Expired,
   Property Detail. Appended in resume session.
   ============================================================================= */

/* ── Forms (consistent with .tp-form-group but newer naming) ───────────── */
.tp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .tp-field label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--tp-charcoal);
    }

.tp-field-hint {
    font-size: 0.72rem;
    color: #888;
    margin-top: 4px;
}

.tp-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .tp-row-2 {
        grid-template-columns: 1fr;
    }
}

.tp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.tp-input-locked {
    background: #F5F5F8;
    color: #888;
    cursor: not-allowed;
}

.tp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

    .tp-check input[type="checkbox"] {
        margin-top: 3px;
        flex-shrink: 0;
        accent-color: var(--tp-orange);
    }

.tp-check-required span a {
    color: var(--tp-orange);
    text-decoration: underline;
}

.tp-btn-block {
    width: 100%;
    justify-content: center;
}

.tp-btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

.tp-btn-xs {
    padding: 6px 10px;
    font-size: 0.72rem;
}

/* ── Glass cards & layout primitives ──────────────────────────────────── */
.tp-card-glass {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 22px;
    box-shadow: var(--tp-shadow-sm);
}

.tp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-card-title {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    margin: 0;
}

.tp-card-meta {
    font-size: 0.8rem;
    color: #888;
}

.tp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .tp-two-col {
        grid-template-columns: 1fr;
    }
}

.tp-empty-card {
    text-align: center;
    padding: 60px 24px;
    background: var(--tp-white);
    border: 1.5px dashed var(--tp-border);
    border-radius: var(--tp-radius);
    color: #888;
}

    .tp-empty-card i {
        font-size: 3rem;
        color: #ddd;
        display: block;
        margin-bottom: 14px;
    }

    .tp-empty-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: var(--tp-charcoal);
    }

    .tp-empty-card p {
        font-size: 0.875rem;
        margin: 0;
    }

/* ── Dashboard topbar pills ───────────────────────────────────────────── */
.tp-pill-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--tp-orange), #F89622);
    color: #fff;
    padding: 7px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
}

.tp-pill-property {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tp-sky-light);
    color: var(--tp-sky-dark);
    padding: 7px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Home grid (rent + score + lease) ─────────────────────────────────── */
.tp-home-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
}

    .tp-home-grid > .tp-rent-countdown {
        grid-column: 1;
    }

    .tp-home-grid > .tp-card-glass {
        grid-column: 2;
    }

    .tp-home-grid > .tp-lease-progress {
        grid-column: 1 / -1;
    }

@media (max-width: 1100px) {
    .tp-home-grid {
        grid-template-columns: 1fr;
    }

        .tp-home-grid > * {
            grid-column: 1 / -1;
        }
}

/* Rent countdown extras */
.tp-rent-countdown {
    background: linear-gradient(135deg, var(--tp-orange), #F89622);
    color: #fff;
    border-radius: var(--tp-radius);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 14px 32px rgba(245,130,32,0.25);
}

.tp-rent-countdown-amount {
    text-align: right;
}

.tp-rent-amount {
    font-family: var(--tp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.tp-rent-day {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 6px;
}

/* Score ring foreground stroke target — JS animates dashoffset */
.tp-ring-fg {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lease progress bar */
.tp-progress-track {
    width: 100%;
    height: 10px;
    background: #F0F0F2;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 8px;
}

.tp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tp-sky), var(--tp-orange));
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}

    .tp-progress-meta strong {
        color: var(--tp-charcoal);
        font-size: 0.85rem;
    }

.tp-renewal-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--tp-sky-light);
    border: 1.5px solid var(--tp-sky);
    border-radius: var(--tp-radius-sm);
    padding: 14px 18px;
    margin-top: 16px;
}

    .tp-renewal-banner > i {
        font-size: 1.4rem;
        color: var(--tp-sky-dark);
    }

    .tp-renewal-banner > div {
        flex: 1;
    }

    .tp-renewal-banner strong {
        display: block;
        color: var(--tp-charcoal);
        font-size: 0.9rem;
    }

    .tp-renewal-banner small {
        font-size: 0.78rem;
        color: #555;
    }

/* ── Quick actions row ────────────────────────────────────────────────── */
.tp-quick-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.tp-quick-btn {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--tp-charcoal);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    text-align: left;
}

    .tp-quick-btn:hover {
        border-color: var(--tp-orange);
        transform: translateY(-2px);
        box-shadow: var(--tp-shadow-sm);
    }

    .tp-quick-btn i {
        font-size: 1.3rem;
        color: var(--tp-orange);
    }

.tp-quick-ai {
    background: linear-gradient(135deg, #1A1A1F, #2C2C35);
    color: #fff;
    border-color: transparent;
}

    .tp-quick-ai:hover {
        color: #fff;
    }

    .tp-quick-ai i {
        color: var(--tp-sky);
    }

.tp-quick-emergency {
    background: #FFEBEE;
    border-color: #FFCDD2;
    color: #C62828;
}

    .tp-quick-emergency i {
        color: #C62828;
    }

/* ── Issue list ───────────────────────────────────────────────────────── */
.tp-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-issue-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--tp-off-white);
    border-radius: var(--tp-radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

    .tp-issue-row:hover {
        border-color: var(--tp-border);
    }

.tp-issue-prio {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.tp-prio-low {
    background: #E8F5E9;
    color: #2E7D32;
}

.tp-prio-medium {
    background: #FFF8E1;
    color: #F57F17;
}

.tp-prio-high {
    background: #FFE0B2;
    color: #E65100;
}

.tp-prio-emergency {
    background: #FFEBEE;
    color: #C62828;
    animation: tp-pulse-soft 2s infinite;
}

@keyframes tp-pulse-soft {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.tp-issue-body {
    flex: 1;
    min-width: 0;
}

    .tp-issue-body strong {
        display: block;
        font-size: 0.9rem;
        color: var(--tp-charcoal);
    }

    .tp-issue-body small {
        font-size: 0.75rem;
        color: #888;
    }

/* ── Status pills ─────────────────────────────────────────────────────── */
.tp-status-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}

.tp-status-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.tp-status-pending {
    background: #FFF8E1;
    color: #F57F17;
}

.tp-status-paid {
    background: #E8F5E9;
    color: #2E7D32;
}

.tp-status-open {
    background: #FFE0B2;
    color: #E65100;
}

.tp-status-inprogress {
    background: #E3F2FD;
    color: #1565C0;
}

.tp-status-resolved {
    background: #E0F2F1;
    color: #00695C;
}

.tp-status-closed {
    background: #F5F5F5;
    color: #757575;
}

.tp-status-expiring {
    background: #FFE0B2;
    color: #E65100;
}

.tp-status-expired {
    background: #FFEBEE;
    color: #C62828;
}

.tp-status-renewed {
    background: #E3F2FD;
    color: #1565C0;
}

.tp-status-cancelled {
    background: #F5F5F5;
    color: #757575;
}

.tp-status-overdue {
    background: #FFEBEE;
    color: #C62828;
}

/* ── Channel pills ────────────────────────────────────────────────────── */
.tp-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tp-channel-email {
    background: #E3F2FD;
    color: #1565C0;
}

.tp-channel-sms {
    background: #FFF3E6;
    color: var(--tp-orange-dark);
}

.tp-channel-whatsapp {
    background: #E8F5E9;
    color: #2E7D32;
}

.tp-channel-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-channel-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    background: var(--tp-white);
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

    .tp-channel-pill-btn:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

    .tp-channel-pill-btn.active {
        background: var(--tp-orange);
        border-color: var(--tp-orange);
        color: #fff;
    }

/* ── Lease card (panel: lease) ────────────────────────────────────────── */
.tp-lease-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 28px;
    box-shadow: var(--tp-shadow-sm);
}

.tp-lease-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-lease-card-title {
    font-family: var(--tp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0;
}

.tp-lease-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.tp-lease-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .tp-lease-stat label {
        font-size: 0.7rem;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
    }

    .tp-lease-stat strong {
        font-family: var(--tp-font-display);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--tp-charcoal);
    }

/* ── AI chat additions ────────────────────────────────────────────────── */
.tp-ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--tp-off-white);
}

.tp-ai-msg {
    display: flex;
    max-width: 85%;
}

.tp-ai-msg-bot {
    align-self: flex-start;
}

.tp-ai-msg-user {
    align-self: flex-end;
}

.tp-ai-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tp-ai-msg-bot .tp-ai-msg-bubble {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    color: var(--tp-charcoal);
    border-bottom-left-radius: 4px;
}

.tp-ai-msg-user .tp-ai-msg-bubble {
    background: var(--tp-orange);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tp-ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-orange), #F89622);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tp-ai-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    border-top: 1px solid var(--tp-border);
    background: var(--tp-white);
}

    .tp-ai-suggestions::-webkit-scrollbar {
        height: 4px;
    }

.tp-ai-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--tp-border);
    background: var(--tp-white);
}

.tp-ai-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-family: var(--tp-font-body);
    background: var(--tp-off-white);
}

    .tp-ai-input:focus {
        outline: none;
        border-color: var(--tp-orange);
        background: var(--tp-white);
    }

.tp-ai-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--tp-orange);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .tp-ai-send:hover {
        background: var(--tp-orange-dark);
        transform: scale(1.06);
    }

/* ── Emergency banner ─────────────────────────────────────────────────── */
.tp-emergency-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    border: 1.5px solid #FFCC80;
    border-radius: var(--tp-radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}

    .tp-emergency-banner > i {
        font-size: 2rem;
        color: #E65100;
    }

    .tp-emergency-banner strong {
        display: block;
        font-size: 1rem;
        color: var(--tp-charcoal);
    }

    .tp-emergency-banner small {
        font-size: 0.85rem;
        color: #555;
    }

.tp-emg-police {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: #fff;
}

.tp-emg-medical {
    background: linear-gradient(135deg, #C62828, #D32F2F);
    color: #fff;
}

.tp-emg-fire {
    background: linear-gradient(135deg, #E65100, #F57C00);
    color: #fff;
}

.tp-emg-emerg {
    background: linear-gradient(135deg, #6A1B9A, #8E24AA);
    color: #fff;
}

.tp-emg-private {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    color: var(--tp-charcoal);
}

    .tp-emg-private:hover {
        border-color: var(--tp-orange);
    }

.tp-emg-contact {
    background: linear-gradient(135deg, var(--tp-sky), var(--tp-sky-dark));
    color: #fff;
    max-width: 360px;
}

/* ── Visitor QR pass area ─────────────────────────────────────────────── */
.tp-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 20px;
}

.tp-qr-empty {
    text-align: center;
    color: #ccc;
}

    .tp-qr-empty i {
        font-size: 4rem;
        display: block;
        margin-bottom: 12px;
    }

    .tp-qr-empty span {
        font-size: 0.875rem;
    }

/* ── Photo preview (maintenance) ──────────────────────────────────────── */
.tp-photo-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tp-photo-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--tp-border);
}

/* ── Inspection rooms ─────────────────────────────────────────────────── */
.tp-room-list {
    display: flex;
    flex-direction: column;
}

.tp-room-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tp-charcoal);
}

.tp-room-conditions {
    display: flex;
    gap: 6px;
}

.tp-condition-pill {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1.5px solid var(--tp-border);
    background: var(--tp-white);
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

    .tp-condition-pill:hover {
        border-color: var(--tp-orange);
    }

    .tp-condition-pill.active[data-condition="Good"] {
        background: #E8F5E9;
        border-color: #66BB6A;
        color: #2E7D32;
    }

    .tp-condition-pill.active[data-condition="Fair"] {
        background: #FFF8E1;
        border-color: #FFCA28;
        color: #F57F17;
    }

    .tp-condition-pill.active[data-condition="Poor"] {
        background: #FFEBEE;
        border-color: #EF5350;
        color: #C62828;
    }

/* ── Marketplace loading state ────────────────────────────────────────── */
.tp-market-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 0.875rem;
}

.tp-market-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tp-market-filter-btn {
    padding: 8px 14px;
    border: 1.5px solid var(--tp-border);
    border-radius: 50px;
    background: var(--tp-white);
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

    .tp-market-filter-btn:hover {
        border-color: var(--tp-orange);
        color: var(--tp-orange);
    }

    .tp-market-filter-btn.active {
        background: var(--tp-charcoal);
        border-color: var(--tp-charcoal);
        color: #fff;
    }

/* ── Rating sliders (rate landlord) ───────────────────────────────────── */
.tp-rating-slider-row {
    display: grid;
    grid-template-columns: 130px 1fr 32px;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

    .tp-rating-slider-row label {
        font-size: 0.85rem;
        color: var(--tp-charcoal);
        font-weight: 600;
    }

.tp-rating-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--tp-sky-light), var(--tp-orange-light));
    border-radius: 50px;
    outline: none;
}

    .tp-rating-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--tp-orange);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        border: 3px solid #fff;
    }

    .tp-rating-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--tp-orange);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        border: 3px solid #fff;
    }

.tp-rating-val {
    text-align: center;
    font-family: var(--tp-font-display);
    font-weight: 700;
    color: var(--tp-orange);
    font-size: 1.05rem;
}

/* ── Reputation panel — badge trophy ──────────────────────────────────── */
.tp-badge-display {
    text-align: center;
    margin-top: 24px;
}

.tp-badge-trophy {
    margin-bottom: 12px;
}

.tp-badge-display p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.tp-badge-lg {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Reward cards ─────────────────────────────────────────────────────── */
.tp-reward-card {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    padding: 18px;
    text-align: center;
    transition: all 0.2s;
}

    .tp-reward-card:hover {
        border-color: var(--tp-orange);
        transform: translateY(-2px);
        box-shadow: var(--tp-shadow-sm);
    }

.tp-reward-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tp-orange-light);
    color: var(--tp-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.tp-reward-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--tp-charcoal);
    margin-bottom: 4px;
}

.tp-reward-card small {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.tp-reward-points {
    font-family: var(--tp-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tp-orange);
    margin-top: 6px;
}

.tp-reward-code {
    display: inline-block;
    margin-top: 8px;
    background: var(--tp-charcoal);
    color: var(--tp-sky);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.tp-reward-redeemed {
    opacity: 0.5;
}

/* ── Modal head ───────────────────────────────────────────────────────── */
.tp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--tp-border);
}

    .tp-modal-head h3 {
        margin: 0;
        font-family: var(--tp-font-display);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--tp-charcoal);
    }

.tp-modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

    .tp-modal-close:hover {
        background: #f5f5f5;
        color: var(--tp-charcoal);
    }

.tp-modal form.tp-form {
    padding: 20px 24px 24px;
}

/* ── Sidebar additions ────────────────────────────────────────────────── */
.tp-sidebar-avatar-tenant {
    background: linear-gradient(135deg, var(--tp-sky), var(--tp-sky-dark));
}

.tp-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    color: #999;
    font-size: 0.82rem;
    text-decoration: none;
    border-radius: var(--tp-radius-sm);
    transition: all 0.2s;
}

    .tp-sidebar-logout:hover {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

.tp-nav-link-ai {
    background: linear-gradient(90deg, rgba(245,130,32,0.06), rgba(86,196,248,0.06));
}

    .tp-nav-link-ai:hover {
        background: linear-gradient(90deg, rgba(245,130,32,0.12), rgba(86,196,248,0.12));
    }

/* ── Tenant badge tiers (extends existing) ────────────────────────────── */
.tp-badge-bronze {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-badge-silver {
    background: linear-gradient(135deg, #C0C0C0, #9A9A9A);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-badge-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-badge-platinum {
    background: linear-gradient(135deg, #E5E4E2, #B5B5B5);
    color: var(--tp-charcoal);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-badge-diamond {
    background: linear-gradient(135deg, #56C4F8, #3FA9D9, #F58220);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================================
   ACCEPT INVITE PAGE
   ============================================================================ */
.tp-accept-page {
    background: linear-gradient(135deg, #F8F9FB 0%, #EBF8FF 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.tp-accept-shell {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--tp-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tp-accept-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 36px;
    background: linear-gradient(135deg, var(--tp-charcoal), #2C2C35);
    color: #fff;
}

.tp-accept-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tp-orange), #F89622);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.tp-accept-brand-title {
    font-family: var(--tp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.tp-accept-brand-sub {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 4px 0 0;
}

.tp-accept-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
}

@media (max-width: 900px) {
    .tp-accept-grid {
        grid-template-columns: 1fr;
    }
}

.tp-accept-left {
    padding: 36px;
    background: var(--tp-off-white);
    border-right: 1px solid var(--tp-border);
}

@media (max-width: 900px) {
    .tp-accept-left {
        border-right: none;
        border-bottom: 1px solid var(--tp-border);
    }
}

.tp-accept-right {
    padding: 36px;
}

.tp-accept-property-preview {
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    padding: 24px;
    box-shadow: var(--tp-shadow-sm);
    margin-bottom: 28px;
}

.tp-accept-property-hero {
    margin-bottom: 18px;
}

.tp-accept-property-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-orange);
    font-weight: 700;
    margin-bottom: 6px;
}

.tp-accept-property-name {
    font-family: var(--tp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 8px;
}

.tp-accept-property-addr,
.tp-accept-property-estate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
}

    .tp-accept-property-addr i, .tp-accept-property-estate i {
        color: var(--tp-sky-dark);
    }

.tp-accept-invited-by {
    padding: 14px 16px;
    background: var(--tp-orange-light);
    border-radius: var(--tp-radius-sm);
    margin: 18px 0;
}

    .tp-accept-invited-by small {
        display: block;
        font-size: 0.7rem;
        color: var(--tp-orange-dark);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 700;
    }

    .tp-accept-invited-by strong {
        display: block;
        font-size: 0.95rem;
        color: var(--tp-charcoal);
        margin: 2px 0;
    }

.tp-accept-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FFF8E1;
    border-radius: var(--tp-radius-sm);
    font-size: 0.82rem;
    color: #555;
}

    .tp-accept-expiry i {
        color: #F57F17;
    }

    .tp-accept-expiry strong {
        color: var(--tp-charcoal);
    }

.tp-accept-expiry-urgent {
    background: #FFEBEE;
}

    .tp-accept-expiry-urgent i {
        color: #C62828;
    }

.tp-accept-features h4 {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    margin: 0 0 14px;
}

.tp-accept-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .tp-accept-feat-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.875rem;
        color: #555;
    }

    .tp-accept-feat-list i {
        color: var(--tp-orange);
        font-size: 1.1rem;
        flex-shrink: 0;
    }

.tp-accept-form-title {
    font-family: var(--tp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 4px;
}

.tp-accept-form-sub {
    font-size: 0.875rem;
    color: #888;
    margin: 0 0 24px;
}

.tp-accept-pricing {
    background: linear-gradient(135deg, var(--tp-charcoal), #2C2C35);
    color: #fff;
    border-radius: var(--tp-radius);
    padding: 22px;
    margin: 8px 0;
}

.tp-accept-pricing-amt {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.tp-accept-pricing-currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.tp-accept-pricing-value {
    font-family: var(--tp-font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tp-orange);
}

.tp-accept-pricing-period {
    font-size: 0.95rem;
    opacity: 0.7;
}

.tp-accept-pricing-note {
    font-size: 0.78rem;
    opacity: 0.85;
    line-height: 1.5;
}

.tp-accept-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #888;
    justify-content: center;
    text-align: center;
}

    .tp-accept-secure i {
        color: #2E7D32;
    }

/* ============================================================================
   INVITE EXPIRED PAGE
   ============================================================================ */
.tp-expired-page {
    background: linear-gradient(135deg, #F8F9FB 0%, #FFF3E6 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-expired {
    background: var(--tp-white);
    border-radius: 24px;
    padding: 56px 48px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.tp-expired-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.tp-expired-title {
    font-family: var(--tp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 12px;
}

.tp-expired-body {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 28px;
}

.tp-expired-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tp-expired-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.78rem;
    color: #888;
    padding-top: 20px;
    border-top: 1px solid var(--tp-border);
}

    .tp-expired-hint i {
        color: var(--tp-sky-dark);
    }

/* ============================================================================
   PROPERTY DETAIL PAGE
   ============================================================================ */
.tp-detail-page {
    padding: 24px 32px;
    background: var(--tp-off-white);
    min-height: 100vh;
}

.tp-detail-breadcrumb {
    margin-bottom: 16px;
}

    .tp-detail-breadcrumb a {
        font-size: 0.875rem;
        color: #555;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s;
    }

        .tp-detail-breadcrumb a:hover {
            color: var(--tp-orange);
        }

.tp-detail-hero {
    background: var(--tp-white);
    border: 1.5px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: var(--tp-shadow-sm);
}

.tp-detail-hero-main {
    flex: 1;
    min-width: 280px;
}

.tp-detail-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-orange);
    font-weight: 700;
    margin-bottom: 6px;
}

.tp-detail-title {
    font-family: var(--tp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 10px;
}

.tp-detail-addr,
.tp-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

    .tp-detail-addr i, .tp-detail-meta-row i {
        color: var(--tp-sky-dark);
    }

.tp-detail-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 14px 0 0;
    line-height: 1.5;
}

.tp-detail-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
}

.tp-detail-body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .tp-detail-body {
        grid-template-columns: 1fr;
    }
}

.tp-detail-col {
    min-width: 0;
}

.tp-detail-meta-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    margin: 0;
}

    .tp-detail-meta-list dt {
        font-size: 0.78rem;
        color: #888;
        font-weight: 600;
    }

    .tp-detail-meta-list dd {
        font-size: 0.875rem;
        color: var(--tp-charcoal);
        margin: 0;
    }

    .tp-detail-meta-list code {
        background: var(--tp-charcoal);
        color: var(--tp-sky);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.8rem;
    }

/* Small tail-end additions for class names referenced from older views/forms */
.tp-accept-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-onboard-step {
    animation: tp-step-fade 0.4s ease-out;
}

@keyframes tp-step-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ╔═══════════════════════════════════════════════════════════════════════╗
   ║                                                                       ║
   ║   TENANT+ HOME-PAGE JOURNEY — LIGHT THEME (v3, density-tuned)         ║
   ║                                                                       ║
   ║   Premium Apple/Stripe-grade compact design. Goals:                   ║
   ║   - Theater hero fits above the fold without scroll on 1080p+.        ║
   ║   - Card titles always one row (forced via white-space:nowrap).       ║
   ║   - Tenant card: icon + label inline with title to save space.        ║
   ║   - Landlord registration: 2 columns of inputs, leading icons inside, ║
   ║     postal+province on same row, tighter form-shell padding.          ║
   ║   - Tenant preview: 4-col card grid on desktop with denser cells;     ║
   ║     invite banner spans full width and gets larger visual weight.     ║
   ║                                                                       ║
   ╚═══════════════════════════════════════════════════════════════════════╝ */

/* ── Root journey container ─────────────────────────────────────────── */
.tp-journey {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(245,130,32,0.08) 0%, transparent 45%), radial-gradient(circle at 85% 80%, rgba(86,196,248,0.10) 0%, transparent 45%), linear-gradient(180deg, #FAFBFC 0%, #F4F6F9 100%);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 4px 20px rgba(0,0,0,0.04);
    font-family: var(--tp-font-body);
    color: var(--tp-charcoal);
    isolation: isolate;
}

    .tp-journey::before,
    .tp-journey::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
        opacity: 0.5;
        z-index: 0;
    }

    .tp-journey::before {
        width: 360px;
        height: 360px;
        background: rgba(245,130,32,0.18);
        top: -80px;
        left: -100px;
        animation: tp-orb-drift 14s ease-in-out infinite;
    }

    .tp-journey::after {
        width: 280px;
        height: 280px;
        background: rgba(86,196,248,0.20);
        bottom: -60px;
        right: -80px;
        animation: tp-orb-drift 18s ease-in-out infinite reverse;
    }

@keyframes tp-orb-drift {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(30px,-25px) scale(1.1);
    }
}

/* ── Panels ─────────────────────────────────────────────────────────── */
.tp-jpanel {
    display: none;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

    .tp-jpanel.active {
        display: flex;
        flex-direction: column;
        animation: tp-panel-in 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .tp-jpanel::-webkit-scrollbar {
        width: 6px;
    }

    .tp-jpanel::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 50px;
    }

@keyframes tp-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  PANEL 0 — THEATER (compact, fits above the fold)                ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-theater {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px 22px; /* was 22 28 28 — reclaim vertical space */
    display: flex;
    flex-direction: column;
    gap: 14px; /* was 18px */
}

.tp-theater-head {
    text-align: center;
    /* Wider container so longer translations (zu, xh, st, ts) fill the
       row before they ever need to wrap. English benchmark fits at
       760px; bumping to 1120px keeps the English layout visually
       identical while giving the longest translated subhead the runway
       it needs to wrap to exactly 2 rows (not 3). */
    max-width: 1120px;
    margin: 0 auto;
}

.tp-theater-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px; /* was 7/16 */
    border-radius: 50px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245,130,32,0.25);
    font-size: 0.74rem; /* was 0.78rem */
    font-weight: 600;
    color: var(--tp-charcoal);
    margin-bottom: 10px; /* was 16px */
}

    .tp-theater-eyebrow .tp-plus {
        color: var(--tp-sky);
        font-weight: 700;
    }

.tp-theater-eyebrow-sep {
    color: rgba(0,0,0,0.25);
}

/* Headline — single row across all locales.
   Two child spans are inline so they sit on one line. The font-size
   clamp lower bound is permissive enough that even the longer Bantu
   translations (zu, xh, st) lay out on one row inside .tp-theater-head's
   1040px max-width. text-wrap: balance kicks in only when the viewport
   is genuinely too narrow (mobile), and produces a clean 2-line break
   then instead of a lopsided one. */
.tp-theater-headline {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--tp-charcoal);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    display: block;
    text-wrap: balance;
    white-space: normal;
}

.tp-theater-line1 {
    display: inline;
}

.tp-theater-headline-accent {
    display: inline; /* sits on the same line as line1 */
    background: linear-gradient(135deg, var(--tp-orange) 0%, var(--tp-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 0.3em;
}

.tp-theater-sub {
    font-size: clamp(0.85rem, 1.3vw, 0.94rem);
    color: rgba(0,0,0,0.6);
    margin: 0 auto;
    /* Generous horizontal runway so every locale fits on 2 rows.
       English wraps to 2 short rows; Zulu/Tsonga (~20-25% longer)
       wrap to 2 fuller rows instead of overflowing to 3. */
    max-width: 1040px;
    line-height: 1.45;
    text-wrap: balance;
}

/* Three-card layout — Landlord / Tenant / Marketplace */
.tp-theater-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    /* Marketplace drops to its own row beneath the pair */
    .tp-theater-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-tcard--marketplace {
        grid-column: 1 / -1;
    }

        .tp-tcard--marketplace .tp-tcard-inner {
            max-width: 720px;
            margin: 0 auto;
        }
}

@media (max-width: 720px) {
    .tp-theater-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tp-tcard--marketplace {
        grid-column: auto;
    }

        .tp-tcard--marketplace .tp-tcard-inner {
            max-width: none;
        }
}

/* ── Glass cards — denser ───────────────────────────────────────────── */
.tp-tcard {
    position: relative;
    border-radius: 22px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,1);
    padding: 14px 16px; /* was 12px 14px — tiny bump for readability */
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.32s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.32s ease;
    overflow: hidden;
    isolation: isolate;
    /* Flex column so the inner can stretch and push the footer to the
       bottom edge of the card. With grid-template-columns: 1fr 1fr 1fr
       above, all three cards already share a row, so this guarantees
       every .tp-tcard-foot lands at the same horizontal baseline
       regardless of locale length. */
    display: flex;
    flex-direction: column;
}

    .tp-tcard:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 22px 48px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,1);
    }

.tp-tcard--landlord:hover {
    border-color: rgba(245,130,32,0.35);
}

.tp-tcard--tenant:hover {
    border-color: rgba(86,196,248,0.40);
}

.tp-tcard-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tp-tcard-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(60px);
    background: rgba(245,130,32,0.18);
    opacity: 0.7;
}

.tp-tcard-orb-1 {
    top: -100px;
    right: -60px;
}

.tp-tcard-orb-2 {
    bottom: -120px;
    left: -80px;
    opacity: 0.4;
}

.tp-tcard-orb-sky {
    background: rgba(86,196,248,0.22);
}

.tp-tcard-orb-violet {
    background: rgba(124,72,239,0.20);
}

.tp-tcard-orb-mint {
    background: rgba(20,184,166,0.20);
}

.tp-tcard-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* was 10px — tighter rhythm */
    height: 100%; /* fill the card so foot can be pushed to bottom */
    flex: 1 1 auto;
}

/* NEW: top header row — icon + label side-by-side to save vertical space */
.tp-tcard-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.tp-tcard-icon {
    width: 50px;
    height: 50px; /* was 56x56 — smaller icon, more room for content */
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tp-tcard-icon svg {
        width: 100%;
        height: 100%;
        padding: 6px;
    }

.tp-tcard-scan {
    animation: tp-scan-h 3s ease-in-out infinite;
    transform-origin: center;
}

.tp-tcard-pulse {
    animation: tp-pulse 2.4s ease-in-out infinite;
}

@keyframes tp-scan-h {
    0%,100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes tp-pulse {
    0%,100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.tp-tcard-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--tp-orange);
    text-transform: uppercase;
}

.tp-tcard-label-sky {
    color: var(--tp-sky-dark);
}

/* Title — wraps to a max of 2 lines so longer translations are never
   cut off mid-word with an ellipsis. English fits on 1 line; translated
   copy (e.g. Zulu "Phatha yonke impahla, ngaphandle kwesiphithiphithi.")
   wraps to 2. The min-height keeps the three cards visually aligned so
   when one card's title wraps, the others reserve the same vertical
   space and the icons + foots stay in tidy horizontal bands. */
.tp-tcard-title {
    font-size: clamp(1.08rem, 1.7vw, 1.32rem); /* slightly smaller floor */
    font-weight: 700;
    line-height: 1.2; /* was 1.18 — marginally airier */
    color: var(--tp-charcoal);
    margin: 2px 0 0;
    letter-spacing: -0.01em;
    /* 2-line wrap with no mid-word clipping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: anywhere;
    /* Reserve 2 lines of height so cards stay aligned across languages */
    min-height: calc(1.2em * 2);
}

.tp-tcard-desc {
    font-size: 0.84rem; /* was 0.86rem */
    line-height: 1.45; /* was 1.5 — tighter for compactness */
    color: rgba(0,0,0,0.62);
    margin: 0;
    /* No max-line-clamp — longer translations (zu/ts/xh/st) need the
       vertical room to render fully. The English benchmark naturally
       fits in ~3 lines; longer locales grow as needed. A min-height
       reserves a baseline so short copy doesn't pull the foot up
       inconsistently across the three cards. */
    min-height: calc(1.45em * 3);
    /* Grow to fill remaining vertical space so footers across all three
       cards align at the same baseline. Without this, a card with a
       short description (e.g. English benchmark) ends earlier than a
       card with a longer translation, and footers misalign. */
    flex: 1 0 auto;
}

.tp-tcard-tags {
    /* Strict 2-column grid so every card has the same tag structure
       regardless of locale. flex-wrap + justify-content: center used
       to collapse to a single column the moment any chip exceeded
       half the card width (which happens often in zu/ts/xh) — the
       grid locks the layout. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px; /* a touch more breathing room between columns */
    row-gap: 6px; /* was 3px — tags wrap to 2 lines in long locales */
    margin: 6px 0 10px; /* was 4 0 8 */
    justify-items: start;
    align-items: start; /* top-align so wrapped tags don't bounce baselines */
}

    /* Bare chips: no chip background, no border. Just icon + label.
       The card itself is the only enclosure — chips read as content,
       not as a second nested shape. Labels are allowed to wrap to a
       second line inside their grid cell rather than truncate with
       ellipsis — full words always visible across every locale. */
    .tp-tcard-tags span {
        display: inline-flex;
        align-items: flex-start; /* icon stays top-aligned with first text line */
        gap: 6px;
        padding: 2px 0;
        border: 0;
        background: transparent;
        border-radius: 0;
        font-size: 0.74rem;
        font-weight: 500;
        color: rgba(0,0,0,0.72);
        line-height: 1.25; /* slight bump so wrapped lines breathe */
        /* Allow wrapping inside the cell — no clipping, no ellipsis */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 100%;
        min-width: 0;
    }

    .tp-tcard-tags i {
        font-size: 0.88rem;
        line-height: 1.25; /* match the label so icon aligns to first line */
        color: var(--tp-orange);
        flex-shrink: 0;
        margin-top: 1px; /* optical centring against the cap-line of text */
    }

.tp-tcard--tenant .tp-tcard-tags i {
    color: var(--tp-sky);
}

/* Footer — CTA + pricing in same row to save vertical space.
   NOTE: A unified set of rules later in the file (search for
   "UNIFIED THEATER CARD FOOT") supersedes this and locks the foot
   to flex-wrap: nowrap with internal CTA-label wrapping so longer
   translations never push the price block onto a second row. The
   values here are kept in sync so the cascade is consistent. */
.tp-tcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-wrap: nowrap;
}

.tp-tcard-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px; /* was 12/22 */
    border-radius: 50px;
    background: var(--tp-charcoal);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem; /* was 0.92rem */
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tp-tcard:hover .tp-tcard-cta {
    background: var(--tp-orange);
    transform: translateX(4px);
}

.tp-tcard-cta i {
    font-size: 1.05rem;
}

.tp-tcard--tenant:hover .tp-tcard-cta-sky {
    background: var(--tp-sky-dark);
}

/* Pricing — sits at right of footer */
.tp-tcard-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
    flex-shrink: 0;
}

    .tp-tcard-pricing > span:first-child + span,
    .tp-tcard-pricing > .tp-tcard-price-meta {
        display: inline;
    }

.tp-tcard-price {
    font-family: var(--tp-font-display);
    font-size: 1.3rem; /* was 1.4rem */
    font-weight: 700;
    color: var(--tp-orange);
    line-height: 1;
}

.tp-tcard-price-meta {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.55);
}

.tp-tcard-pricing small {
    font-size: 0.68rem; /* was 0.72rem */
    color: rgba(0,0,0,0.45);
    margin-top: 3px;
}

.tp-tcard-free {
    font-family: var(--tp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-sky-dark);
    line-height: 1;
}

.tp-tcard-pricing-tenant .tp-tcard-free {
    color: var(--tp-sky-dark);
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  MARKETPLACE CARD VARIANT                                         ║
   ║  Service-provider listing — violet (#7C48EF) primary + mint       ║
   ║  (#14B8A6) accent. Once-off R199 pricing model.                   ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-tcard--marketplace:hover {
    border-color: rgba(124,72,239,0.40);
}

/* "FOR SERVICE PROVIDERS" label — violet uppercase */
.tp-tcard-label-mp {
    color: #7C48EF;
}

/* Once-off ribbon in the header row — pushed to the far right via auto margin */
.tp-tcard-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto; /* pushes ribbon to the end of the top row */
    padding: 4px 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7C48EF 0%, #14B8A6 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(124,72,239,0.30);
    flex-shrink: 0;
    line-height: 1;
}

    .tp-tcard-ribbon i {
        font-size: 0.78rem;
        color: #FFD66B; /* warm yellow lightning glints against violet */
    }

/* Tag accent colour matches the violet marketplace token */
.tp-tcard--marketplace .tp-tcard-tags i {
    color: #7C48EF;
}

/* CTA — black default, violet→mint gradient on hover with mint glow */
.tp-tcard-cta-mp {
}
/* no override on default state — inherits charcoal pill */
.tp-tcard--marketplace:hover .tp-tcard-cta-mp {
    background: linear-gradient(135deg, #7C48EF 0%, #14B8A6 100%);
    box-shadow: 0 8px 22px rgba(20,184,166,0.40);
}

/* Pricing strip — keeps R199 in marketplace violet for visual consistency
   with the storefront icon, while "once-off" reads in the same violet for
   stronger one-off semantics over the orange/monthly model. */
.tp-tcard-price-mp {
    color: #7C48EF;
}

.tp-tcard-once {
    color: #7C48EF;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* On narrow widths the foot wraps so the CTA gets its own row and the
   price block sits beneath it. We rely on flex-wrap here (not direction
   reversal) so it composes cleanly with the @media (max-width: 460px)
   rule further down and with the natural source order (CTA → price). */
@media (max-width: 520px) {
    .tp-tcard-foot {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

        .tp-tcard-foot .tp-tcard-cta {
            flex: 0 0 100%;
            justify-content: center;
        }

    .tp-tcard-pricing,
    .tp-tcard-priceblock {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  PANEL 1 — BRANCH CONTAINER                                       ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-jheader {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px; /* was 14/22 */
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.tp-jback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--tp-charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
}

    .tp-jback:hover {
        background: rgba(0,0,0,0.07);
        transform: translateX(-2px);
    }

.tp-jbrand {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .tp-jbrand .tp-plus {
        color: var(--tp-sky);
    }

.tp-jbrand-meta {
    font-family: var(--tp-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0,0,0,0.5);
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.tp-jbrand-spacer {
    width: 88px;
}

/* Branch — landlord uses tighter max-width, tenant uses wider for the grid */
.tp-jbranch {
    display: none;
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 18px 24px 36px; /* was 28/24/56 */
    flex-direction: column;
    gap: 16px; /* was 22px */
}

    .tp-jbranch[data-branch="landlord"] {
        max-width: 820px;
    }

    .tp-jbranch[data-branch="tenant"] {
        max-width: 1240px;
    }

    .tp-jbranch.active {
        display: flex;
        animation: tp-branch-in 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }

@keyframes tp-branch-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Stepper — compacted ────────────────────────────────────────────── */
.tp-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 6px;
    margin-bottom: 0;
}

.tp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0,0,0,0.4);
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

    .tp-step.active {
        color: var(--tp-charcoal);
    }

    .tp-step.complete {
        color: var(--tp-sky-dark);
    }

.tp-step-dot {
    width: 26px;
    height: 26px; /* was 28x28 */
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tp-step.active .tp-step-dot {
    background: var(--tp-orange);
    border-color: var(--tp-orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,130,32,0.35);
}

.tp-step.complete .tp-step-dot {
    background: var(--tp-sky);
    border-color: var(--tp-sky);
    color: #fff;
}

.tp-step-bar {
    flex: 1;
    height: 3px;
    background: rgba(0,0,0,0.08);
    border-radius: 50px;
    overflow: hidden;
}

.tp-step-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--tp-orange) 0%, var(--tp-sky) 100%);
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Form shell — tighter padding, allow horizontal density ─────────── */
.tp-jform-shell {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.95);
    border-radius: 22px;
    padding: 22px 28px 22px; /* was 32 32 28 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tp-jform {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* was 18px */

.tp-jstep {
    display: none;
    flex-direction: column;
    gap: 14px;
}
    /* was 18px */
    .tp-jstep.tp-jstep--active {
        display: flex;
        animation: tp-step-in 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

@keyframes tp-step-in {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tp-jstep-title {
    font-family: var(--tp-font-display);
    font-size: 1.25rem; /* was 1.35rem */
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tp-jstep-sub {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.55);
    margin: -8px 0 4px;
    line-height: 1.45;
}

/* ── Field rows ─────────────────────────────────────────────────────── */
.tp-jrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* was 14px */
}

.tp-jrow-3 {
    grid-template-columns: 1fr 0.8fr 1.1fr; /* city / postcode / province */
}

@media (max-width: 600px) {
    .tp-jrow,
    .tp-jrow-3 {
        grid-template-columns: 1fr;
    }
}

.tp-jfield {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

    .tp-jfield label {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--tp-charcoal);
        display: flex;
        align-items: center;
        gap: 8px;
    }

.tp-jopt {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 50px;
}

.tp-jhint {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.5);
    margin-top: 3px;
}

/* ── Inputs (with leading icon) ─────────────────────────────────────── */
.tp-jinput-wrap {
    position: relative;
    display: block;
}

.tp-jinput-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,0.4);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.22s ease;
    line-height: 1;
}

.tp-jinput-wrap:focus-within .tp-jinput-icon {
    color: var(--tp-orange);
}

.tp-jinput {
    width: 100%;
    padding: 11px 14px; /* was 12/16 */
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 11px; /* was 12px */
    background: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-family: var(--tp-font-body);
    color: var(--tp-charcoal);
    transition: all 0.22s ease;
}

.tp-jinput--with-icon {
    padding-left: 38px;
}
/* room for the leading icon */
.tp-jinput:focus {
    outline: none;
    border-color: var(--tp-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,130,32,0.12);
}

.tp-jinput:disabled,
.tp-jinput[readonly] {
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.5);
}

.tp-jselect {
    padding-right: 36px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%231A1A1F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Category grid — tighter cells */
.tp-jcatgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* was 10px */
}

@media (max-width: 480px) {
    .tp-jcatgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tp-jcat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 6px; /* was 14/8 */
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 11px;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.22s ease;
    font-size: 0.74rem; /* was 0.78rem */
    color: rgba(0,0,0,0.65);
    font-weight: 500;
    font-family: var(--tp-font-body);
    line-height: 1;
}

    .tp-jcat i {
        font-size: 1.25rem;
        color: rgba(0,0,0,0.55);
        transition: color 0.22s ease;
    }

    .tp-jcat:hover {
        border-color: rgba(245,130,32,0.4);
        transform: translateY(-2px);
    }

    .tp-jcat.active {
        border-color: var(--tp-orange);
        background: rgba(245,130,32,0.06);
        color: var(--tp-orange);
        box-shadow: 0 4px 12px rgba(245,130,32,0.15);
    }

        .tp-jcat.active i {
            color: var(--tp-orange);
        }

/* Buttons */
.tp-jbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px; /* was 13/22 */
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--tp-font-body);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    line-height: 1;
}

.tp-jbtn-primary {
    background: var(--tp-orange);
    color: #fff;
    box-shadow: 0 6px 18px rgba(245,130,32,0.32);
}

    .tp-jbtn-primary:hover {
        background: var(--tp-orange-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(245,130,32,0.42);
    }

    .tp-jbtn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.tp-jbtn-ghost {
    background: rgba(0,0,0,0.04);
    color: var(--tp-charcoal);
    border: 1px solid rgba(0,0,0,0.08);
}

    .tp-jbtn-ghost:hover {
        background: rgba(0,0,0,0.07);
        border-color: rgba(0,0,0,0.12);
    }

.tp-jactions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

.tp-jactions-split {
    justify-content: space-between;
}

.tp-jswitch {
    margin-top: 4px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

    .tp-jswitch a {
        color: var(--tp-orange);
        font-weight: 600;
        text-decoration: none;
        margin-left: 4px;
    }

        .tp-jswitch a:hover {
            text-decoration: underline;
        }

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  TENANT PREVIEW BRANCH — wide grid, denser cards                  ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-tpreview-hero {
    text-align: center;
    padding: 4px 8px;
}

.tp-tpreview-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px; /* was 6/14 */
    border-radius: 50px;
    background: rgba(86,196,248,0.12);
    border: 1px solid rgba(86,196,248,0.3);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tp-sky-dark);
    margin-bottom: 10px; /* was 14px */
}
/* Tenant preview headline — explicit two rows, line 1 + accent line 2 */
.tp-tpreview-headline {
    font-family: var(--tp-font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1; /* was 1.18 */
    color: var(--tp-charcoal);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.tp-tpreview-line1 {
    display: block;
}

.tp-tpreview-headline-accent {
    display: block;
    background: linear-gradient(135deg, var(--tp-sky) 0%, var(--tp-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp-tpreview-sub {
    font-size: 0.88rem; /* was 0.92rem */
    color: rgba(0,0,0,0.6);
    margin: 0 auto;
    max-width: 720px; /* was 520px */
    line-height: 1.5;
}

/* 12-card grid — 4 columns on desktop, no minmax that lets cells balloon */
.tp-tpreview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* was auto-fit minmax 170 */
    gap: 10px; /* was 12px */
}

@media (max-width: 1100px) {
    .tp-tpreview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .tp-tpreview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .tp-tpreview-grid {
        grid-template-columns: 1fr;
    }
}

.tp-tpreview-card {
    position: relative;
    padding: 14px 14px; /* was 18/16 */
    border-radius: 14px; /* was 16px */
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.28s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .tp-tpreview-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 14px 28px rgba(0,0,0,0.08);
        border-color: rgba(245,130,32,0.2);
    }

.tp-tpreview-card-feat {
    background: linear-gradient(135deg, rgba(86,196,248,0.08) 0%, rgba(245,130,32,0.06) 100%);
    border-color: rgba(86,196,248,0.3);
}

.tp-tpreview-card-emerg {
    border-color: rgba(220,53,69,0.25);
    background: linear-gradient(135deg, rgba(255,235,238,0.6) 0%, rgba(255,255,255,0.85) 100%);
}

/* Card head — icon + title side-by-side */
.tp-tpreview-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.tp-tpreview-icon {
    width: 36px;
    height: 36px; /* was 40x40 */
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0; /* gone — was 10px */
}

.tp-icon-orange {
    background: rgba(245,130,32,0.12);
    color: var(--tp-orange);
}

.tp-icon-sky {
    background: rgba(86,196,248,0.14);
    color: var(--tp-sky-dark);
}

.tp-icon-red {
    background: rgba(220,53,69,0.10);
    color: #dc3545;
}

.tp-tpreview-card-head h4 {
    font-family: var(--tp-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
    /* one row only on desktop, ellipsis if it overflows */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-tpreview-card p {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.55);
    margin: 0;
    line-height: 1.4;
}

/* Wide invite-only callout — full width, more visual punch */
.tp-invite-banner {
    display: grid;
    grid-template-columns: 72px 1fr auto; /* fixed icon col */
    align-items: center;
    gap: 22px;
    padding: 22px 28px; /* slightly larger */
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245,130,32,0.08) 0%, rgba(86,196,248,0.10) 100%);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,1);
    width: 100%; /* full grid width */
}

@media (max-width: 720px) {
    .tp-invite-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }

    .tp-invite-banner-actions {
        justify-content: center;
    }
}

.tp-invite-banner-icon {
    width: 64px;
    height: 64px; /* was 56x56 */
    border-radius: 16px;
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(245,130,32,0.25);
    color: var(--tp-orange);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .tp-invite-banner-icon {
        margin: 0 auto;
    }
}

.tp-invite-banner-body h4 {
    font-family: var(--tp-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 4px;
    line-height: 1.2;
}

.tp-invite-banner-body p {
    font-size: 0.86rem;
    color: rgba(0,0,0,0.6);
    margin: 0;
    line-height: 1.5;
    max-width: 640px;
}

.tp-invite-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Invite-code mini-form / ask-landlord mini-form */
.tp-invite-code-form,
.tp-invite-landlord-form {
    background: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(255,255,255,1);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    animation: tp-form-slide-in 0.36s cubic-bezier(0.25, 1, 0.5, 1);
}

    .tp-invite-code-form h4,
    .tp-invite-landlord-form h4 {
        font-family: var(--tp-font-display);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--tp-charcoal);
        margin: 0 0 4px;
    }

    .tp-invite-code-form > p,
    .tp-invite-landlord-form > p {
        font-size: 0.85rem;
        color: rgba(0,0,0,0.55);
        margin: 0 0 14px;
        line-height: 1.5;
    }

    .tp-invite-code-form .tp-jrow {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

@media (max-width: 600px) {
    .tp-invite-code-form .tp-jrow {
        grid-template-columns: 1fr;
    }
}

@keyframes tp-form-slide-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tp-jchannel-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tp-jchannel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 50px;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid rgba(0,0,0,0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(0,0,0,0.6);
    cursor: pointer;
    transition: all 0.22s ease;
}

    .tp-jchannel:hover {
        border-color: rgba(245,130,32,0.4);
        color: var(--tp-orange);
    }

    .tp-jchannel.active {
        background: var(--tp-orange);
        border-color: var(--tp-orange);
        color: #fff;
        box-shadow: 0 4px 10px rgba(245,130,32,0.3);
    }

/* Alert blocks */
.tp-jalert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-top: 4px;
}

.tp-jalert-success {
    background: rgba(40,167,69,0.10);
    color: #1e7e34;
    border: 1px solid rgba(40,167,69,0.25);
}

.tp-jalert-error {
    background: rgba(220,53,69,0.10);
    color: #c82333;
    border: 1px solid rgba(220,53,69,0.25);
}

.tp-jalert-info {
    background: rgba(86,196,248,0.10);
    color: var(--tp-sky-dark);
    border: 1px solid rgba(86,196,248,0.30);
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  MOBILE — NATIVE-APP FEEL                                         ║
   ╚══════════════════════════════════════════════════════════════════╝ */
@media (max-width: 768px) {
    .tp-journey {
        border-radius: 18px;
    }

    .tp-theater {
        padding: 18px 16px 24px;
        gap: 16px;
    }

    .tp-tcard {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .tp-tcard-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .tp-tcard-cta {
        padding: 10px 16px;
        font-size: 0.86rem;
    }

    .tp-jform-shell {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }

    .tp-jbranch {
        padding: 14px 12px 30px;
        gap: 14px;
    }

    .tp-jheader {
        padding: 10px 12px;
    }

    .tp-jbrand-meta {
        display: none;
    }

    .tp-jbrand-spacer {
        width: 60px;
    }

    .tp-stepper {
        padding: 0 4px;
    }

    .tp-step span {
        display: none;
    }

    .tp-jstep-title {
        font-size: 1.12rem;
    }

    .tp-jbtn {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .tp-jactions-split .tp-jbtn {
        flex: 1;
    }

    .tp-tpreview-card {
        padding: 12px 11px;
        border-radius: 12px;
    }

    .tp-tpreview-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 9px;
    }

    .tp-tpreview-card-head h4 {
        font-size: 0.86rem;
    }

    .tp-tpreview-card p {
        font-size: 0.74rem;
    }

    .tp-invite-banner {
        padding: 16px;
        border-radius: 14px;
        gap: 12px;
    }

    .tp-invite-banner-actions {
        width: 100%;
    }

        .tp-invite-banner-actions .tp-jbtn {
            flex: 1;
        }
}

/* iPhone SE-class */
@media (max-width: 380px) {
    .tp-theater-headline {
        font-size: 1.55rem;
    }

    .tp-tcard-title {
        font-size: 1.1rem;
        /* base rule already wraps; this just trims the font on tiny screens */
    }

    .tp-tcard-foot {
        gap: 10px;
    }

    .tp-jcatgrid {
        gap: 6px;
    }

    .tp-jcat {
        padding: 9px 5px;
        font-size: 0.7rem;
    }

        .tp-jcat i {
            font-size: 1.1rem;
        }

    .tp-tpreview-card-head h4 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* ╔═══════════════════════════════════════════════════════════════════════╗
   ║                                                                       ║
   ║   v5 — JOURNEY UPGRADES                                               ║
   ║   • Sticky header with stepper inside (Back · Stepper · Brand)        ║
   ║   • Theater card foot — pricing inline with CTA (3 cards consistent)  ║
   ║   • Tenant card invite-tag (no more "Free for tenants" headline)      ║
   ║   • SA-ID/Passport identity toggle                                    ║
   ║   • Reusable .ikh-pwd-meter password strength component               ║
   ║   • Google Places autocomplete dropdowns                              ║
   ║   • Step 2 two-column layout (form + Street View panel)               ║
   ║   • Step 3 payment with order summary                                 ║
   ║   • Card-input branding glyph + eye-toggle on password fields         ║
   ║                                                                       ║
   ╚═══════════════════════════════════════════════════════════════════════╝ */

/* ── Theater foot — pricing inline with CTA on Landlord/Tenant cards ─── */
/* Was: pricing block stacked at bottom right. Now: a single horizontal
   row that mirrors how the Marketplace card already renders, so all
   three cards have a visually identical footer layout.
   v6 note: flex-wrap kept NOWRAP so the CTA + price stay on a single
   row in every locale. The CTA itself flex-shrinks and wraps its
   internal label rather than pushing the price block onto row 2. */
.tp-tcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.tp-tcard-pricing {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    flex-shrink: 0;
}

/* Tenant card uses a single line tag instead of price + caption */
.tp-tcard-pricing-tenant {
    align-items: flex-end;
    text-align: right;
}

.tp-tcard-invite-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(86,196,248,0.10);
    color: var(--tp-sky-dark);
    border: 1px solid rgba(86,196,248,0.25);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

    .tp-tcard-invite-tag::before {
        content: "\f47b"; /* bi-envelope-paper */
        font-family: bootstrap-icons;
        font-size: 0.85rem;
    }

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  STICKY JOURNEY HEADER — Back · Stepper · Brand                   ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-jheader {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.tp-jheader-left {
    display: flex;
    justify-content: flex-start;
}

.tp-jheader-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}
/* allow stepper bars to shrink */
.tp-jheader-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Tenant preview branch hides the stepper (no steps) */
.tp-jheader[data-branch="tenant"] .tp-jheader-center {
    visibility: hidden;
}

.tp-jbrand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1;
    min-width: 0;
}

.tp-jbrand-name {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    line-height: 1;
}

    .tp-jbrand-name .tp-plus {
        color: var(--tp-sky);
    }

.tp-jbrand-meta {
    font-family: var(--tp-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0,0,0,0.5);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

/* Stepper inside the header — compact, horizontal */
.tp-jheader .tp-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    width: clamp(280px, 38vw, 460px);
}

.tp-jheader .tp-step span {
    font-size: 0.78rem;
    white-space: nowrap;
}

.tp-jheader .tp-step-dot {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
}

.tp-jheader .tp-step-bar {
    height: 3px;
    min-width: 24px;
}

@media (max-width: 900px) {
    .tp-jheader {
        grid-template-columns: auto 1fr auto;
        padding: 10px 14px;
        gap: 8px;
    }

        .tp-jheader .tp-stepper {
            width: auto;
        }

    .tp-jbrand-meta {
        display: none;
    }

    .tp-jheader .tp-step span {
        display: none;
    }
    /* dots-only on mobile */
}

/* On the LANDLORD branch we hide the step labels in the body since the
   header now owns the stepper entirely. */
.tp-jbranch[data-branch="landlord"] > .tp-stepper {
    display: none;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  IDENTITY DOCUMENT TOGGLE — SA ID / Passport                      ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-jlabel-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tp-id-toggle {
    display: inline-flex;
    background: rgba(0,0,0,0.04);
    border-radius: 50px;
    padding: 3px;
    border: 1px solid rgba(0,0,0,0.06);
}

.tp-id-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    background: transparent;
    border: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(0,0,0,0.55);
    cursor: pointer;
    transition: all 0.22s ease;
    line-height: 1;
    font-family: var(--tp-font-body);
}

    .tp-id-toggle-btn:hover {
        color: var(--tp-charcoal);
    }

    .tp-id-toggle-btn.active {
        background: var(--tp-charcoal);
        color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .tp-id-toggle-btn i {
        font-size: 0.82rem;
    }

.tp-jrow-passport {
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
}

@media (max-width: 600px) {
    .tp-jrow-passport {
        grid-template-columns: 1fr;
    }
}

/* SA ID input — show a small validity tick when valid */
.tp-jinput-wrap.tp-id-valid::after {
    content: "\f26b"; /* bi-check-circle-fill */
    font-family: bootstrap-icons;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 1.05rem;
    pointer-events: none;
}

.tp-jinput-wrap.tp-id-invalid input {
    border-color: rgba(220,53,69,0.5);
}

/* Eye toggle for password fields */
.tp-jinput-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .tp-jinput-eye:hover {
        color: var(--tp-charcoal);
        background: rgba(0,0,0,0.04);
    }

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  REUSABLE PASSWORD STRENGTH METER (.ikh-pwd-meter)                ║
   ║  Drop the markup next to any .ikh-pwd input on the site.          ║
   ║  JS in tenant-portal.js (window.IkhPwdStrength) auto-binds.       ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.ikh-pwd-meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 0;
}

.ikh-pwd-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.ikh-pwd-bar {
    height: 4px;
    border-radius: 50px;
    background: rgba(0,0,0,0.08);
    transition: background 0.3s ease;
}
/* Score 1: weak (red), 2: weak-medium (orange),
   3: medium (amber), 4: strong (sky), 5: very strong (mint) */
.ikh-pwd-meter[data-score="1"] .ikh-pwd-bar[data-band="1"] {
    background: #DC3545;
}

.ikh-pwd-meter[data-score="2"] .ikh-pwd-bar[data-band="1"],
.ikh-pwd-meter[data-score="2"] .ikh-pwd-bar[data-band="2"] {
    background: #FF8A33;
}

.ikh-pwd-meter[data-score="3"] .ikh-pwd-bar[data-band="1"],
.ikh-pwd-meter[data-score="3"] .ikh-pwd-bar[data-band="2"],
.ikh-pwd-meter[data-score="3"] .ikh-pwd-bar[data-band="3"] {
    background: #F58220;
}

.ikh-pwd-meter[data-score="4"] .ikh-pwd-bar[data-band="1"],
.ikh-pwd-meter[data-score="4"] .ikh-pwd-bar[data-band="2"],
.ikh-pwd-meter[data-score="4"] .ikh-pwd-bar[data-band="3"],
.ikh-pwd-meter[data-score="4"] .ikh-pwd-bar[data-band="4"] {
    background: #56C4F8;
}

.ikh-pwd-meter[data-score="5"] .ikh-pwd-bar {
    background: #14B8A6;
}

.ikh-pwd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
}

.ikh-pwd-label {
    font-weight: 600;
    color: rgba(0,0,0,0.6);
}

.ikh-pwd-value {
    font-weight: 700;
    color: rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.ikh-pwd-meter[data-score="1"] .ikh-pwd-value {
    color: #DC3545;
}

.ikh-pwd-meter[data-score="2"] .ikh-pwd-value {
    color: #FF8A33;
}

.ikh-pwd-meter[data-score="3"] .ikh-pwd-value {
    color: #F58220;
}

.ikh-pwd-meter[data-score="4"] .ikh-pwd-value {
    color: var(--tp-sky-dark);
}

.ikh-pwd-meter[data-score="5"] .ikh-pwd-value {
    color: #14B8A6;
}

.ikh-pwd-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    width: 100%;
    margin-top: 4px;
}

    .ikh-pwd-rules li {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.7rem;
        color: rgba(0,0,0,0.5);
        transition: color 0.2s ease;
    }

        .ikh-pwd-rules li i {
            font-size: 0.78rem;
            color: rgba(0,0,0,0.3);
            transition: color 0.2s ease;
        }

        .ikh-pwd-rules li.met {
            color: #14B8A6;
        }

            .ikh-pwd-rules li.met i {
                color: #14B8A6;
            }

                .ikh-pwd-rules li.met i::before {
                    content: "\f26b";
                }
/* check-circle-fill */

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  GOOGLE PLACES AUTOCOMPLETE DROPDOWN                              ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-autoc-host {
    position: relative;
}

.tp-autoc {
    position: relative;
}

.tp-autoc-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 50;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

    .tp-autoc-list.open {
        display: block;
        animation: tp-autoc-in 0.18s ease-out;
    }

@keyframes tp-autoc-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-autoc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

    .tp-autoc-item:last-child {
        border-bottom: 0;
    }

    .tp-autoc-item:hover,
    .tp-autoc-item.active {
        background: rgba(245,130,32,0.06);
    }

    .tp-autoc-item i {
        color: var(--tp-orange);
        font-size: 1rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

.tp-autoc-item-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.tp-autoc-item-main {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    line-height: 1.3;
}

.tp-autoc-item-sub {
    font-size: 0.74rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-autoc-empty,
.tp-autoc-loading {
    padding: 14px;
    font-size: 0.82rem;
    color: rgba(0,0,0,0.5);
    text-align: center;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  STEP 2 — TWO-COLUMN LAYOUT (form + Street View panel)            ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-step2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 6px;
}

.tp-step2-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tp-step2-side {
    min-width: 0;
}

@media (max-width: 1100px) {
    .tp-step2-grid {
        grid-template-columns: 1fr;
    }
}

/* Street View panel */
.tp-streetview {
    position: sticky;
    top: 0;
    background: #fff;
    border: 1.5px solid rgba(255,255,255,0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.tp-streetview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(245,130,32,0.06) 0%, rgba(86,196,248,0.06) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tp-charcoal);
}

    .tp-streetview-head > i {
        color: var(--tp-orange);
        font-size: 1rem;
    }

.tp-streetview-title {
    flex: 1;
}

.tp-streetview-status {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0,0,0,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 50px;
    background: rgba(0,0,0,0.04);
}

    .tp-streetview-status.ready {
        background: rgba(20,184,166,0.12);
        color: #0F8276;
    }

    .tp-streetview-status.loading {
        background: rgba(245,130,32,0.12);
        color: var(--tp-orange-dark);
    }

    .tp-streetview-status.empty-state {
        background: rgba(220,53,69,0.10);
        color: #B0282E;
    }

.tp-streetview-stage {
    position: relative;
    flex: 1;
    background: linear-gradient(135deg, #F4F6F9 0%, #E9EEF4 100%);
    overflow: hidden;
}

.tp-streetview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: rgba(0,0,0,0.4);
    font-size: 0.85rem;
    line-height: 1.5;
}

    .tp-streetview-empty i {
        font-size: 2.4rem;
        color: rgba(0,0,0,0.18);
    }

.tp-streetview-pano {
    position: absolute;
    inset: 0;
    display: none;
}

.tp-streetview.ready .tp-streetview-pano {
    display: block;
}

.tp-streetview.ready .tp-streetview-empty {
    display: none;
}

.tp-streetview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: var(--tp-charcoal);
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

.tp-streetview-coords {
    font-family: monospace;
}

.tp-streetview-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-orange);
    font-weight: 700;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  STEP 3 — PAYMENT                                                  ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.tp-pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 6px;
}

.tp-pay-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tp-pay-summary {
    min-width: 0;
}

@media (max-width: 900px) {
    .tp-pay-grid {
        grid-template-columns: 1fr;
    }
}

/* Card brand glyph (Visa / MasterCard) — populated by JS */
.tp-card-brand {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: rgba(0,0,0,0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

    .tp-card-brand.visa {
        color: #1A1F71;
    }

    .tp-card-brand.mc {
        color: #EB001B;
    }

    .tp-card-brand.amex {
        color: #2E77BB;
    }

.tp-pay-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(86,196,248,0.06);
    border: 1px solid rgba(86,196,248,0.2);
    border-radius: 12px;
}

    .tp-pay-trust > i {
        font-size: 1.6rem;
        color: var(--tp-sky-dark);
        flex-shrink: 0;
    }

    .tp-pay-trust strong {
        display: block;
        font-size: 0.85rem;
        color: var(--tp-charcoal);
    }

    .tp-pay-trust small {
        font-size: 0.74rem;
        color: rgba(0,0,0,0.55);
    }

.tp-pay-devnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,193,7,0.08);
    border: 1px dashed rgba(255,193,7,0.4);
    border-radius: 10px;
    font-size: 0.78rem;
    color: rgba(0,0,0,0.65);
    line-height: 1.5;
}

    .tp-pay-devnote > i {
        color: #B68C00;
        flex-shrink: 0;
        margin-top: 2px;
    }

/* Order summary */
.tp-pay-summary-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(252,247,242,0.85) 100%);
    border: 1.5px solid rgba(255,255,255,1);
    border-radius: 16px;
    padding: 18px 18px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
}

.tp-pay-summary-title {
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.tp-pay-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .tp-pay-summary-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        font-size: 0.85rem;
        color: rgba(0,0,0,0.65);
    }

    .tp-pay-summary-list strong {
        font-family: var(--tp-font-display);
        font-size: 0.95rem;
        color: var(--tp-charcoal);
        font-weight: 700;
    }

        .tp-pay-summary-list strong small {
            font-family: var(--tp-font-body);
            font-size: 0.7rem;
            color: rgba(0,0,0,0.5);
            font-weight: 500;
        }

.tp-pay-summary-divider {
    border-top: 1px dashed rgba(0,0,0,0.12);
    margin: 4px 0;
    padding: 0 !important;
    height: 0;
}

.tp-pay-summary-list .tp-pay-free {
    color: #14B8A6 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.04em;
}

.tp-pay-summary-foot {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.74rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.5;
}

    .tp-pay-summary-foot > i {
        color: var(--tp-sky-dark);
        flex-shrink: 0;
        margin-top: 2px;
    }

/* Activate button gets a subtle gold-glow on the final step */
.tp-jbtn-pay {
    background: linear-gradient(135deg, var(--tp-orange) 0%, #FFB347 100%);
    box-shadow: 0 8px 24px rgba(245,130,32,0.40);
}

    .tp-jbtn-pay:hover {
        box-shadow: 0 12px 32px rgba(245,130,32,0.55);
        transform: translateY(-1px);
    }

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  v8 + v9 — COMPACT STEP 1 · UNIFIED CARD FOOTERS · STICKY HEADER ║
   ║  · ID VALIDATION · ASTERISKS · SINGLE-ROW METER · WIDER STEP 2   ║
   ║  · DROPDOWN OVERLAY · FIXED ALERT · MARKETPLACE REGISTER PAGE    ║
   ║                                                                   ║
   ║  Goals (per Ikhayalami v8/v9 review):                             ║
   ║   1. Theater eyebrow centered.                                    ║
   ║   2. All 3 theater-card foots use Marketplace pattern             ║
   ║      (CTA + price chip in one row).                               ║
   ║   3. Step 1 fits within a single viewport, no scroll.             ║
   ║   4. Required-field asterisks across all forms.                   ║
   ║   5. SA-ID: green ✓ when valid, red ✕ when invalid.               ║
   ║   6. Confirm-password eye no longer overlaps native field UI.     ║
   ║   7. Step 2 wider, autocomplete dropdown overlays (no jumping).   ║
   ║   8. Property Name + Estate side-by-side in step 2.               ║
   ║   9. Sticky header survives "Ask my landlord" scroll.             ║
   ║  10. Step 3: dev note removed, Due today = R199, no "free".       ║
   ║  11. Marketplace register page styled to match Tenant+ premium.   ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── 1. Theater eyebrow — center under the head ── */
.tp-theater-head {
    text-align: center;
}

.tp-theater-eyebrow {
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ── 2. UNIFIED THEATER CARD FOOT (Marketplace pattern as benchmark) ──
   All three cards keep CTA + price (or invite tag) on a single row, no
   matter the locale. Previously a long translated CTA label like Zulu
   "Qala njengomnikazi wendawo" pushed the price block onto a second row.
   The fix:
     • foot stays flex-wrap: nowrap
     • CTA is allowed to flex & shrink (flex: 1 1 auto, min-width: 0)
     • CTA label wraps vertically inside its pill instead of pushing the
       price out — see .tp-tcard-cta override further down. */
.tp-tcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; /* push foot to bottom of inner — aligns all 3 */
    padding-top: 10px; /* was 12 */
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-wrap: nowrap;
    min-width: 0;
}

    /* CTA inside the foot — flexes, shrinks, wraps its label rather than
   forcing the price block to wrap. Keeps the pill compact on English
   ("Start as Landlord") and gracefully 2-lines on long translations. */
    .tp-tcard-foot .tp-tcard-cta {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        padding: 10px 14px; /* was 10 16 — tighter */
        font-size: 0.85rem;
    }

        .tp-tcard-foot .tp-tcard-cta > span {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .tp-tcard-foot .tp-tcard-cta i {
            flex-shrink: 0;
        }

.tp-tcard-priceblock {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

    .tp-tcard-priceblock .tp-tcard-price {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--tp-orange);
        line-height: 1;
    }

    .tp-tcard-priceblock .tp-tcard-price-meta {
        font-size: 0.68rem; /* was 0.7 */
        color: rgba(0,0,0,0.55);
        line-height: 1.1;
        margin-top: 2px;
    }

.tp-tcard-priceblock-mp .tp-tcard-price-mp {
    color: var(--tp-mp-violet, #7C48EF);
}

.tp-tcard-priceblock-mp .tp-tcard-once {
    color: var(--tp-mp-violet, #7C48EF);
    font-weight: 600;
}

.tp-tcard--tenant .tp-tcard-foot .tp-tcard-invite-tag {
    padding: 5px 8px; /* was 6 10 */
    font-size: 0.70rem; /* was 0.72 */
    /* Allow the invite-tag text to wrap onto a second line for longer
       translations (e.g. Zulu "Kwenziwe kusebenze ngesimemo"). Previously
       white-space: nowrap clipped the tail inside the pill — flex-shrink
       lets the pill itself stay compact next to the CTA. */
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    flex-shrink: 1;
    min-width: 0;
    max-width: 44%; /* was 50% — tighter so CTA gets more room */
}

@media (max-width: 460px) {
    /* On very narrow phones the CTA pill can't shrink any further and
       wrapping is the cleaner fallback. CTA spans the full row, price
       block sits beneath it, centred. */
    .tp-tcard-foot {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

        .tp-tcard-foot .tp-tcard-cta {
            flex: 0 0 100%;
        }

    .tp-tcard-priceblock,
    .tp-tcard--tenant .tp-tcard-foot .tp-tcard-invite-tag {
        align-items: center;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Keep the 2-column tag grid even on small phones — it stays
       readable because each chip's text truncates with ellipsis. */
    .tp-tcard-tags {
        grid-template-columns: 1fr 1fr;
        column-gap: 6px;
    }
}

/* ── 3. JOURNEY HEADER — bullet-proof sticky ── */
.tp-jpanel {
    contain: paint;
}

.tp-jheader {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* ── 4. LANDLORD BRANCH — wider so step 1 + 2 breathe ── */
.tp-jbranch[data-branch="landlord"] {
    max-width: 1180px;
}

    .tp-jbranch[data-branch="landlord"] #tpLandlordStep2 {
        width: 100%;
    }

/* ── 5. STEP 1 — COMPACT ROWS ── */
.tp-jstep-title {
    font-family: var(--tp-font-body);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

.tp-jstep-sub {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
    margin: -4px 0 4px;
    line-height: 1.4;
}

.tp-jstep {
    gap: 12px;
}

.tp-jrow,
.tp-jrow-3,
.tp-jrow-3-eq {
    gap: 10px;
}

.tp-jrow-3-eq {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 820px) {
    .tp-jrow-3-eq {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .tp-jrow-3-eq {
        grid-template-columns: 1fr;
    }
}

.tp-jfield {
    gap: 4px;
}

    .tp-jfield label {
        font-size: 0.76rem;
    }

/* ── 6. REQUIRED-FIELD ASTERISK ── */
.tp-jreq {
    color: #E24B4A;
    margin-left: 3px;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1;
}

/* ── 7. ID INPUT — VALIDATION ICON (✓ green / ✕ red) ── */
.tp-jinput-wrap.tp-jvalidate {
    position: relative;
}

    .tp-jinput-wrap.tp-jvalidate .tp-jinput {
        padding-right: 38px;
    }

    .tp-jinput-wrap.tp-jvalidate::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        font-family: bootstrap-icons;
        font-size: 0.95rem;
        line-height: 20px;
        text-align: center;
        opacity: 0;
        transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
        pointer-events: none;
    }

    .tp-jinput-wrap.tp-jvalidate.is-valid::after {
        content: "\f26b"; /* bi-check-lg */
        background: #14B8A6;
        color: #fff;
        opacity: 1;
    }

    .tp-jinput-wrap.tp-jvalidate.is-invalid::after {
        content: "\f659"; /* bi-x-lg */
        background: #E24B4A;
        color: #fff;
        opacity: 1;
    }

    .tp-jinput-wrap.tp-jvalidate.is-valid .tp-jinput {
        border-color: rgba(20,184,166,0.45);
        background: rgba(20,184,166,0.04);
    }

    .tp-jinput-wrap.tp-jvalidate.is-invalid .tp-jinput {
        border-color: rgba(226,75,74,0.45);
        background: rgba(226,75,74,0.04);
    }

/* ── 8. EYE BUTTON — fix overlap with native browser reveal ── */
input.tp-jinput--has-eye::-ms-reveal,
input.tp-jinput--has-eye::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input.tp-jinput--has-eye::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

.tp-jinput--has-eye {
    padding-right: 42px;
}

.tp-jinput-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease;
}

    .tp-jinput-eye:hover {
        background: rgba(0,0,0,0.04);
        color: var(--tp-charcoal);
    }

    .tp-jinput-eye i {
        font-size: 1rem;
        line-height: 1;
    }

/* ── 9. COMPACT PASSWORD STRENGTH METER ── */
.ikh-pwd-meter--compact {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .ikh-pwd-meter--compact .ikh-pwd-track {
        flex: 1;
        display: flex;
        gap: 3px;
        height: 4px;
    }

        .ikh-pwd-meter--compact .ikh-pwd-track .ikh-pwd-bar {
            flex: 1;
            background: rgba(0,0,0,0.08);
            border-radius: 2px;
            transition: background 0.2s ease;
        }

    .ikh-pwd-meter--compact .ikh-pwd-value {
        font-size: 0.72rem;
        font-weight: 600;
        color: rgba(0,0,0,0.55);
        white-space: nowrap;
        min-width: 56px;
        text-align: right;
    }

    .ikh-pwd-meter--compact .ikh-pwd-rules--tip {
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        min-width: 160px;
        padding: 8px 10px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 8px;
        box-shadow: 0 6px 22px rgba(0,0,0,0.10);
        list-style: none;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 10;
    }

    .ikh-pwd-meter--compact:hover .ikh-pwd-rules--tip,
    .ikh-pwd-meter--compact:focus-within .ikh-pwd-rules--tip {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .ikh-pwd-meter--compact .ikh-pwd-rules--tip li {
        font-size: 0.72rem;
        color: rgba(0,0,0,0.6);
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 2px 0;
    }

        .ikh-pwd-meter--compact .ikh-pwd-rules--tip li.ok {
            color: #0F6E56;
        }

            .ikh-pwd-meter--compact .ikh-pwd-rules--tip li.ok i::before {
                content: "\f26b";
            }

    .ikh-pwd-meter--compact[data-score="1"] .ikh-pwd-bar:nth-child(-n+1) {
        background: #E24B4A;
    }

    .ikh-pwd-meter--compact[data-score="2"] .ikh-pwd-bar:nth-child(-n+2) {
        background: #EF9F27;
    }

    .ikh-pwd-meter--compact[data-score="3"] .ikh-pwd-bar:nth-child(-n+3) {
        background: #EFCB27;
    }

    .ikh-pwd-meter--compact[data-score="4"] .ikh-pwd-bar:nth-child(-n+4) {
        background: #97C459;
    }

    .ikh-pwd-meter--compact[data-score="5"] .ikh-pwd-bar {
        background: #14B8A6;
    }

    .ikh-pwd-meter--compact[data-score="1"] .ikh-pwd-value {
        color: #E24B4A;
    }

    .ikh-pwd-meter--compact[data-score="2"] .ikh-pwd-value {
        color: #EF9F27;
    }

    .ikh-pwd-meter--compact[data-score="3"] .ikh-pwd-value {
        color: #EFCB27;
    }

    .ikh-pwd-meter--compact[data-score="4"] .ikh-pwd-value {
        color: #639922;
    }

    .ikh-pwd-meter--compact[data-score="5"] .ikh-pwd-value {
        color: #14B8A6;
    }

/* ── 10. ACTIONS + SIGN-IN SWITCH ON ONE ROW ── */
.tp-jactions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.tp-jactions-with-switch {
    justify-content: space-between;
    gap: 14px;
}

    .tp-jactions-with-switch .tp-jswitch {
        margin: 0;
        font-size: 0.82rem;
    }

/* ── 11. STEP 1 BUTTON — slimmer ── */
.tp-jbtn {
    padding: 11px 22px;
    font-size: 0.92rem;
}

/* ── 12. TENANT PREVIEW HERO — wider, body font, single-row title ── */
.tp-tpreview-hero {
    text-align: center;
    padding: 6px 8px 4px;
}

.tp-tpreview-headline {
    font-family: var(--tp-font-body);
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tp-charcoal);
    display: block;
    margin: 0 0 4px;
    text-wrap: balance;
}

.tp-tpreview-line1 {
    display: inline;
}

.tp-tpreview-headline-accent {
    display: inline;
    margin-left: 0.3em;
    background: linear-gradient(135deg, var(--tp-sky) 0%, var(--tp-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp-tpreview-sub {
    font-size: 0.84rem;
    color: rgba(0,0,0,0.6);
    margin: 0 auto;
    max-width: none;
    line-height: 1.4;
    text-wrap: balance;
}

.tp-tpreview-grid {
    gap: 8px;
}

.tp-tpreview-card {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 4px;
}

.tp-tpreview-card-head {
    gap: 8px;
    margin-bottom: 0;
}

.tp-tpreview-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.tp-tpreview-card-head h4 {
    font-family: var(--tp-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
}

.tp-tpreview-card p {
    font-size: 0.74rem;
    line-height: 1.35;
}

.tp-tcard-title {
    font-family: var(--tp-font-body);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Tenant preview branch — wider container so footer doesn't crowd */
.tp-jbranch[data-branch="tenant"] {
    max-width: 1180px;
}

/* ── 13. STEP 2 — wider grid, more visible at once ── */
.tp-step2-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .tp-step2-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 2 form: tighter category grid so 9 buttons take 2 rows not 3 */
.tp-jcatgrid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

@media (max-width: 720px) {
    .tp-jcatgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tp-jcat {
    padding: 8px 6px;
    font-size: 0.72rem;
}

    .tp-jcat i {
        font-size: 1.05rem;
    }

/* Street View panel — slightly taller for readability now that we have width */
.tp-streetview-stage {
    min-height: 280px;
}

/* ── 14. AUTOCOMPLETE DROPDOWN — overlay so form doesn't jump ──
   The list is already position: absolute so it overlays content. The
   reason the form was "jumping" was probably the small hint paragraph
   below the input (.tp-jhint) shifting when text wraps. We clamp it
   to a single line so the surrounding layout never reflows when the
   user types and the dropdown opens. */
.tp-autoc-host .tp-jhint {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* Reserve a stable height so the address field doesn't shift if the
   hint is briefly empty/loading. */
.tp-autoc-host {
    min-height: 0;
}

/* Dropdown — guarantee it overlays neighbouring fields when open and
   doesn't push the form below it. */
.tp-autoc-list {
    z-index: 50;
}

/* ── 15. STEP 3 — compact pay grid, due-today highlight ── */
.tp-pay-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.tp-pay-due {
    color: var(--tp-orange);
    font-size: 1.15rem;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .tp-pay-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 16. MARKETPLACE REGISTER PAGE ──
   New top-level page at /tenant-portal/marketplace/register. Premium
   tone matching the Tenant+ landlord journey but with the violet+mint
   marketplace accent. All under .tp-mp-* prefix to avoid collisions. */
.tp-mp-page {
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 100% -10%, rgba(124,72,239,0.08), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(20,184,166,0.07), transparent 55%), linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
    padding: 28px 16px 60px;
}

.tp-mp-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.tp-mp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px 22px;
}

.tp-mp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 0.15s ease, transform 0.15s ease;
}

    .tp-mp-back:hover {
        background: #fff;
        transform: translateX(-2px);
    }

.tp-mp-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.tp-mp-brand-name {
    font-family: var(--tp-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

    .tp-mp-brand-name .tp-plus {
        color: #7C48EF;
    }

.tp-mp-brand-meta {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tp-mp-hero {
    text-align: center;
    padding: 18px 12px 34px;
    max-width: 760px;
    margin: 0 auto;
}

.tp-mp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(124,72,239,0.10) 0%, rgba(20,184,166,0.10) 100%);
    color: #7C48EF;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tp-mp-headline {
    font-family: var(--tp-font-body);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tp-charcoal);
    margin: 0 0 10px;
    text-wrap: balance;
}

.tp-mp-headline-accent {
    background: linear-gradient(135deg, #7C48EF 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp-mp-sub {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.6);
    margin: 0 auto;
    line-height: 1.55;
    max-width: 580px;
}

.tp-mp-perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 920px;
    margin: 0 auto 28px;
}

@media (max-width: 720px) {
    .tp-mp-perks {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tp-mp-perk {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 14px 14px 16px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .tp-mp-perk:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    }

.tp-mp-perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,72,239,0.12) 0%, rgba(20,184,166,0.12) 100%);
    color: #7C48EF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 10px;
}

.tp-mp-perk-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0 0 3px;
    line-height: 1.2;
}

.tp-mp-perk-desc {
    font-size: 0.74rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.4;
    margin: 0;
}

/* ── Form card ── */
.tp-mp-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 32px 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.06);
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.04);
}

.tp-mp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.tp-mp-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-charcoal);
    margin: 0;
}

.tp-mp-price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #7C48EF 0%, #14B8A6 100%);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.tp-mp-price-pill-amount {
    font-size: 0.95rem;
}

.tp-mp-price-pill-meta {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 600;
}

/* Form fields — reuse tp-jfield/tp-jinput styles but with mp accent */
.tp-mp-form .tp-jfield {
    margin-bottom: 12px;
}

.tp-mp-form .tp-jinput:focus {
    border-color: #7C48EF;
    box-shadow: 0 0 0 3px rgba(124,72,239,0.18);
}

.tp-mp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 540px) {
    .tp-mp-row {
        grid-template-columns: 1fr;
    }
}

/* Service-category chip grid */
.tp-mp-svcgrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

@media (max-width: 820px) {
    .tp-mp-svcgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tp-mp-svcgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tp-mp-svc {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 10px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tp-charcoal);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

    .tp-mp-svc i {
        font-size: 1.05rem;
        color: rgba(0,0,0,0.55);
        transition: color 0.15s ease;
    }

    .tp-mp-svc:hover {
        border-color: rgba(124,72,239,0.4);
    }

    .tp-mp-svc.active {
        border-color: #7C48EF;
        background: rgba(124,72,239,0.06);
        color: #7C48EF;
    }

        .tp-mp-svc.active i {
            color: #7C48EF;
        }

/* Footer actions */
.tp-mp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.tp-mp-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(0,0,0,0.55);
}

    .tp-mp-trust i {
        color: #14B8A6;
    }

.tp-mp-cta {
    background: linear-gradient(135deg, #7C48EF 0%, #14B8A6 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 24px rgba(124,72,239,0.35);
}

    .tp-mp-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 32px rgba(124,72,239,0.45);
    }

    .tp-mp-cta:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* End of v8+v9 patch */

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  v9.1 — STEP HEADER INLINE · ADDRESS ROW UNIFIED                  ║
   ║                                                                   ║
   ║  - Step title and sub on a single row (saves a row of vertical   ║
   ║    space across all 3 steps).                                    ║
   ║  - Step 2 address: Street (wide) | City | Postal | Province on    ║
   ║    one row using grid-template-columns 2fr 1fr 0.7fr 1fr.        ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── Inline step head: title to the left, sub to the right ── */
.tp-jstep-head-inline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

    .tp-jstep-head-inline .tp-jstep-title {
        flex: 0 0 auto;
        margin: 0;
    }

    .tp-jstep-head-inline .tp-jstep-sub {
        flex: 1 1 200px;
        margin: 0;
        font-size: 0.78rem;
    }

@media (max-width: 540px) {
    .tp-jstep-head-inline {
        flex-direction: column;
        gap: 2px;
    }
}

/* ── Step 2 — unified address row ──
   Street (2fr) | City (1fr) | Postal (0.7fr) | Province (1fr).
   Re-flows to 2-cols at narrow widths and stacks at mobile. */
.tp-jrow-addr {
    display: grid;
    grid-template-columns: 2fr 1fr 0.7fr 1fr;
    gap: 10px;
}

@media (max-width: 1024px) {
    .tp-jrow-addr {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .tp-jrow-addr {
        grid-template-columns: 1fr;
    }
}

/* When tp-jfield-wide is on a child of a grid row, give it more weight.
   Used by the Street Address field within tp-jrow-addr. */
.tp-jrow-addr .tp-jfield-wide {
    /* row already gives it 2fr — this is a hook for narrower layouts */
}

/* The hint sits below the address row, full-width, single-line clamped */
.tp-jhint-block {
    display: block;
    margin-top: 4px;
}

/* End of v9.1 patch */

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  v9.2 — MARKETPLACE PAGE: WIDER · HEADLINE-ONE-ROW · SCROLLABLE   ║
   ║                                                                   ║
   ║  - Page now scrolls naturally instead of being clipped (was       ║
   ║    being capped to the parent's overflow:hidden viewport).        ║
   ║  - Shell widened from 1100 → 1400px to fill desktop better.       ║
   ║  - Headline + accent kept inline so "Get found by every renter.   ║
   ║    List once. Listed forever." sits on one row at desktop sizes.  ║
   ║  - Perks grid + form card now span the wider shell uniformly.     ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* The marketplace page lives at a top-level route (/tenant-portal/
   marketplace/register). The global _Layout structure is:
   <body class="vh-100 d-flex flex-column">
     <header class="header-strip">…</header>          ← fixed-height top bar
     <main class="main-content">@RenderBody()</main>  ← flex-grow fills rest
     <div class="floating-engagement">…</div>          ← absolute-positioned
   </body>
   On the home page this works because .main-content has overflow:hidden
   and inner panels do their own scrolling. For the marketplace page we
   want the OUTER scroll to live on .main-content itself, so:
   - header stays pinned at top (it's a sibling, doesn't scroll)
   - floating-engagement stays pinned via position:fixed
   - the marketplace content scrolls inside .main-content */

html:has(.tp-mp-page),
body:has(.tp-mp-page),
body.tp-mp-active {
    /* Body itself doesn't scroll — keeps the header in flow at top */
    overflow: hidden;
    height: 100vh;
}

    /* .main-content becomes the scroll container.
   We override the site.css overflow:hidden / height:100% which kept it
   clipped. flex-grow:1 keeps it filling the space below the header. */
    .main-content:has(.tp-mp-page),
    body.tp-mp-active .main-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }

    /* Pin the floating engagement so it stays in place while the marketplace
   content scrolls. The home-page rule uses position:absolute relative to
   the body, which would normally scroll with the page — but since body
   isn't scrolling on this page (only .main-content is) the floating
   buttons would actually stay put already. We promote them to fixed for
   absolute certainty across browsers. */
    body:has(.tp-mp-page) .floating-engagement,
    body.tp-mp-active .floating-engagement {
        position: fixed;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        z-index: 50;
    }

    /* Pin the assistant / pet widgets that sit bottom-right too. They use
   various class names depending on the build — cover the common ones. */
    body:has(.tp-mp-page) .ai-assistant-fab,
    body:has(.tp-mp-page) .pet-widget,
    body:has(.tp-mp-page) .floating-pet,
    body:has(.tp-mp-page) .ikh-pet,
    body.tp-mp-active .ai-assistant-fab,
    body.tp-mp-active .pet-widget,
    body.tp-mp-active .floating-pet,
    body.tp-mp-active .ikh-pet {
        position: fixed !important;
    }

/* The marketplace page itself fills the .main-content scroll viewport
   and lays out its content normally inside. */
.tp-mp-page {
    overflow: visible;
    height: auto;
    min-height: 100%;
    padding: 14px 16px 60px; /* was 28px top — lifts headings */
    box-sizing: border-box;
}

/* Lift the header (back · brand) and hero up — narrower top margin */
.tp-mp-header {
    padding: 0 4px 12px; /* was 22px bottom */
}

.tp-mp-hero {
    padding: 6px 12px 20px; /* was 18px 12px 32px */
    max-width: 920px;
    margin: 0 auto;
}

/* Hide bg-video / decorative shapes when on the marketplace page so
   they don't sit behind the form and steal scroll real estate. */
body:has(.tp-mp-page) .bg-video,
body:has(.tp-mp-page) .bg-shape-strip,
body:has(.tp-mp-page) .search-top-bar,
body:has(.tp-mp-page) .search-row-grid,
body:has(.tp-mp-page) .dynamic-tabs-container {
    display: none !important;
}

/* ── Wider shell so the page fills the viewport gracefully ── */
.tp-mp-shell {
    max-width: 1400px; /* was 1100 */
    margin: 0 auto;
    padding-inline: clamp(8px, 2vw, 24px);
}

/* ── Headline — keep both phrases on a single row at desktop ──
   The two spans are inline, so the trick is just sizing the headline
   so both phrases fit. We also bump the size for impact at the wider
   shell. text-wrap: balance keeps the wrapped layout tidy if the
   viewport is genuinely too narrow. */
.tp-mp-headline {
    font-size: clamp(1.4rem, 2.6vw, 2.0rem);
    line-height: 1.2;
    margin: 0 0 12px;
    white-space: normal;
    text-wrap: balance;
}

    .tp-mp-headline > span {
        display: inline;
    }

        .tp-mp-headline > span + span {
            margin-left: 0.4em;
        }

/* Hero — wider so the sub paragraph doesn't crowd in */
.tp-mp-hero {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 12px 32px;
}

.tp-mp-sub {
    max-width: 720px;
    font-size: 0.95rem;
}

/* ── Perks grid spans the new wider shell uniformly ── */
.tp-mp-perks {
    max-width: 1280px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .tp-mp-perks {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Form card — wider, fills the available space ── */
.tp-mp-card {
    max-width: 1280px;
    padding: 30px 36px 26px;
}

/* Layout the form card content as a 2-col grid where it makes sense:
   business+category on the left, contact+payment on the right at
   wider widths; collapses to a single column below 1024px. */
@media (min-width: 1024px) {
    /* Service category chip grid uses the full row width — let it use
       all 12 chips on a single row at the new shell size. */
    .tp-mp-svcgrid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 1024px) {
    .tp-mp-svcgrid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Card form rows — 3 columns on wide screens for compactness */
@media (min-width: 900px) {
    .tp-mp-row-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
}

/* End of v9.2 patch */


/* ════════════════════════════════════════════════════════════════════════
   MARKETPLACE BRANCH — appended styles for tenant-portal.css
   ════════════════════════════════════════════════════════════════════════
   Append this entire file to the end of tenant-portal.css. Everything is
   prefixed under .tp-jbranch[data-branch="marketplace"] or the .tp-mp-*
   namespace already used in MarketplaceRegister.cshtml, so it won't
   collide with the landlord (orange) or tenant (sky) branches.
   ════════════════════════════════════════════════════════════════════════ */


/* ── Show / hide marketplace branch (parallels landlord & tenant) ─────── */
.tp-jbranch[data-branch="marketplace"] {
    display: none;
}

    .tp-jbranch[data-branch="marketplace"].active {
        display: block;
    }

/* Hide landlord stepper when marketplace is active; show the MP stepper.
   The JS swaps these too — this is the CSS fallback. */
.tp-jheader[data-branch="marketplace"] #tpLandlordStepper {
    display: none !important;
}

.tp-jheader[data-branch="marketplace"] #tpMpStepper {
    display: flex !important;
}

#tpMpStepper {
    display: none;
}
/* hidden by default until role=marketplace */

/* When marketplace branch is active, recolour the journey accents
   from orange → violet/mint to match the For Service Providers card */
.tp-journey[data-branch="marketplace"] .tp-jbrand-name .tp-plus,
.tp-jheader[data-branch="marketplace"] .tp-jbrand-name .tp-plus {
    color: var(--tp-violet, #7C48EF);
}

/* MP-specific stepper colours */
.tp-stepper-mp .tp-step.active .tp-step-dot {
    background: var(--tp-violet, #7C48EF);
    border-color: var(--tp-violet, #7C48EF);
    color: #fff;
}

.tp-stepper-mp .tp-step.complete .tp-step-dot {
    background: var(--tp-mint, #14B8A6);
    border-color: var(--tp-mint, #14B8A6);
    color: #fff;
}

.tp-stepper-mp .tp-step-bar-fill {
    background: linear-gradient(90deg, var(--tp-violet, #7C48EF), var(--tp-mint, #14B8A6));
}

/* MP-specific input focus tint (still orange in landlord/tenant) */
.tp-jbranch[data-branch="marketplace"] .tp-jinput-wrap:focus-within .tp-jinput-icon {
    color: var(--tp-violet, #7C48EF);
}

.tp-jbranch[data-branch="marketplace"] .tp-jinput:focus {
    border-color: var(--tp-violet, #7C48EF);
    box-shadow: 0 0 0 3px rgba(124,72,239,0.14);
}

/* Primary continue button — violet/mint gradient (mirrors final pay btn) */
.tp-jbtn-mp {
    background: linear-gradient(135deg, var(--tp-violet, #7C48EF) 0%, var(--tp-mint, #14B8A6) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px -8px rgba(124,72,239,0.45);
}

.tp-jbtn-pay-mp {
    background: linear-gradient(135deg, var(--tp-violet, #7C48EF) 0%, var(--tp-mint, #14B8A6) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px -8px rgba(124,72,239,0.45) !important;
}


/* ── Price pill (header right + step heads) ──────────────────────────── */
.tp-mp-price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tp-violet, #7C48EF), var(--tp-mint, #14B8A6));
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.tp-mp-price-pill-amount {
    font-family: var(--tp-font-display, 'Fraunces', serif);
    font-size: 18px;
    font-style: italic;
}

.tp-mp-price-pill-meta {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}


/* ── Media dropzones (Step 2: logo square + video rectangle) ─────────── */
.tp-mp-media {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
}

@media (max-width: 780px) {
    .tp-mp-media {
        grid-template-columns: 1fr;
    }

    .tp-mp-dropzone--logo {
        aspect-ratio: auto;
        min-height: 180px;
    }
}

.tp-mp-dropzone {
    position: relative;
    border: 1.5px dashed rgba(124,72,239,0.35);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(124,72,239,0.04), rgba(20,184,166,0.03));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
    font-family: inherit;
}

    .tp-mp-dropzone:hover {
        border-color: var(--tp-violet, #7C48EF);
        background: linear-gradient(180deg, rgba(124,72,239,0.08), rgba(20,184,166,0.05));
    }

    .tp-mp-dropzone.is-drag {
        border-color: var(--tp-violet, #7C48EF);
        background: rgba(124,72,239,0.10);
    }

.tp-mp-dropzone--logo {
    aspect-ratio: 1 / 1;
}

.tp-mp-dropzone--video {
    min-height: 170px;
}

.tp-mp-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tp-mp-dz-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tp-mp-dz-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(124,72,239,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-violet, #7C48EF);
    font-size: 20px;
}

.tp-mp-dz-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1F;
}

.tp-mp-dz-sub {
    font-size: 11.5px;
    color: rgba(0,0,0,0.55);
    max-width: 200px;
}

.tp-mp-dz-formats {
    font-size: 10.5px;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* Preview state — image / video fills the dropzone */
.tp-mp-dz-preview {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
}

    .tp-mp-dz-preview img,
    .tp-mp-dz-preview video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.tp-mp-dropzone.has-file .tp-mp-dz-empty {
    display: none;
}

.tp-mp-dropzone.has-file .tp-mp-dz-preview {
    display: flex;
}

.tp-mp-dz-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 2;
}

.tp-mp-dropzone.has-file .tp-mp-dz-remove {
    display: flex;
}

.tp-mp-dz-remove:hover {
    background: #1A1A1F;
}


/* ── YouTube link list ───────────────────────────────────────────────── */
.tp-mp-yt {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-mp-yt-row {
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 8px;
    align-items: center;
}

.tp-mp-yt-remove {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    cursor: pointer;
    color: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}

    .tp-mp-yt-remove:hover {
        color: #E94E3F;
        border-color: rgba(233,78,63,0.3);
    }

.tp-mp-yt-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px dashed rgba(124,72,239,0.40);
    color: var(--tp-violet, #7C48EF);
    font-weight: 600;
    font-size: 12.5px;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    align-self: flex-start;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 4px;
}

    .tp-mp-yt-add:hover {
        background: rgba(124,72,239,0.06);
    }

    .tp-mp-yt-add:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }


/* ── Step-3 summary card ─────────────────────────────────────────────── */
.tp-mp-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(124,72,239,0.05), rgba(20,184,166,0.04));
    border: 1px solid rgba(124,72,239,0.12);
    margin: 4px 0 6px;
}

    .tp-mp-summary dt {
        font-size: 11px;
        color: rgba(0,0,0,0.5);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
        margin: 0;
    }

    .tp-mp-summary dd {
        margin: 0 0 6px;
        font-size: 13.5px;
        color: #1A1A1F;
        font-weight: 500;
    }

@media (max-width: 600px) {
    .tp-mp-summary {
        grid-template-columns: 1fr;
    }
}


/* ── Terms checkbox block ────────────────────────────────────────────── */
.tp-mp-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(0,0,0,0.65);
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.5;
}

    .tp-mp-terms input {
        margin-top: 2px;
        accent-color: var(--tp-violet, #7C48EF);
        flex-shrink: 0;
    }

/* Secure-payment microcopy under the submit button */
.tp-mp-trust {
    font-size: 11.5px;
    color: rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}

    .tp-mp-trust i {
        color: var(--tp-mint, #14B8A6);
    }


/* ── Step-head spacing tweaks for MP branch ──────────────────────────── */
.tp-jbranch[data-branch="marketplace"] .tp-jstep-head-inline {
    align-items: flex-start;
}

    .tp-jbranch[data-branch="marketplace"] .tp-jstep-head-inline .tp-jstep-title {
        margin: 0 0 4px;
    }


/* ============================================================================
   TENANT+ HEADER DROPDOWN + AUTHED-STATE MARKERS  (v8.1)
   ----------------------------------------------------------------------------
   These rules style the new dropdown that drops below the "+" glyph in the
   desktop header, and the green-when-authed indicator.

   The wrapper (.ikh-tenantplus) has data-tp-authed="0"|"1" which CSS uses
   to swap the glow disc + glyph colour family between sky (#56C4F8) and
   green (#22C55E) so the user instantly knows they're signed into a
   Tenant+ subscription. The status pip in the bottom-right of the glyph
   appears only when authed.
   ============================================================================ */

.ikh-tenantplus {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Status pip — hidden by default, green when authed ─────────── */
.ikh-tenantplus-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1.5px rgba(34,197,94,0.30), 0 0 10px rgba(34,197,94,0.60);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}

.ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-status-dot {
    opacity: 1;
    transform: scale(1);
}

/* ── Green glyph + glow when authed ─────────────────────────────
       The default (anon) colour family is sky-blue; we swap to green
       only when data-tp-authed="1". Both states use the same SVG so
       the visual weight stays identical. */
.ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-glyph-line {
    stroke: #22C55E;
}

.ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-glyph-glow {
    fill: rgba(34,197,94,0.16);
    stroke: rgba(34,197,94,0.45);
}

.ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-btn:hover .ikh-tenantplus-glyph-glow {
    fill: rgba(34,197,94,0.28);
}

/* ── Dropdown menu ─────────────────────────────────────────────────── */
.ikh-tenantplus-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.10);
    padding: 6px;
    z-index: 1080;
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}

.ikh-tenantplus.is-open .ikh-tenantplus-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ikh-tenantplus-menu[hidden] {
    display: none !important;
}

.ikh-tenantplus-menu-state {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ikh-tenantplus-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(0,0,0,0.78);
    transition: background 0.15s ease, color 0.15s ease;
}

    .ikh-tenantplus-menu-item:hover,
    .ikh-tenantplus-menu-item:focus-visible {
        background: rgba(86,196,248,0.10);
        color: #1A1A1F;
        outline: none;
    }

    .ikh-tenantplus-menu-item i {
        font-size: 1rem;
        color: rgba(0,0,0,0.55);
    }

.ikh-tenantplus-menu-item--primary {
    background: linear-gradient(135deg, #56C4F8 0%, #1E8FC7 100%);
    color: #ffffff;
}

    .ikh-tenantplus-menu-item--primary i {
        color: #ffffff;
    }

    .ikh-tenantplus-menu-item--primary:hover,
    .ikh-tenantplus-menu-item--primary:focus-visible {
        background: linear-gradient(135deg, #6CCFFC 0%, #2596CC 100%);
        color: #ffffff;
    }

/* When the user is authed, the dashboard CTA wears the green family. */
.ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-menu-item--primary {
    background: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
}

    .ikh-tenantplus[data-tp-authed="1"] .ikh-tenantplus-menu-item--primary:hover {
        background: linear-gradient(135deg, #34D27A 0%, #1A8E45 100%);
    }

/* ============================================================================
   TENANT+ SIGN-IN MODAL — additions for v2 (forgot/OTP/role picker)
   ============================================================================ */

/* Role picker — pills inside the modal. Two states: signin-pane and
   forgot-pane (compact). */
.tp-auth-role-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 4px 0 14px;
}

.tp-auth-role-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.7);
    color: rgba(0,0,0,0.65);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .tp-auth-role-btn:hover {
        border-color: rgba(86,196,248,0.45);
        background: rgba(86,196,248,0.06);
    }

    .tp-auth-role-btn.is-active {
        border-color: #1E8FC7;
        background: linear-gradient(135deg, rgba(86,196,248,0.16) 0%, rgba(30,143,199,0.08) 100%);
        color: #1A1A1F;
        box-shadow: inset 0 0 0 1px rgba(30,143,199,0.20);
    }

    .tp-auth-role-btn i {
        font-size: 1rem;
    }

.tp-auth-role-picker--compact {
    margin: 0 0 10px;
}

    .tp-auth-role-picker--compact .tp-auth-role-btn {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

/* Channel picker reuses role-btn styling exactly. */
.tp-auth-channel-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 4px 0 14px;
}

.tp-auth-channel-btn { /* alias of .tp-auth-role-btn */
}

/* "Forgot password?" tiny link aligned right of the label */
.tp-auth-modal-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.tp-auth-modal-forgot-link {
    font-size: 0.74rem;
    color: #1E8FC7;
    text-decoration: none;
    font-weight: 500;
}

    .tp-auth-modal-forgot-link:hover {
        text-decoration: underline;
    }

/* Remember-me row */
.tp-auth-modal-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.80rem;
    color: rgba(0,0,0,0.65);
    margin: 4px 0 12px;
    cursor: pointer;
    user-select: none;
}

    .tp-auth-modal-remember input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #1E8FC7;
        cursor: pointer;
    }

/* Multiple panes — only one visible at a time. JS toggles [hidden]. */
.tp-auth-modal-view {
    display: block;
}

    .tp-auth-modal-view[hidden] {
        display: none !important;
    }

/* "Sent" / confirmation pane */
.tp-auth-modal-sent {
    text-align: center;
    padding: 18px 8px 4px;
}

.tp-auth-modal-sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(86,196,248,0.18) 0%, rgba(30,143,199,0.10) 100%);
    color: #1E8FC7;
    margin-bottom: 12px;
}

.tp-auth-modal-sent-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1F;
    margin: 0 0 6px;
}

.tp-auth-modal-sent-text {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.65);
    line-height: 1.5;
    margin: 0 auto 18px;
    max-width: 340px;
}

/* Centred footer variant (for back-links under forms) */
.tp-auth-modal-foot--center {
    justify-content: center;
}

.tp-auth-modal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(0,0,0,0.65);
    text-decoration: none;
}

    .tp-auth-modal-back-link:hover {
        color: #1E8FC7;
        text-decoration: underline;
    }

/* Ghost-style submit button (used on the Sent pane's CTA) */
.tp-auth-modal-submit--ghost {
    background: transparent;
    color: #1E8FC7;
    border: 1.5px solid rgba(30,143,199,0.35);
}

    .tp-auth-modal-submit--ghost:hover {
        background: rgba(30,143,199,0.06);
    }

/* OTP row — six bordered boxes for digit entry */
.tp-auth-otp-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 4px 0 16px;
}

.tp-auth-otp-digit {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1F;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

    .tp-auth-otp-digit:focus {
        outline: none;
        border-color: #1E8FC7;
        box-shadow: 0 0 0 3px rgba(30,143,199,0.18);
    }

    .tp-auth-otp-digit::-webkit-outer-spin-button,
    .tp-auth-otp-digit::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.tp-auth-modal-hint-line {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.55);
    margin: 6px 0 0;
}

/* ============================================================================
   STANDALONE RESET PASSWORD PAGE
   ============================================================================ */

.tp-auth-reset-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: linear-gradient(160deg, #F4F1EE 0%, #ECE6DC 100%);
}

.tp-auth-reset-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.98);
    border-radius: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 24px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tp-auth-reset-band {
    position: relative;
    height: 56px;
    background: linear-gradient(135deg, #56C4F8 0%, #1E8FC7 100%);
    overflow: hidden;
}

.tp-auth-reset-band-beam {
    position: absolute;
    top: 50%;
    left: -30%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: translateY(-50%);
    animation: tpResetBeam 3.6s linear infinite;
}

@keyframes tpResetBeam {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

.tp-auth-reset-head {
    padding: 22px 28px 16px;
    text-align: center;
}

.tp-auth-reset-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -42px auto 14px;
    border-radius: 14px;
    background: #ffffff;
    color: #1E8FC7;
    border: 2px solid rgba(255,255,255,1);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.tp-auth-reset-eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1E8FC7;
    margin-bottom: 8px;
}

.tp-auth-reset-plus {
    color: #1E8FC7;
    font-weight: 800;
}

.tp-auth-reset-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1F;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.tp-auth-reset-sub {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.6);
    margin: 0 auto;
    max-width: 360px;
    line-height: 1.5;
}

.tp-auth-reset-body {
    padding: 16px 28px 24px;
}
