/*
Theme Name: Listivo Child
Theme URI: https://listivotheme.com/
Author: TangibleDesign
Author URI: https://tangibledesign.net/
Description: Listivo
Template: listivo
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready
Text Domain: listivo
*/

/* Note: Google Fonts and Icons are now enqueued via functions.php for better performance */

:root {
    /* EstatePro Palette */
    --primary: #0544d6;
    --primary-light: rgba(5, 68, 214, 0.1);
    --bg-light: #f5f6f8;
    --text-dark: #0f1523;
    --text-gray: #64748b;
    --white: #ffffff;
    --border-color: rgba(5, 68, 214, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-lg: 0.5rem;
    /* 8px */

    /* Functional Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --info: #3b82f6;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f8fafc !important;
    /* Slate-50 background for content */
    color: var(--text-dark);
}

/* =========================================
   LAYOUT STRUCTURE
   ========================================= */

@media (min-width: 1024px) {
    .listivo-dashboard-wrapper {
        display: grid;
        grid-template-columns: 260px 1fr;
        min-height: 100vh;
        gap: 0;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 1. SIDEBAR - DARK THEME */
    .estatepro-sidebar {
        background: #0f172a;
        /* Slate-900 */
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        z-index: 50;
    }

    /* 2. MAIN CONTENT */
    .estatepro-main-content {
        background: #f1f5f9;
        /* Slate-100 */
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
}

/* =========================================
   SIDEBAR COMPONENTS
   ========================================= */

/* Brand */
.estatepro-sidebar__brand {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.estatepro-user-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.estatepro-brand-avatar img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.estatepro-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.estatepro-brand-text {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #ffffff;
    line-height: 1.2;
    font-weight: 700;
}

.estatepro-verification-label p {
    font-size: 11px;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.estatepro-verification-label .material-icons {
    font-size: 13px;
}

.estatepro-logo-icon {
    width: 32px;
    height: 32px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Nav */
.estatepro-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.estatepro-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    /* Slate-400 */
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.estatepro-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.estatepro-nav-item--active {
    background: #2563eb;
    /* Primary Blue */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.estatepro-nav-item--active:hover {
    background: #2563eb;
    color: #ffffff !important;
}

.estatepro-nav-item .material-icons {
    font-size: 20px;
}

/* Verification Widget */
.estatepro-verification-widget {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1rem;
    border-radius: var(--radius-xl);
    margin-top: 1rem;
    border: 1px solid #bfdbfe;
    text-align: center;
}

.verification-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.verification-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.btn-verify-small {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Upgrade Widget */
.estatepro-upgrade-card {
    background: rgba(5, 68, 214, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.upgrade-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.upgrade-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.btn-upgrade-full {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

/* =========================================
   HEADER COMPONENTS
   ========================================= */

.estatepro-top-header {
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.estatepro-search-bar {
    position: relative;
    width: 400px;
}

.estatepro-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.estatepro-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
}

.estatepro-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn-notification {
    background: none;
    border: none;
    color: var(--text-gray);
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.icon-btn-notification:hover {
    background: var(--bg-light);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
}

.header-divider {
    height: 32px;
    width: 1px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info .user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.user-info .user-role {
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.user-avatar {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(5, 68, 214, 0.2);
    width: 40px !important;
    height: 40px !important;
}

/* =========================================
   DASHBOARD WIDGETS
   ========================================= */

.estatepro-dashboard-widgets {
    padding: 2rem;
}

.estatepro-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .estatepro-stats-scroller-wrapper {
        position: relative;
        margin-bottom: 2rem;
    }

    .estatepro-stats-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-right: -1rem;
        padding-right: 1rem;
        /* Allow cards to go to edge but have padding at end */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .estatepro-stats-grid::-webkit-scrollbar {
        display: none;
    }

    .estatepro-stat-card {
        flex: 0 0 calc(100% - 3rem);
        max-width: 280px;
        scroll-snap-align: start;
    }

    /* Stats Arrows */
    .stats-scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        color: var(--text-dark);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .stats-scroll-arrow--left {
        left: -10px;
    }

    .stats-scroll-arrow--right {
        right: 0px;
    }

    .stats-scroll-arrow.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .stats-scroll-arrow:active {
        transform: translateY(-50%) scale(0.9);
    }
}

.stats-scroll-arrow {
    display: none;
}

.estatepro-stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

a.estatepro-stat-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.estatepro-stat-card--link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #3b82f6);
}

a.estatepro-stat-card--link:active {
    transform: translateY(-1px);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-box .material-icons {
    font-size: 20px;
}

.bg-blue-light {
    background: #eff6ff;
}

.text-blue {
    color: #3b82f6;
}

.bg-purple-light {
    background: #f3e8ff;
}

.text-purple {
    color: #a855f7;
}

.bg-amber-light {
    background: #fffbeb;
}

.text-amber {
    color: #f59e0b;
}

.bg-red-light {
    background: #fef2f2;
}

.text-red {
    color: #ef4444;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-green {
    color: var(--success);
    background: var(--success-light);
}

.badge-red {
    color: var(--danger);
    background: var(--danger-light);
}

.badge-gray {
    color: var(--text-gray);
    background: #f1f5f9;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Charts & Activity */
.estatepro-middle-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.estatepro-chart-card,
.estatepro-activity-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-header-row h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.chart-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.75rem;
    padding: 4px 8px;
    background: transparent;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
}

.bg-green-light {
    background: var(--success-light);
    color: var(--success);
}

.activity-info {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0;
}

.activity-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

.activity-time {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

/* Headers */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.estatepro-dynamic-content {
    padding: 0 2rem 2rem 2rem;
}

/* HIDE DUPLICATES */
.estatepro-dynamic-content .listivo-panel-menu,
.estatepro-dynamic-content .listivo-panel-stats-bar {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .listivo-dashboard-wrapper {
        display: block !important;
        position: relative;
    }

    /* Sidebars / Backdrop */
    .estatepro-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        /* Show but off-screen */
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
        background: #0f172a !important;
        /* Force solid dark background */
    }

    .estatepro-sidebar .estatepro-nav-item {
        color: #cbd5e1 !important;
        /* Higher contrast text */
    }

    .estatepro-sidebar .estatepro-nav-item:hover {
        color: #fff !important;
    }

    .estatepro-sidebar .estatepro-nav-item--active {
        color: #fff !important;
    }

    .listivo-dashboard-wrapper.sidebar-open .estatepro-sidebar {
        transform: translateX(0);
    }

    .estatepro-user-brand-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 1.5rem;
    }

    .estatepro-brand-info {
        align-items: center;
    }

    .estatepro-brand-avatar img {
        width: 64px;
        height: 64px;
    }

    .estatepro-sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .listivo-dashboard-wrapper.sidebar-open .estatepro-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Toggle Button */
    .estatepro-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-right: 12px;
        cursor: pointer;
        color: var(--text-dark);
    }

    .estatepro-top-header {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 900;
        border-bottom: 1px solid var(--border-color);
    }

    .estatepro-main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }

    .estatepro-search-bar {
        display: none;
    }

    .estatepro-dashboard-widgets {
        padding: 0.75rem 8px;
    }

    .estatepro-middle-section {
        grid-template-columns: 1fr;
    }

    /* Full-width mobile: strip excessive padding everywhere */
    .estatepro-dynamic-content {
        padding: 0 !important;
    }

    .section-title {
        padding: 0 12px;
    }

    .listivo-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .listivo-panel-section {
        padding: 0 !important;
    }

    .estatepro-chart-card,
    .estatepro-activity-card {
        border-radius: 8px;
    }
}

.estatepro-sidebar-toggle {
    display: none;
}

/* =========================================
   BILLING & PLANS PAGE
   ========================================= */

.billing-subtitle {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 4px;
}

.billing-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.billing-section-header--plans {
    margin-top: 48px;
}

.billing-section-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.billing-section-icon {
    font-size: 22px !important;
}

.billing-section-icon--success {
    color: var(--success);
}

.billing-section-icon--info {
    color: var(--info);
}

/* Cards Grid */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* Card */
.billing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.billing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.billing-card--active {
    border-color: var(--success);
    border-width: 2px;
}

/* Badge */
.billing-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
    background: #eff6ff;
    color: var(--info);
}

.billing-card__badge--active {
    background: var(--success-light);
    color: var(--success);
}

/* Title */
.billing-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

/* Description */
.billing-card__desc {
    font-size: 0.8125rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.billing-card__desc p {
    margin: 0;
}

/* Stats */
.billing-card__stats {
    flex-grow: 1;
    margin-bottom: 20px;
}

.billing-card__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.8125rem;
}

.billing-card__stat:last-child {
    border-bottom: none;
}

.billing-card__stat-label {
    color: var(--text-gray);
}

.billing-card__stat-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer */
.billing-card__footer {
    margin-top: auto;
}

/* Buttons */
.billing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.billing-btn--primary {
    background: var(--primary);
    color: var(--white) !important;
}

.billing-btn--primary:hover {
    background: #0433a8;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(5, 68, 214, 0.3);
}

.billing-btn--outline {
    background: var(--bg-light);
    color: var(--primary) !important;
    border: 1px solid var(--border-color);
}

.billing-btn--outline:hover {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

/* Empty State */
.billing-empty-state {
    background: var(--bg-light);
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    margin-top: 16px;
}

.billing-empty-state__icon {
    font-size: 48px !important;
    color: #cbd5e1;
    display: block;
    margin-bottom: 12px;
}

.billing-empty-state p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .billing-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   M-PESA PAYMENT MODAL
   ========================================= */

.mpesa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpesa-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.mpesa-modal__content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: mpesa-modal-enter 0.3s ease-out;
}

@keyframes mpesa-modal-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.mpesa-modal__step {
    padding: 32px;
}

.mpesa-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.mpesa-modal__icon-wrapper {
    margin-bottom: 16px;
}

.mpesa-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.mpesa-modal__subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.mpesa-modal__body {
    margin-bottom: 24px;
}

.mpesa-modal__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.mpesa-modal__input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.mpesa-modal__input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 68, 214, 0.1);
}

.mpesa-modal__input-prefix {
    padding: 12px 8px 12px 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-light);
    border-right: 1px solid #e2e8f0;
}

.mpesa-modal__input {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none !important;
    outline: none !important;
    background: transparent;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    box-shadow: none !important;
}

.mpesa-modal__hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 8px 0 0 0;
}

.mpesa-modal__error {
    font-size: 0.8125rem;
    color: var(--danger);
    background: var(--danger-light);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0 0 0;
}

.mpesa-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpesa-modal__pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner for the waiting step */
.mpesa-modal__spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: mpesa-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes mpesa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Small spinner inside pay button */
.mpesa-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: mpesa-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* Success icon animation */
.mpesa-modal__icon-wrapper--success {
    animation: mpesa-pop 0.4s ease-out;
}

.mpesa-modal__icon-wrapper--failed {
    animation: mpesa-shake 0.5s ease-out;
}

@keyframes mpesa-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes mpesa-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

@media (max-width: 480px) {
    .mpesa-modal__content {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}

/* Shared Animations */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 2s linear infinite;
    display: inline-block;
}

/* ==========================================================================
   Property KE Footer & SEO Narrative
   ========================================================================== */

.pke-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.propertyke-seo-narrative {
    background: #ffffff;
    padding: 5rem 0;
    color: #475569;
    border-top: 1px solid #eef2f6;
}

.propertyke-seo-narrative h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.propertyke-seo-narrative p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.propertyke-seo-narrative h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem auto 1.25rem;
    max-width: 1200px;
    text-align: center;
}

.pke-faq-item {
    max-width: 1200px;
    margin: 0 auto 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.pke-faq-item[open] {
    border-color: var(--primary, #0544d6);
}

.pke-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pke-faq-item summary::-webkit-details-marker {
    display: none;
}

.pke-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #0544d6);
    transition: transform 0.2s ease;
}

.pke-faq-item[open] summary::after {
    content: '−';
}

.pke-faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

.pke-footer {
    background: #283948;
    padding: 5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

.pke-footer__inner {
    max-width: 100%;
    margin: 0;
    padding: 0 4rem;
}

/* Grid Layout */
.pke-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    width: 100%;
}

@media (min-width: 768px) {
    .pke-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .pke-footer__grid {
        grid-template-columns: 1.2fr 0.8fr 1fr 1.6fr;
        gap: 3rem;
    }
}



/* Brand Column */
.pke-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pke-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.pke-footer__logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
}

.pke-footer__tagline h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.pke-footer__tagline p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.7;
}

/* Social Icons */
.pke-footer__socials {
    display: flex;
    gap: 0.75rem;
}

.pke-footer__social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.pke-footer__social-icon:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Link Columns */
.pke-footer__col-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.pke-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pke-footer__links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.pke-footer__links a:hover {
    color: #ffffff;
}

/* Newsletter Column */
.pke-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pke-footer__newsletter-desc {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0.5rem 0 1rem;
}

/* WPForms Integration Styling */
.pke-footer .wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
}

.pke-footer .wpforms-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pke-footer .wpforms-field-container {
    flex: 1;
    margin: 0 !important;
}

.pke-footer .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.pke-footer .wpforms-field-label {
    display: none !important;
}

.pke-footer .wpforms-field input[type="email"],
.pke-footer .wpforms-field input[type="text"] {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #e2e8f0 !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    font-family: 'Inter', sans-serif !important;
}

.pke-footer .wpforms-field input[type="email"]:focus,
.pke-footer .wpforms-field input[type="text"]:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.pke-footer .wpforms-field input::placeholder {
    color: #475569 !important;
}

.pke-footer .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
}

.pke-footer .wpforms-submit-container button,
.pke-footer .wpforms-submit-container .wpforms-submit {
    background: #ffffff !important;
    color: #283948 !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    white-space: nowrap !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    width: auto !important;
}

.pke-footer .wpforms-submit-container button:hover,
.pke-footer .wpforms-submit-container .wpforms-submit:hover {
    background: #f8fafc !important;
}

.pke-footer .wpforms-submit-container button:active,
.pke-footer .wpforms-submit-container .wpforms-submit:active {
    transform: scale(0.98) !important;
}



/* Contact Items */
.pke-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

.pke-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.pke-footer__contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pke-footer__contact-item a:hover {
    color: #ffffff;
}

.pke-footer__contact-icon {
    color: #ffffff;
    flex-shrink: 0;
}

/* Separator */
.pke-footer__separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

/* Bottom Bar */
.pke-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .pke-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.pke-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pke-footer__legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.pke-footer__legal-links a:hover {
    color: #ffffff;
}


.pke-footer__copyright {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0;
}

/* Disclaimer */
.pke-footer__disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pke-footer__disclaimer p {
    color: #475569;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.8;
    margin: 0;
    max-width: 56rem;
}

/* WPForms responsive fix */
@media (max-width: 480px) {
    .pke-footer .wpforms-form {
        flex-direction: column;
    }
}

/* User requested custom container styling */
.listivo-container {
    max-width: calc(var(--e-global-grid-width) + 2 * var(--e-global-desktop-padding));
    padding: 0 var(--e-global-desktop-padding);
    margin: -32px;
}

/* =========================================
   HELP MODAL & LOADING STATES
   ========================================= */

.btn-help-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-help-subtitle {
    font-size: 10px;
    color: var(--text-gray);
    margin-top: 2px;
    font-weight: 500;
}

/* Help Modal */
.propke-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.propke-modal-overlay.active {
    display: flex;
}

.propke-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: propke-modal-in 0.3s ease-out;
}

