/**
 * Vekli Agent Manager - Frontend Styles
 * Mobile-First Responsive Design
 */

/* ===== CSS Variables ===== */
:root {
    --vekli-primary: #007bff;
    --vekli-secondary: #28a745;
    --vekli-accent: #ffc107;
    --vekli-dark: #333333;
    --vekli-light: #f5f5f5;
    --vekli-white: #ffffff;
    --vekli-border: #e0e0e0;
    --vekli-text: #333333;
    --vekli-text-light: #666666;
    --vekli-radius: 12px;
    --vekli-radius-sm: 8px;
    --vekli-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --vekli-transition: all 0.3s ease;

    /* Header specific */
    --vekli-header-top-bg: #1a1a2e;
    --vekli-nav-bg: #6d4c41;
    --vekli-nav-color: #ffffff;
    --vekli-nav-hover: #ffc107;
    --vekli-container-width: 1200px;
}

/* ===== Header Styles ===== */
.vekli-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.vekli-header-container {
    width: 100%;
    max-width: var(--vekli-container-width, 1200px);
    margin: 0 auto;
    padding: 0;
}

/* Top Header - Dark area with Logo */
.vekli-top-header {
    background: #1a1a2e;
    padding: 0;
}

.vekli-top-header .vekli-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo Wrapper - Contains logo and whatsapp button */
.vekli-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.vekli-logo-link {
    display: block;
    line-height: 0;
}

.vekli-logo-img {
    max-width: 250px;
    height: auto;
    display: block;
}

/* WhatsApp Button - Green button beside logo */
.vekli-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.vekli-whatsapp-btn:hover {
    background: #128C7E;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.vekli-whatsapp-btn .wa-icon {
    width: 22px;
    height: 22px;
}

/* Desktop: Logo and WhatsApp side by side */
@media (min-width: 768px) {
    .vekli-logo-wrapper {
        flex-direction: row;
        gap: 20px;
    }

    .vekli-logo-img {
        max-width: 300px;
    }
}

/* Navigation */
.vekli-main-nav {
    background: #6d4c41;
    position: relative;
}

.vekli-main-nav .vekli-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    min-height: 44px;
}

/* Mobile Toggle - Down Arrow - CENTERED */
.vekli-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: #fff;
    transition: transform 0.3s ease;
}

.vekli-mobile-toggle .arrow-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.vekli-mobile-toggle.active .arrow-icon {
    transform: rotate(180deg);
}

/* Search Icon - Positioned Right on Mobile */
@media (max-width: 991px) {
    .vekli-search-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Nav Wrapper - Needs to be visible for child absolute positioning to work */
.vekli-nav-wrapper {
    position: static;
}

/* ===== MOBILE MENU STYLES (Max Width 991px) ===== */
@media (max-width: 991px) {

    /* WordPress Generated Menu - DROPDOWN (Opens Downward) */
    .vekli-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        z-index: 1000;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        display: flex;
    }

    /* Menu open state - Dropdown visible */
    .vekli-nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    /* Remove close button for dropdown */
    .vekli-nav-menu::before {
        display: none;
    }
}

/* ===== DESKTOP MENU STYLES (Min Width 992px) ===== */
@media (min-width: 992px) {
    .vekli-nav-menu {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .vekli-nav-menu>li {
        border: none;
    }

    .vekli-nav-menu>li>a {
        padding: 0;
    }

    .vekli-mobile-toggle {
        display: none;
    }
}

/* Sticky Header Support */
.vekli-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* WordPress menu items (li) */
.vekli-nav-menu>li,
.vekli-nav-menu .menu-item {
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* WordPress menu links (a) */
.vekli-nav-menu>li>a,
.vekli-nav-menu .menu-item>a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    text-align: center;
}

.vekli-nav-menu>li>a:hover,
.vekli-nav-menu .menu-item>a:hover {
    background: #f5f5f5;
}

/* Search Icon Button - Customizable with CSS */
.vekli-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* SVG Search Icon */
.vekli-search-icon .vekli-search-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
}

button.vekli-search-icon {
    color: #000000 !important;
    border: none;
}

