/* Layout */
.wrapper {
    width: 100%;
    display: flex;
    position: relative;
    flex: 1;
}

/* Profile Container */
.profiles-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    transition: all 0.3s ease;
    width: 100%;
    padding-bottom: 2rem;
}

.profiles-container.chat-active {
    max-width: calc(100% - 40%);
    margin-right: 40%;
    width: 60%;
}

/* Profile Header */
.profiles-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: var(--space-6) 0;
}

.profiles-title {
    font-size: var(--text-4xl);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: var(--font-bold);
}

.profiles-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-xl);
    font-weight: var(--font-light);
}

/* Profile Grid and Cards */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

[data-theme="dark"] .profile-card:hover {
    border-color: var(--primary-600);
}

/* Profile Card Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

[data-theme="dark"] .profile-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.profile-header:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.profile-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s ease;
}

.profile-header:hover .profile-image-container {
    transform: scale(1.05);
}

.profile-image, .profile-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--text-inverse);
    object-fit: cover;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.profile-image-placeholder i {
    font-size: 2rem;
    color: var(--primary-500);
}

.profile-name {
    color: var(--text-inverse);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin: 0.5rem 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-title, .profile-company {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
    margin: 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Details */
.profile-details {
    padding: 1rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-sm);
}

.detail-icon {
    color: var(--primary-500);
    font-size: var(--text-xl);
    transition: transform 0.2s ease;
}

.detail-text {
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-about {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-relaxed);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.action-button:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

[data-theme="dark"] .action-button:hover {
    background: var(--primary-900);
}

.stats-group {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--text-base);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: var(--primary-50);
    color: var(--primary-500);
    transform: scale(1.05);
}

[data-theme="dark"] .stat-item:hover {
    background: var(--primary-900);
}

.stat-item i {
    transition: all var(--transition-base);
}

.stat-item:hover i {
    transform: scale(1.1);
}

/* Chat Container - WhatsApp Style */
.chat-container {
    position: fixed;
    right: -100%;
    top: 64px;
    width: 40%;
    min-width: 400px;
    max-width: 600px;
    height: calc(100vh - 64px);
    background: #f0f2f5;
    display: flex;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
    border-left: 1px solid #d1d7db;
}

[data-theme="dark"] .chat-container {
    background: #111b21;
    border-left: 1px solid #2a3942;
}

.chat-container.active {
    right: 0;
}

/* Chat Sidebar - WhatsApp Style */
.chat-sidebar {
    width: 100%;
    background: #ffffff;
    border-right: 1px solid #e9edef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .chat-sidebar {
    background: #111b21;
    border-right: 1px solid #2a3942;
}

.chat-sidebar-header {
    padding: 0.75rem 1rem;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    position: relative;
}

[data-theme="dark"] .chat-sidebar-header {
    background: #202c33;
    border-bottom: 1px solid #2a3942;
}

.chat-sidebar-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111b21;
}

[data-theme="dark"] .chat-sidebar-header h3 {
    color: #e9edef;
}

.chat-sidebar-close {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.15s ease;
    color: #54656f;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

[data-theme="dark"] .chat-sidebar-close {
    color: #aebac1;
}

.chat-sidebar-close:hover {
    background: #d1d7db;
}

[data-theme="dark"] .chat-sidebar-close:hover {
    background: #2a3942;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
}

[data-theme="dark"] .chat-list {
    background: #111b21;
}

/* WhatsApp Style Chat List Items */
.chat-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid #e9edef;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: #ffffff;
}

[data-theme="dark"] .chat-list-item {
    background: #111b21;
    border-bottom: 1px solid #2a3942;
}

.chat-list-item:hover {
    background: #f5f6f6;
}

[data-theme="dark"] .chat-list-item:hover {
    background: #202c33;
}

.chat-list-item.active {
    background: #f0f2f5;
}

[data-theme="dark"] .chat-list-item.active {
    background: #2a3942;
}

.chat-list-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-list-item > div {
    flex: 1;
    min-width: 0;
}

.chat-list-item h4 {
    margin: 0 0 0.25rem 0;
    color: #111b21;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .chat-list-item h4 {
    color: #e9edef;
}

.chat-list-item small {
    color: #667781;
    font-size: 0.875rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .chat-list-item small {
    color: #8696a0;
}

/* Chat Content - WhatsApp Style */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #efeae2;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .chat-content {
    background: #0b141a;
}

.chat-content.active {
    transform: translateX(0);
}

/* WhatsApp Style Chat Header */
.chat-header {
    padding: 0.75rem 1rem;
    background: #f0f2f5;
    border-bottom: 1px solid #d1d7db;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .chat-header {
    background: #202c33;
    border-bottom: 1px solid #2a3942;
}