@keyframes propke-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.propke-modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.propke-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.propke-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.propke-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.propke-modal-body {
    padding: 1.5rem;
}

.propke-form-group {
    margin-bottom: 1.25rem;
}

.propke-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.propke-input,
.propke-select,
.propke-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.propke-input:focus,
.propke-select:focus,
.propke-textarea:focus {
    border-color: var(--primary);
}

.propke-modal-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-whatsapp-send {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-whatsapp-send:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

/* Button Loading States */
.ep-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.ep-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ep-spin 0.8s linear infinite;
}

@keyframes ep-spin {
    to {
        transform: rotate(360deg);
    }
}

.ep-processing-assurance {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 6px;
    text-align: center;
    font-style: italic;
    display: none;
}

.ep-loading+.ep-processing-assurance {
    display: block;
}

/* Verification Section Styles */
.estatepro-badge-pending {
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
}

.estatepro-file-upload-box {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    background: #f8fafc !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    min-height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05) !important;
    margin-top: 8px !important;
}

.estatepro-file-upload-box:hover {
    border-color: #3b82f6 !important;
    background: #f1f5f9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.upload-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.upload-trigger .material-icons {
    color: #94a3b8 !important;
    font-size: 42px !important;
    transition: color 0.3s !important;
}

.estatepro-file-upload-box:hover .upload-trigger .material-icons {
    color: #3b82f6 !important;
}

.upload-text {
    font-size: 14px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.upload-hint {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

.file-preview {
    margin-top: 10px !important;
    font-size: 11px !important;
    color: #22c55e !important;
    font-weight: 700 !important;
    word-break: break-all !important;
    background: #f0fdf4 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}