/* Button Hover Fix */
[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {
    color: #000000 !important;
    background-color: #cc336600 !important;
    text-decoration: none;
    border: none;
}

/* ===== SEARCH POPUP MODAL ===== */
.vekli-search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vekli-search-popup.active {
    display: flex;
}

.vekli-search-popup-inner {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    animation: vekliPopupIn 0.3s ease;
}

@keyframes vekliPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vekli-search-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.vekli-search-close:hover {
    color: #e74c3c;
}

.vekli-search-form-popup {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.vekli-search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.vekli-search-input:focus {
    border-color: #6d4c41;
}

.vekli-search-submit {
    padding: 15px 25px;
    background: #6d4c41;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vekli-search-submit:hover {
    background: #5a3e35;
}

.vekli-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vekli-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Header Responsive - Desktop ===== */
@media (min-width: 992px) {
    .vekli-mobile-toggle {
        display: none !important;
    }

    .vekli-nav-wrapper {
        display: block;
        flex: 1;
    }

    .vekli-nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
        background: transparent !important;
        overflow: visible;
        left: auto;
        box-shadow: none;
    }

    .vekli-nav-menu>li,
    .vekli-nav-menu .menu-item {
        border-bottom: none;
    }

    .vekli-nav-menu>li>a,
    .vekli-nav-menu .menu-item>a {
        padding: 14px 12px;
        font-size: var(--vekli-nav-font-size, 13px);
        white-space: nowrap;
    }

    .vekli-mobile-overlay {
        display: none !important;
    }
}

@media (min-width: 1200px) {

    .vekli-nav-menu>li>a,
    .vekli-nav-menu .menu-item>a {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* ===== Base Styles ===== */
.vekli-search-box,
.vekli-quick-agent-box,
.vekli-chat-banner-box {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.vekli-search-box *,
.vekli-quick-agent-box *,
.vekli-chat-banner-box * {
    box-sizing: border-box;
}

/* ===== Search Box Styles ===== */
.vekli-search-box {
    background: var(--vekli-white);
    border: 1px solid var(--vekli-border);
    border-radius: var(--vekli-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--vekli-shadow);
}

.vekli-search-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vekli-text);
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.vekli-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vekli-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vekli-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--vekli-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vekli-input,
.vekli-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--vekli-border);
    border-radius: var(--vekli-radius-sm);
    font-size: 15px;
    color: var(--vekli-text);
    background: var(--vekli-white);
    transition: var(--vekli-transition);
    -webkit-appearance: none;
    appearance: none;
}

.vekli-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.vekli-input:focus,
.vekli-select:focus {
    border-color: var(--vekli-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

.vekli-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--vekli-dark);
    color: var(--vekli-white);
    border: none;
    border-radius: var(--vekli-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vekli-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vekli-submit-btn:hover {
    background: #222222;
    transform: translateY(-1px);
}

.vekli-submit-btn:active {
    transform: translateY(0);
}

.vekli-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== Phone Search Box ===== */
.vekli-phone-search {
    background: var(--vekli-light);
}

.vekli-phone-search .vekli-input {
    background: #e8e8e8;
    border-color: transparent;
}

.vekli-phone-search .vekli-input:focus {
    background: var(--vekli-white);
    border-color: var(--vekli-primary);
}

/* ===== Quick Agent Box ===== */
.vekli-quick-agent-box {
    background: var(--vekli-white);
    border: 1px solid var(--vekli-border);
    border-radius: var(--vekli-radius);
    overflow: hidden;
    box-shadow: var(--vekli-shadow);
}

.vekli-quick-header {
    background: var(--vekli-dark);
    color: var(--vekli-white);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.vekli-quick-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 8px solid var(--vekli-dark);
    margin: 0 auto;
}

.vekli-quick-list {
    padding: 15px;
}

.vekli-agent-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--vekli-border);
}

.vekli-agent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vekli-agent-item:first-child {
    padding-top: 0;
}

.vekli-agent-info {
    margin-bottom: 8px;
}

.vekli-agent-type {
    color: var(--vekli-text-light);
    font-size: 13px;
}

.vekli-agent-id {
    color: var(--vekli-primary);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 5px;
}

.vekli-agent-id:hover {
    color: #0056b3;
}

.vekli-agent-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.vekli-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--vekli-white);
    text-decoration: none;
    transition: var(--vekli-transition);
}

.vekli-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.vekli-badge .checkmark {
    font-size: 10px;
}

.vekli-agent-phone {
    margin-top: 8px;
}

.vekli-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vekli-secondary);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.vekli-whatsapp-link:hover {
    color: #1e7e34;
}