.chat-back-button {
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: 50%;
    transition: background-color 0.15s ease;
    color: #54656f;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

[data-theme="dark"] .chat-back-button {
    color: #aebac1;
}

.chat-back-button:hover {
    background: #d1d7db;
}

[data-theme="dark"] .chat-back-button:hover {
    background: #2a3942;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.chat-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #111b21;
    cursor: pointer;
}

[data-theme="dark"] .chat-header h3 {
    color: #e9edef;
}

.chat-close {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.15s ease;
    color: #54656f;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

[data-theme="dark"] .chat-close {
    color: #aebac1;
}

.chat-close:hover {
    background: #d1d7db;
}

[data-theme="dark"] .chat-close:hover {
    background: #2a3942;
}

/* WhatsApp Style Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><path d="M0 0h100v100H0z" fill="%23ffffff"/><path d="M20 20l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10M10 50l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10M20 80l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10" stroke="%23000000" stroke-width="1"/></svg>');
    background-color: #efeae2;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 100%;
}

[data-theme="dark"] .chat-messages {
    background-color: #0b141a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><path d="M0 0h100v100H0z" fill="%23000000"/><path d="M20 20l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10M10 50l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10M20 80l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10m20 0l10 10m-10 0l10-10" stroke="%23ffffff" stroke-width="1"/></svg>');
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* WhatsApp Style Message Bubbles */
.message {
    max-width: 65%;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    font-size: 0.875rem;
    line-height: 1.4;
}

.message-text {
    display: block;
    margin-right: 3rem;
}

.message.received {
    background: #ffffff;
    color: #111b21;
    align-self: flex-start;
    border-radius: 0 8px 8px 8px;
}

[data-theme="dark"] .message.received {
    background: #202c33;
    color: #e9edef;
}

.message.sent {
    background: #d9fdd3;
    color: #111b21;
    align-self: flex-end;
    border-radius: 8px 0 8px 8px;
}

[data-theme="dark"] .message.sent {
    background: #005c4b;
    color: #e9edef;
}

.message span.timestamp {
    display: inline-block;
    font-size: 0.6875rem;
    color: #667781;
    margin-left: 0.5rem;
    position: absolute;
    bottom: 0.25rem;
    right: 0.5rem;
}

[data-theme="dark"] .message span.timestamp {
    color: #8696a0;
}

.message.sent span.timestamp {
    color: #667781;
}

[data-theme="dark"] .message.sent span.timestamp {
    color: rgba(233, 237, 239, 0.6);
}

.read-receipt {
    display: inline-block;
    font-size: 0.6875rem;
    color: #667781;
    margin-left: 0.25rem;
}

[data-theme="dark"] .read-receipt {
    color: #8696a0;
}

/* WhatsApp Style Chat Input */
.chat-input {
    padding: 0.5rem 1rem;
    background: #f0f2f5;
    border-top: 1px solid #d1d7db;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .chat-input {
    background: #202c33;
    border-top: 1px solid #2a3942;
}

.chat-input input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    background: #ffffff;
    color: #111b21;
    border-radius: 8px;
    outline: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

[data-theme="dark"] .chat-input input {
    background: #2a3942;
    color: #e9edef;
}

.chat-input input:focus {
    box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.3);
}

.chat-input button {
    padding: 0.625rem 1.25rem;
    background: #00a884;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.9375rem;
}

.chat-input button:hover {
    background: #017561;
}

.chat-input button:active {
    background: #016552;
}

/* Quotes Container - WhatsApp Style */
.quotes-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: #f0f2f5;
}

[data-theme="dark"] .quotes-container {
    background: #202c33;
}

.quote {
    font-size: 1.125rem;
    color: #667781;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.6;
}

[data-theme="dark"] .quote {
    color: #8696a0;
}

.quote-author {
    color: #54656f;
    font-weight: 500;
}

[data-theme="dark"] .quote-author {
    color: #aebac1;
}

.welcome-message {
    padding: 2rem;
    text-align: center;
}

.welcome-message h3 {
    font-size: 1.5rem;
    color: #111b21;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .welcome-message h3 {
    color: #e9edef;
}

.welcome-message p {
    font-size: 0.9375rem;
    color: #667781;
}

[data-theme="dark"] .welcome-message p {
    color: #8696a0;
}

/* Responsive Design - Mobile First (WhatsApp Style) */
@media (max-width: 1200px) {
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
    }
    
    .chat-container {
        width: 45%;
        min-width: 380px;
    }
    
    .profiles-container.chat-active {
        max-width: calc(100% - 45%);
        margin-right: 45%;
        width: 55%;
    }
}

