.cabeceo-pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.cabeceo-tier {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cabeceo-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.cabeceo-tier h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.tier-price {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 20px;
}

.tier-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #2e2e2e; /* Merged: used #2e2e2e as the final color */
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    color: #2e2e2e; /* Merged: used #2e2e2e as the final color */
}

.tier-features li:before {
    content: "✓";
    color: #00a32a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cabeceo-subscribe-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.cabeceo-subscribe-btn:hover {
    background: #005a87;
}

.cabeceo-subscription-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cabeceo-submit-btn {
    background: #00a32a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cabeceo-submit-btn:hover {
    background: #008a20;
}

.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.subscriptions-table th,
.subscriptions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.subscriptions-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.cancel-subscription {
    background: #d63638;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-subscription:hover {
    background: #b32d2e;
}

#subscription-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#subscription-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

#subscription-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Location and Nearby Dancers Styles */
.cabeceo-nearby-dancers {
    max-width: 800px;
    margin: 0 auto;
}

/* Container for status and button (Merged from two definitions) */
.location-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; 
    padding: 10px 15px; /* Used the second, more specific padding */
    background: #f9f9f9; /* Used the latest background */
    border: 1px solid #e0e0e0; /* Used the border from the second definition */
    border-radius: 8px;
}

.location-indicator {
    display: flex;
    align-items: center;
    gap: 8px; /* Used 8px from the second definition */
    font-weight: 500;
    color: #333;
}

.status-dot {
    width: 10px; /* Used 10px from the second definition */
    height: 10px; /* Used 10px from the second definition */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.status-dot.acquiring {
    background-color: #ffc107; /* Yellow/Orange - Loading */
}

.status-dot.active {
    background: #28a745;
    animation: pulse 2s infinite;
}
.status-dot.available {
    background-color: #28a745; /* Green - Success */
}

.status-dot.inactive {
    background: #dc3545;
}
.status-dot.error {
    background-color: #dc3545; /* Red - Error */
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.refresh-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Refresh Button Styling (Similar to Cabeceo Button/Toggle Look) */
#refresh-location {
    background-color: #007cba; 
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#refresh-location:hover {
    background-color: #005f99;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

#refresh-location:active {
    transform: translateY(1px);
}

#refresh-location .dashicons {
    font-size: 16px;
    line-height: 1;
    color: white;
}


/* Nearby Dancers List Styling (Merged definitions) */
.nearby-dancers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.nearby-dancer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nearby-dancer:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dancer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.dancer-info {
    flex: 1;
}

.dancer-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.dancer-profile {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dancer-distance {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
    white-space: nowrap;
}

.request-dance-btn {
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.request-dance-btn:hover {
    background-color: #0195df;
}

.no-dancers, .loading {
    padding: 10px 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Dance Requests Styles */
.cabeceo-dance-requests {
    max-width: 1000px;
    margin: 0 auto;
}

.requests-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: #007cba;
    color: #007cba;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.request-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.request-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d1e7dd; color: #0f5132; }
.status-denied { background: #f8d7da; color: #721c24; }
.status-on_hold { background: #cce7ff; color: #004085; }
.status-expired { background: #e2e3e5; color: #383d41; }

.request-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.request-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.accept-btn { background: #28a745; color: white; }
.deny-btn { background: #dc3545; color: white; }
.hold-btn { background: #17a2b8; color: white; }

/* Modal Styles */
.cabeceo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Visibility Toggle */
.cabeceo-visibility-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #28a745;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Messaging App Style */

.cabeceo-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    /* Note: This is where you defined the two-column grid that was causing issues. 
       If you want the list items to be stacked, remove the next two lines. 
       If you want them side-by-side, keep them. */
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.cabeceo-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ededed;
}

.cabeceo-list-item:hover {
    background-color: #f5f5f5;
}

/* --- Column 1: Profile Picture --- */
.cabeceo-item-left-col {
    padding-right: 15px;
    flex-shrink: 0;
}

.cabeceo-profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #008069;
    border: 1px solid #eee;
}

/* --- Column 2: Content (Name & Message) --- */
.cabeceo-item-right-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* --- Row 1: Name (and optional time) --- */
.cabeceo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Fixed typo: 'align-cabeceo-items' changed to 'align-items' */
    margin-bottom: 2px;
}

.contact-name {
    font-weight: bold;
    font-size: 16px;
    color: #111b21;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cabeceo-message-time {
    font-size: 12px;
    color: #667781;
    white-space: nowrap;
}

/* --- Row 2: Message Snippet --- */
.cabeceo-item-body {
    font-size: 14px;
    color: #667781;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Style the 'show cabeceo-message' text */
.last-cabeceo-message {
    color: #008069;
    font-style: italic;
}

/* Additional style for a "new request" row */
.cabeceo-list-item.new-request .contact-name {
    color: #008069;
}


/* Responsive Design (Merged from two media queries) */
@media (max-width: 768px) {
    .cabeceo-pricing-table {
        flex-direction: column;
        align-items: center;
    }
    .cabeceo-tier {
        min-width: 100%;
    }
    .nearby-dancer {
        flex-direction: column;
        text-align: center;
    }
    .request-item {
        flex-direction: column;
        text-align: center;
    }
    .request-actions {
        margin-left: 0;
        justify-content: center;
    }
    .location-status {
        flex-direction: column;
        gap: 10px;
    }
}