.whatsapp-icon {
    font-size: 16px;
}

/* ===== Chat Banner Box ===== */
.vekli-chat-banner-box {
    background: var(--vekli-white);
    border: 1px solid var(--vekli-border);
    border-radius: var(--vekli-radius);
    overflow: hidden;
    box-shadow: var(--vekli-shadow);
}

.vekli-chat-header {
    background: var(--vekli-dark);
    color: var(--vekli-white);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.vekli-chat-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 8px solid var(--vekli-dark);
    margin: 0 auto;
}

.vekli-chat-content {
    padding: 15px;
}

.vekli-chat-content img {
    width: 100%;
    height: auto;
    border-radius: var(--vekli-radius-sm);
    display: block;
}

.vekli-chat-placeholder {
    background: var(--vekli-light);
    padding: 40px;
    text-align: center;
    border-radius: var(--vekli-radius-sm);
}

.vekli-chat-placeholder .chat-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ===== Results ===== */
.vekli-results {
    margin-top: 20px;
}

.vekli-result-item {
    background: var(--vekli-light);
    border-radius: var(--vekli-radius-sm);
    padding: 15px;
    margin-bottom: 12px;
}

.vekli-result-item:last-child {
    margin-bottom: 0;
}

.vekli-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vekli-result-id {
    font-weight: 700;
    font-size: 18px;
    color: var(--vekli-primary);
}

.vekli-result-type {
    font-size: 12px;
    background: var(--vekli-dark);
    color: var(--vekli-white);
    padding: 3px 10px;
    border-radius: 4px;
}

.vekli-no-results {
    text-align: center;
    padding: 30px;
    color: var(--vekli-text-light);
    font-size: 14px;
}

.vekli-loading {
    text-align: center;
    padding: 20px;
}

.vekli-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--vekli-border);
    border-top-color: var(--vekli-primary);
    border-radius: 50%;
    animation: vekli-spin 0.8s linear infinite;
}

@keyframes vekli-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive - Tablet ===== */
@media (min-width: 768px) {
    .vekli-search-box {
        padding: 25px 30px;
    }

    .vekli-search-title {
        font-size: 18px;
    }

    .vekli-search-form {
        gap: 20px;
    }
}

/* ===== Responsive - Desktop ===== */
@media (min-width: 1024px) {
    .vekli-search-box {
        padding: 30px 35px;
    }

    .vekli-search-title {
        font-size: 20px;
    }
}

/* ===== SIDEBAR WIDGET STYLES ===== */
.vekli-sidebar-widget {
    margin-bottom: 30px;
}

/* Separate Sections Logic */
.vekli-sidebar-section {
    margin-bottom: 30px;
}

/* Header Styling - Grey Box specific */
.vekli-header-block {
    position: relative;
    margin-bottom: 20px;
    /* Space between header and list */
}

.vekli-sidebar-header {
    background: #e0e0e0;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: #333;
    letter-spacing: 1px;
    border-radius: 2px;
}

.vekli-sidebar-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e0e0e0;
    margin: 0 auto;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Content Area - List styling */
.vekli-sidebar-content {
    background: #ffffff;
    padding: 15px;
    /* Added padding so border looks good */
    margin-top: 10px;
    /* Gap between arrow and content box */
}

/* List Items - Match Screenshot */
.vekli-sidebar-item {
    background: #f2f2f2;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: none;
    /* Removed as requested */
    display: flex;
    flex-direction: column;
}

.vekli-sidebar-item:last-child {
    margin-bottom: 0;
}

.vekli-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.vekli-item-label {
    color: #333;
    font-size: 13px;
}

.vekli-item-id {
    color: #000;
    text-decoration: underline;
    font-size: 13px;
}

.vekli-item-badges {
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 700;
}

.vekli-mini-badge {
    margin-right: 10px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.vekli-item-phone {
    font-size: 13px;
    font-weight: 700;
}

.vekli-phone-link {
    color: #333;
    text-decoration: underline;
}

/* Chat Banner Specifics */
.vekli-cb-content {
    padding: 15px;
    text-align: center;
    background: #fff;
    /* Removed hardcoded border to allow Elementor control */
}

.vekli-banner-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.vekli-banner-placeholder {
    background: #fff;
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    color: #999;
}

.vekli-placeholder-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

/* Fix Elementor Sticky Container Border */
.elementor-element.elementor-element-110a389.e-con-full.e-flex.e-con.e-child.elementor-sticky {
    border-left-width: 0px !important;
}

/* ===== Upline Section in Search Results ===== */
.vekli-upline-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.vekli-upline-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.vekli-upline-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #6d4c41;
}