@media (max-width: 992px) {
    .chat-container {
        width: 100%;
        min-width: 100%;
        right: -100%;
    }
    
    .profiles-container.chat-active {
        display: none;
    }
    
    .chat-sidebar {
        width: 100%;
    }
    
    .chat-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .profiles-container.chat-active {
        display: none;
    }

    .profile-image-container {
        width: 90px;
        height: 90px;
    }

    .profile-image, .profile-image-placeholder {
        width: 90px;
        height: 90px;
    }
    
    .chat-back-button {
        display: flex;
    }
    
    .chat-close {
        display: flex;
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .chat-sidebar-close {
        display: flex;
    }
    
    /* On mobile, show chat list by default when container is active */
    .chat-container.active .chat-sidebar {
        display: flex;
    }
    
    /* On mobile, when chat content is active, hide sidebar */
    .chat-container.active .chat-content.active ~ .chat-sidebar {
        transform: translateX(-100%);
    }
}

@media (max-width: 576px) {
    .chat-container {
        top: 56px;
        height: calc(100vh - 56px);
    }
    
    .chat-sidebar {
        width: 100%;
        border-right: none;
    }

    .chat-content {
        width: 100%;
    }

    .message {
        max-width: 80%;
    }
    
    .chat-back-button {
        display: flex;
    }
    
    .chat-close {
        display: flex;
        font-size: 1.5rem;
    }
    
    .chat-sidebar-close {
        display: flex;
    }
    
    .quotes-container {
        display: none !important;
        padding: 1rem;
    }
    
    .quote {
        font-size: 1rem;
    }
    
    /* Ensure proper scrolling on mobile */
    .chat-messages {
        min-height: 0;
        max-height: 100%;
    }
}

.connection-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.connection-status.connecting {
    color: #f39c12;
}

.connection-status.connected {
    color: #2ecc71;
}

.connection-status.disconnected {
    color: #e74c3c;
}

.connection-status.reconnecting {
    color: #f39c12;
}

.message-status {
    display: none;
    font-size: 0.85rem;
    color: #666;
    margin-left: 1rem;
}

.message-status.sending {
    display: inline;
    color: #f39c12;
}

.message-status.sent {
    display: inline;
    color: #2ecc71;
}

.message-status.error {
    display: inline;
    color: #e74c3c;
}

.typing-indicator {
    display: none;
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 1rem;
    font-style: italic;
}

.read-receipt {
    display: block;
    font-size: 0.7rem;
    color: #2ecc71;
    margin-top: 0.3rem;
    text-align: right;
}

/* Unread message badge */
.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-list-item .unread-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #25d366;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

[data-theme="dark"] .unread-badge {
    background: #ff453a;
}

[data-theme="dark"] .chat-list-item .unread-badge {
    background: #00a884;
}

/* Connection Button Styles */
.connect-btn {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white !important;
    border: none;
}

.connect-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
}

.connected-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white !important;
    cursor: default;
    opacity: 0.9;
    border: none;
}

.pending-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white !important;
    cursor: default;
    opacity: 0.9;
    border: none;
}

[data-theme="dark"] .connect-btn {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

[data-theme="dark"] .connected-btn {
    background: linear-gradient(135deg, #45a049, #388e3c);
}

[data-theme="dark"] .pending-btn {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

/* Profile Actions Layout - Updated for connection buttons */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.profile-actions > a:first-child,
.profile-actions > button:first-child {
    width: 100%;
}

.profile-actions .action-button {
    justify-content: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Make cards more compact on mobile */
    .profile-card {
        margin: 0 0.5rem;
    }
    
    .profile-header {
        padding: 0.75rem;
    }
    
    .profile-image-container {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.5rem;
    }
    
    .profile-image, .profile-image-placeholder {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .profile-name {
        font-size: var(--text-lg);
        margin: 0.25rem 0 0.15rem;
    }
    
    .profile-title, .profile-company {
        font-size: 0.75rem;
    }
    
    .profile-details {
        padding: 0.75rem;
    }
    
    .detail-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
    
    .detail-icon {
        font-size: var(--text-base);
    }
    
    .profile-about {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin: 0.5rem 0;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .action-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .stats-group {
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.85rem;
        padding: 0.35rem;
    }
    
    /* Compact chat container on mobile */
    .chat-container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        top: 64px;
    }
    
    .profiles-container.chat-active {
        display: none;
    }
}

@media (max-width: 480px) {
    .profiles-header {
        padding: var(--space-4) 0;
        margin-bottom: 1.5rem;
    }
    
    .profiles-title {
        font-size: var(--text-2xl);
    }
    
    .profiles-subtitle {
        font-size: var(--text-base);
    }
    
    /* Extra compact cards for very small screens */
    .profiles-container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .profile-card {
        margin: 0 0.25rem;
    }
    
    .profile-header {
        padding: 0.5rem;
    }
    
    .profile-image-container {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.35rem;
    }
    
    .profile-image, .profile-image-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .profile-name {
        font-size: var(--text-base);
    }
    
    .profile-details {
        padding: 0.5rem;
    }
    
    .detail-row {
        gap: 0.35rem;
        margin-bottom: 0.35rem;
        font-size: 0.75rem;
    }
    
    .profile-actions {
        padding: 0.5rem;
    }
}
}