.vekli-upline-item:last-child {
    margin-bottom: 0;
}

.vekli-upline-row {
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.vekli-upline-row:last-child {
    margin-bottom: 0;
}

.vekli-upline-row strong {
    color: #666;
}

.vekli-upline-row a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.vekli-upline-row a:hover {
    text-decoration: underline;
}

/* ===== Unified Search Widget ===== */
.vekli-unified-inner-wrap {
    margin: 0 auto;
    width: 100%;
}

.vekli-unified-main-title {
    text-align: center;
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    color: #333;
}

.vekli-unified-section {
    margin-bottom: 30px;
}

.vekli-unified-section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.vekli-search-box-inner {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.vekli-form-group label {
    text-transform: uppercase;
}

.vekli-btn-wrap {
    margin-top: 15px;
    text-align: center;
}

.vekli-unified-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.vekli-unified-divider span {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #333;
}

.vekli-unified-footer {
    text-align: center;
    margin-top: 30px;
}

.vekli-unified-footer a {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    font-size: 15px;
}

/* Result Table Styles - Screenshot 2 Match */
/* Result Wrapper Styling */
.vekli-result-wrapper {
    margin-top: 30px;
    animation: fadeIn 0.4s ease-out;
}

.vekli-result-top-msg {
    text-align: center;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    color: #333;
}

.vekli-result-top-msg strong {
    font-size: 32px;
}

.vekli-result-table-wrap {
    margin-bottom: 25px;
    overflow-x: auto;
}

.vekli-result-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    table-layout: fixed;
}

.vekli-result-table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    /* Center content in cells */
    vertical-align: middle;
    color: #333;
    font-size: 18px;
}

.vekli-result-table td:first-child {
    width: 45%;
    font-weight: 700;
}

/* Badge & Links */
.vekli-badge-group {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.checkmark {
    color: #28a745;
    font-weight: bold;
    display: inline-block;
}

.underline-now {
    text-decoration: underline !important;
}

.vekli-site-link {
    color: #333;
    font-weight: 700;
    font-size: 16px;
    display: block;
}

/* WhatsApp Styling */
.vekli-phone-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vekli-phone-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #333;
    font-weight: 700;
    font-size: 18px;
}

.vekli-wa-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2325D366' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.7 17.7 69.4 27 106.1 27 122.4 0 222-99.6 222-222 0-59.3-23.1-115.1-65-157.1zM223.9 446.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.7-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-82.7 184.6-184.5 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.7-30.6-38.2-3.2-5.6-.3-8.6 2.5-11.3 2.5-2.5 5.5-6.5 8.3-9.7 2.8-3.3 3.7-5.6 5.5-9.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 13.3 4.2 25.4 3.6 35 2.2 10.7-1.5 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

/* Upline Styling */
.vekli-upline-section {
    margin-top: 40px;
    text-align: center;
}

.vekli-upline-header {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.vekli-upline-note {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.vekli-highlight-name {
    font-weight: 800 !important;
    text-decoration: underline;
}

.vekli-phone-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #000 !important;
    font-weight: 700;
    text-decoration: underline !important;
}

.vekli-phone-link i {
    color: #25D366;
    font-size: 18px;
}

.vekli-site-link {
    color: #333;
    text-decoration: underline !important;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    margin-top: 5px;
}

.vekli-phone-item {
    margin-bottom: 8px;
}

.vekli-phone-item:last-child {
    margin-bottom: 0;
}

/* Loading State for Results */
.vekli-loading {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: vekli-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes vekli-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom No Results State */
.vekli-no-results-custom-wrap {
    text-align: center;
    padding: 20px 0;
}

.vekli-no-res-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.vekli-no-res-desc {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.vekli-no-res-link {
    font-size: 24px;
    font-weight: 700;
    color: #333 !important;
    text-decoration: underline !important;
    display: inline-block;
}

.vekli-no-res-link:hover {
    color: #000 !important;
}

/* Result Table Global Centering */
.vekli-result-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.vekli-phone-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.underline-now {
    text-decoration: underline !important;
}

.vekli-result-top-msg {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 1.3;
    color: #333;
}

.vekli-result-top-msg strong {
    font-size: 28px;
    font-weight: 800;
}

/* Agent List Widget Styling */
.vekli-agent-list-wrapper {
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}

.vekli-list-main-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.vekli-list-search-form-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.vekli-agent-list-search-form {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.vekli-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.vekli-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.vekli-form-group select,
.vekli-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.vekli-list-submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 13px 40px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    height: 46px;
    transition: background 0.3s;
}

.vekli-list-submit:hover {
    background: #000;
}

/* Table Container */
.vekli-agent-list-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.vekli-list-header {
    background: #f2f2f2;
    padding: 12px 20px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

.vekli-agent-list-scroll {
    overflow-x: auto;
}

.vekli-agent-table {
    width: 100%;
    border-collapse: collapse;
}

.vekli-agent-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.vekli-agent-table tr:last-child td {
    border-bottom: none;
}

/* Specific Columns */
.col-id {
    font-weight: 800;
    width: 8%;
}

.col-type {
    font-weight: 900;
    width: 18%;
    line-height: 1.2;
    font-size: 15px !important;
    /* Slightly larger */
}

.col-platform {
    width: 25%;
}

.col-phone {
    width: 34%;
}

.col-complaint {
    width: 15%;
    /* Increased for single line */
}

.vekli-table-badges {
    font-weight: 700;
    font-size: 14px;
}

.vekli-complaint-link {
    color: #333;
    text-decoration: underline;
    font-weight: 900;
    /* Extra bold */
    white-space: nowrap;
    /* Force 1 line */
}

/* Table Loading Overlay */
.vekli-list-loading-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Mobile Media Queries for List Table */
@media (max-width: 767px) {
    .vekli-agent-table td {
        padding: 10px 5px !important;
        font-size: 12px !important;
    }

    .col-id {
        width: 12%;
        font-size: 13px !important;
    }

    .col-type {
        width: 18%;
        font-size: 11px !important;
    }

    .col-platform {
        width: 30%;
    }

    .col-phone {
        width: 30%;
    }

    .col-complaint {
        width: 10%;
    }

    .vekli-phone-link {
        font-size: 12px !important;
    }

    .vekli-table-badges {
        font-size: 11px !important;
    }

    .vekli-form-group {
        min-width: 100%;
    }

    .vekli-list-submit {
        width: 100%;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .vekli-result-top-msg {
        font-size: 20px;
    }

    .vekli-result-top-msg strong {
        font-size: 24px;
    }

    .vekli-result-table td {
        padding: 12px 5px !important;
        font-size: 16px !important;
        /* Slightly larger as requested */
        font-weight: 700 !important;
        /* Bolder as requested */
    }

    .vekli-result-table td:first-child {
        width: 50%;
        line-height: 1.3;
    }

    .vekli-upline-header {
        font-size: 22px !important;
    }

    .vekli-upline-note {
        font-size: 16px !important;
    }

    /* WhatsApp Icon on Top in Mobile */
    .vekli-phone-link {
        flex-direction: column !important;
        font-size: 16px !important;
        gap: 5px !important;
    }

    .vekli-wa-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .vekli-site-link {
        font-size: 14px !important;
    }

    .vekli-complaint-link {
        font-weight: 900;
        white-space: nowrap;
    }
}

/* ============================================
   Agent Detail View Styles
   ============================================ */

.vekli-agent-detail-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vekli-detail-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.vekli-detail-main {
    flex: 1;
}

.vekli-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.vekli-detail-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.vekli-detail-agent-info {
    margin-bottom: 20px;
}

.vekli-agent-name-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
}

.vekli-agent-id-badge {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 5px;
}

.vekli-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.vekli-detail-table tr {
    border-bottom: 1px solid #eee;
}

.vekli-detail-table tr:last-child {
    border-bottom: none;
}

.vekli-detail-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.vekli-detail-label {
    font-weight: 600;
    color: #555;
    width: 40%;
    font-size: 14px;
}

.vekli-detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.vekli-detail-badges {
    font-size: 16px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.vekli-detail-badges .checkmark {
    color: #28a745;
    font-size: 18px;
}

.vekli-detail-complaint-link {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.vekli-detail-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vekli-detail-whatsapp .vekli-wa-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZmlsbD0iIzI1RDM2NiIgZD0iTTE2IDJDOC4yOCAyIDIgOC4yOCAyIDE2YzAgMi43Mi43NyA1LjI2IDIuMSA3LjQxTDIgMjkuNjdsNi4zMy0yLjA1QzEwLjQ5IDI5LjE4IDEzLjE1IDMwIDE2IDMwYzcuNzIgMCAxNC02LjI4IDE0LTE0UzIzLjcyIDIgMTYgMnptNy4yIDIxLjE3Yy0uMzEuODctMS44IDEuNjktMi42IDEuNzktLjY5LjA4LTEuMzkuMzEtNC42OS0uOTctMy45OC0xLjU0LTYuNTUtNS41Ni02Ljc1LTUuODItLjItLjI2LTEuNjQtMi4xOC0xLjY0LTQuMTYgMC0xLjk4IDEuMDQtMi45NSAxLjQxLTMuMzUuMzctLjQuOC0uNSAxLjA3LS41LjI3IDAgLjU0LjAxLjc3LjAxLjI1IDAgLjU4LS4xLjkxLjY5LjMzLjguMTEgMi43NSAxLjIxIDIuNzUuMS4xNy4xNy4zNy4wMy42LS4xNC4yMy0uMjEuMzctLjQxLjU4LS4yLjIxLS40Mi40Ni0uNi42NC0uMi4yLS40MS40Mi0uMTguODIuMjMuNC45IDEuNDcgMS45MyAyLjM4IDEuMzMgMS4xOCAyLjQ1IDEuNTUgMi44IDEuNzIuMzUuMTcuNTYuMTQuNzYtLjA5LjIxLS4yMy44Ny0xLjAyIDEuMS0xLjM3LjIzLS4zNS40Ni0uMjkuNzctLjE3LjMxLjEyIDEuOTcuOTMgMi4zMSAxLjEuMzQuMTcuNTYuMjUuNjQuNC4wOC4xNS4wOC44OC0uMjMgMS43NXoiLz48L3N2Zz4=');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.vekli-detail-whatsapp a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.vekli-detail-whatsapp a:hover {
    text-decoration: underline;
}

.vekli-detail-error {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #dc3545;
    font-weight: 600;
}

/* Quick Agent Sidebar */
.vekli-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.vekli-quick-agent-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vekli-quick-agent-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.vekli-quick-agent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vekli-quick-agent-item {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #dee2e6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vekli-quick-agent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vekli-quick-agent-type {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.vekli-quick-agent-platforms {
    font-size: 12px;
    color: #007bff;
    margin-bottom: 6px;
}

.vekli-quick-agent-platforms .checkmark {
    color: #28a745;
}

.vekli-quick-agent-phone {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Responsive Design for Agent Detail */
@media (max-width: 768px) {
    .vekli-detail-container {
        flex-direction: column;
    }

    .vekli-detail-sidebar {
        width: 100%;
    }

    .vekli-detail-title {
        font-size: 24px;
    }

    .vekli-detail-label,
    .vekli-detail-value {
        display: block;
        width: 100%;
    }

    .vekli-detail-label {
        font-weight: 700;
        margin-bottom: 5px;
    }

    .vekli-detail-table td {
        padding: 12px 8px;
    }
}

/* ============================================
   Upline Section Styles (অভিযোগ)
   ============================================ */

.vekli-upline-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.vekli-upline-title {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
    text-align: center;
}

.vekli-upline-card {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.vekli-upline-header {
    background: transparent;
    color: #d35400;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 700;
}

.vekli-upline-table {
    width: 100%;
    border-collapse: collapse;
}

.vekli-upline-table tr {
    border-bottom: 1px solid #eee;
}

.vekli-upline-table tr:last-child {
    border-bottom: none;
}

.vekli-upline-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.vekli-upline-label {
    font-weight: 600;
    color: #555;
    width: 35%;
    font-size: 14px;
}

.vekli-upline-value {
    color: #333;
    font-size: 14px;
}

.vekli-upline-value strong {
    font-weight: 800;
    color: #007bff;
}

.vekli-upline-value .checkmark {
    color: #28a745;
}

.vekli-detail-site-link {
    font-size: 14px;
    color: #007bff;
    margin-top: 5px;
    text-decoration: underline;
}

/* Responsive Upline Section */
@media (max-width: 768px) {
    .vekli-upline-title {
        font-size: 18px;
    }

    .vekli-upline-header {
        font-size: 14px;
        padding: 10px 12px;
    }

    .vekli-upline-table td {
        padding: 10px 12px;
    }

    .vekli-upline-label {
        width: 40%;
        font-size: 13px;
    }

    .vekli-upline-value {
        font-size: 13px;
    }
}

/* ===== Find Agent Widget Styles (Exact Competitor Design Match) ===== */
.vekli-find-agent-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'SolaimanLipi', 'Segoe UI', Arial, sans-serif;
}

/* Page Title - Blue, Left aligned */
.vekli-find-agent-title {
    text-align: left;
    font-size: 32px;
    font-weight: 400;
    color: #1e88e5;
    margin: 0 0 30px 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Main Agent Headline - Centered */
.vekli-agent-headline {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.5;
    padding: 10px 0;
}

.vekli-headline-id {
    color: #d35400;
    font-weight: 600;
}

/* Agent Info Table - Thin gray border */
.vekli-find-agent-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    border: 1px solid #ddd;
}

.vekli-find-agent-table tr {
    border-bottom: 1px solid #ddd;
}

.vekli-find-agent-table tr:nth-child(odd) {
    background-color: #f8f8f8;
}

.vekli-find-agent-table tr:nth-child(even) {
    background-color: #ffffff;
}

.vekli-find-agent-table tr:last-child {
    border-bottom: none;
}

/* Table Label - Left side, centered text */
.vekli-table-label {
    padding: 18px 15px;
    font-weight: 400;
    color: #333;
    font-size: 16px;
    width: 50%;
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #ddd;
}

/* Table Value - Right side */
.vekli-table-value {
    padding: 18px 15px;
    color: #333;
    font-size: 16px;
    vertical-align: middle;
    text-align: center;
}

.vekli-table-value strong {
    font-weight: 600;
    color: #333;
}

/* Site Badge Format - Each site on separate line */
.vekli-site-badge-inline {
    font-weight: 600;
    color: #333;
    display: inline;
}

.vekli-green-check {
    color: #28a745;
    font-weight: 700;
    margin-left: 3px;
}

.vekli-site-link-blue {
    color: #2196f3;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

.vekli-site-link-blue:hover {
    text-decoration: underline;
}

/* WhatsApp Phone Link - Icon on top, Number below, Centered */
.vekli-wa-phone-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #28a745;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
}

.vekli-wa-phone-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.vekli-wa-icon-img {
    width: 28px;
    height: 28px;
    display: block;
}

/* Upline Divider Section - Orange text, NO background - FORCE override everything */
.vekli-upline-divider,
.elementor .vekli-upline-divider,
.elementor-widget .vekli-upline-divider,
.elementor-widget-container .vekli-upline-divider,
div.vekli-upline-divider,
[class*="vekli-upline-divider"] {
    margin: 25px 0 15px 0;
    text-align: center;
    padding: 15px 10px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.vekli-upline-divider,
.vekli-upline-divider * {
    background: transparent !important;
    background-color: transparent !important;
}

.vekli-upline-heading {
    font-size: 22px;
    font-weight: 400;
    color: #d35400;
    margin: 0 0 10px 0;
    line-height: 1.4;
    background: transparent !important;
    background-color: transparent !important;
}

.vekli-upline-instruction {
    font-size: 18px;
    color: #d35400;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    background: transparent !important;
    background-color: transparent !important;
}

/* Upline Table - Same styling as main table */
.vekli-find-agent-table.vekli-upline-table {
    margin-top: 0;
    border-top: 1px solid #ddd;
}

/* ===== Mobile Responsive - Find Agent ===== */
@media (max-width: 768px) {
    .vekli-find-agent-wrapper {
        padding: 10px 5px;
    }

    .vekli-find-agent-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 15px;
        color: #333;
    }

    .vekli-agent-headline {
        font-size: 17px;
        line-height: 1.5;
        padding: 10px 5px;
        text-align: center;
    }

    .vekli-headline-id {
        display: inline;
    }

    /* Table keeps 2-column layout on mobile */
    .vekli-find-agent-table {
        border: 1px solid #ddd;
    }

    .vekli-find-agent-table tr {
        border-bottom: 1px solid #ddd;
    }

    .vekli-find-agent-table tr:last-child {
        border-bottom: none;
    }

    .vekli-table-label {
        font-weight: 500;
        font-size: 13px;
        padding: 12px 8px;
        width: 45%;
        border-right: 1px solid #ddd;
        text-align: center;
        vertical-align: middle;
        word-break: keep-all;
    }

    .vekli-table-value {
        font-size: 14px;
        padding: 12px 8px;
        width: 55%;
        text-align: center;
        vertical-align: middle;
    }

    /* Site names styling */
    .vekli-site-badge-inline {
        display: block;
        margin-bottom: 3px;
    }

    .vekli-site-link-blue {
        font-size: 13px;
    }

    /* Upline Section */
    .vekli-upline-divider {
        padding: 15px 10px;
        margin: 20px 0 15px 0;
    }

    .vekli-upline-heading {
        font-size: 17px;
        line-height: 1.5;
    }

    .vekli-upline-instruction {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Upline table with green/yellow background for labels */
    .vekli-upline-table .vekli-table-label {
        background-color: #d4edda !important;
        color: #333;
    }

    /* WhatsApp Phone Link - vertical layout */
    .vekli-wa-phone-link {
        font-size: 15px;
        gap: 3px;
    }

    .vekli-wa-icon-img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .vekli-find-agent-title {
        font-size: 20px;
    }

    .vekli-agent-headline {
        font-size: 15px;
        padding: 8px 3px;
    }

    .vekli-table-label {
        font-size: 12px;
        padding: 10px 6px;
    }

    .vekli-table-value {
        font-size: 13px;
        padding: 10px 6px;
    }

    .vekli-upline-heading {
        font-size: 15px;
    }

    .vekli-upline-instruction {
        font-size: 13px;
    }

    .vekli-wa-phone-link {
        font-size: 14px;
    }

    .vekli-wa-icon-img {
        width: 22px;
        height: 22px;
    }
}

/* ===== Phone Search Grouped Results ===== */

/* Search indicator that appears ABOVE the main container */
.vekli-phone-search-indicator-top {
    font-size: 14px;
    color: #c44545;
    margin: 0 0 10px 0;
    font-style: italic;
    text-align: left;
}

.vekli-phone-search-header {
    text-align: left;
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
}

.vekli-search-indicator {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Agent Type Section - no outer border */
.vekli-agent-type-section {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

.vekli-type-header {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 15px 0;
    padding: 10px 20px;
    color: #333;
    display: inline-block;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Grouped Table Styling */
.vekli-grouped-table-wrap {
    overflow-x: auto;
    margin: 0 20px 0 20px;
}

.vekli-grouped-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: #fff;
}

.vekli-grouped-table thead {
    background: #f5f5f5;
}

.vekli-grouped-table th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.vekli-grouped-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
    color: #333;
    font-size: 15px;
}

.vekli-grouped-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.vekli-grouped-table tbody tr:hover {
    background: #f0f0f0;
}

/* Grouped Table Cells */
.vekli-gt-id {
    font-weight: 700;
    width: 20%;
}

.vekli-id-link {
    color: #333;
    text-decoration: underline;
    font-weight: 700;
}

.vekli-id-link:hover {
    color: #1a73e8;
}

.vekli-gt-agent {
    font-weight: 600;
    width: 30%;
}

.vekli-gt-phone {
    width: 50%;
}

.vekli-grouped-phone-link {
    color: #1a73e8;
    text-decoration: underline;
    font-weight: 600;
}

.vekli-grouped-phone-link:hover {
    color: #0d47a1;
}

/* Responsive for Grouped Tables */
@media (max-width: 767px) {
    .vekli-phone-search-header {
        padding: 10px 15px;
    }

    .vekli-type-header {
        font-size: 13px;
        padding: 8px 12px;
    }

    .vekli-grouped-table th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .vekli-grouped-table td {
        font-size: 13px;
        padding: 10px 8px;
    }

    .vekli-gt-id {
        width: 18%;
    }

    .vekli-gt-agent {
        width: 32%;
    }

    .vekli-gt-phone {
        width: 50%;
    }

    .vekli-search-indicator {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vekli-type-header {
        font-size: 11px;
        letter-spacing: 0.3px;
        padding: 6px 10px;
    }

    .vekli-grouped-table th {
        font-size: 10px;
        padding: 8px 5px;
    }

    .vekli-grouped-table td {
        font-size: 12px;
        padding: 8px 5px;
    }

    .vekli-grouped-phone-link {
        font-size: 11px;
    }

    .vekli-id-link {
        font-size: 12px;
    }
}