/* MATCH - Professional Social Feed Styling */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --match-primary: #2563EB;
    --match-primary-dark: #1D4ED8;
    --match-primary-light: #DBEAFE;
    --match-text-primary: #1a1a1a;
    --match-text-secondary: #666666;
    --match-text-muted: #999999;
    --match-border: #e0e0e0;
    --match-border-light: #f0f0f0;
    --match-bg: #f5f5f5;
    --match-bg-white: #ffffff;
    --match-hover: #fafafa;
    --match-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --match-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --match-radius: 12px;
    --match-radius-sm: 8px;
    --match-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   MAIN WRAPPER
   ============================================ */
.match-wrapper {
    min-height: 100vh;
    background-color: var(--match-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--match-text-primary);
    line-height: 1.6;
}

/* ============================================
   DISCOVERY PAGE STYLES
   ============================================ */
.match-discovery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--match-bg);
}

/* Hero Section */
.match-hero-section {
    background: linear-gradient(135deg, var(--match-primary) 0%, var(--match-primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 var(--match-radius) var(--match-radius);
}

.match-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.match-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-hero-subtitle {
    font-size: 1.2rem;
    margin: 0 0 40px 0;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.match-search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.match-search-input-wrapper {
    flex: 1;
    position: relative;
}

.match-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--match-text-muted);
    font-size: 16px;
}

.match-search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    border-radius: var(--match-radius);
    font-size: 16px;
    background-color: white;
    box-shadow: var(--match-shadow);
    transition: var(--match-transition);
}

.match-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 97, 197, 0.2), var(--match-shadow);
}

.match-search-button {
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--match-radius);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--match-transition);
}

.match-search-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Species Tabs */
.match-species-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.match-species-tab {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--match-border);
    border-radius: var(--match-radius);
    color: var(--match-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--match-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-species-tab:hover {
    border-color: var(--match-primary-light);
    color: var(--match-primary);
}

.match-species-tab.active {
    background-color: var(--match-primary);
    border-color: var(--match-primary);
    color: white;
}

/* Filters */
.match-filters-container {
    margin-bottom: 30px;
}

.match-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.match-filter-select,
.match-sort-select {
    padding: 12px 16px;
    border: 2px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    background-color: white;
    font-size: 14px;
    color: var(--match-text-primary);
    cursor: pointer;
    transition: var(--match-transition);
    min-width: 150px;
}

.match-filter-select:focus,
.match-sort-select:focus {
    outline: none;
    border-color: var(--match-primary);
}

.match-clear-filters {
    padding: 12px 16px;
    background-color: transparent;
    border: 2px solid var(--match-text-muted);
    border-radius: var(--match-radius-sm);
    color: var(--match-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--match-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-clear-filters:hover {
    border-color: var(--match-primary);
    color: var(--match-primary);
}

/* Results */
.match-results-container {
    margin-bottom: 40px;
}

.match-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.match-results-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--match-text-primary);
}

.match-results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Companions Grid */
.match-companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.match-companion-card {
    background-color: white;
    border-radius: var(--match-radius);
    overflow: hidden;
    box-shadow: var(--match-shadow);
    transition: var(--match-transition);
    cursor: pointer;
}

.match-companion-card:hover {
    box-shadow: var(--match-shadow-hover);
    transform: translateY(-2px);
}

.match-companion-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.match-companion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--match-transition);
}

.match-companion-card:hover .match-companion-image {
    transform: scale(1.05);
}

.match-companion-species-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: var(--match-radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.match-companion-like-btn,
.match-companion-like-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--match-transition);
    color: var(--match-text-muted);
}

.match-companion-like-btn:hover,
.match-companion-like-overlay:hover {
    background-color: white;
    color: #e74c3c;
    transform: scale(1.1);
}

.match-companion-info {
    padding: 20px;
}

.match-companion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.match-companion-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--match-text-primary);
}

.match-companion-age {
    font-size: 12px;
    color: var(--match-text-muted);
    background-color: var(--match-bg);
    padding: 4px 8px;
    border-radius: var(--match-radius-sm);
}

.match-companion-details {
    margin-bottom: 16px;
}

.match-companion-breed {
    font-size: 14px;
    color: var(--match-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.match-companion-traits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.match-trait {
    font-size: 12px;
    color: var(--match-text-secondary);
    background-color: var(--match-bg);
    padding: 4px 8px;
    border-radius: var(--match-radius-sm);
}

.match-companion-breeder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--match-border-light);
}

.match-breeder-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-breeder-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.match-breeder-details {
    flex: 1;
    min-width: 0;
}

.match-breeder-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--match-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-breeder-location {
    font-size: 12px;
    color: var(--match-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-companion-actions {
    display: flex;
    gap: 8px;
}

.match-action-btn {
    width: 32px;
    height: 32px;
    background-color: var(--match-bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--match-transition);
    color: var(--match-text-secondary);
    text-decoration: none;
}

.match-action-btn:hover {
    background-color: var(--match-primary);
    color: white;
}

/* Loading States */
.match-loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.match-loading-card {
    background-color: white;
    border-radius: var(--match-radius);
    overflow: hidden;
    box-shadow: var(--match-shadow);
    height: 350px;
    position: relative;
}

.match-loading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Load More */
.match-load-more-container {
    text-align: center;
    margin: 40px 0;
}

.match-load-more-btn {
    padding: 16px 32px;
    background-color: white;
    border: 2px solid var(--match-primary);
    border-radius: var(--match-radius);
    color: var(--match-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--match-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-load-more-btn:hover:not(:disabled) {
    background-color: var(--match-primary);
    color: white;
}

.match-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty States */
.match-no-results,
.match-error {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.match-no-results-icon,
.match-error-icon {
    font-size: 48px;
    color: var(--match-text-muted);
    margin-bottom: 20px;
}

.match-no-results h3,
.match-error h3 {
    font-size: 24px;
    color: var(--match-text-primary);
    margin: 0 0 12px 0;
}

.match-no-results p,
.match-error p {
    font-size: 16px;
    color: var(--match-text-secondary);
    margin: 0 0 24px 0;
}

/* Auth Section */
.match-auth-section {
    background-color: white;
    border-radius: var(--match-radius);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    box-shadow: var(--match-shadow);
}

.match-auth-content h3 {
    font-size: 24px;
    color: var(--match-text-primary);
    margin: 0 0 12px 0;
}

.match-auth-content p {
    font-size: 16px;
    color: var(--match-text-secondary);
    margin: 0 0 24px 0;
}

.match-auth-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.match-btn-primary,
.match-btn-secondary {
    padding: 12px 24px;
    border-radius: var(--match-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--match-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-btn-primary {
    background-color: var(--match-primary);
    color: white;
    border: 2px solid var(--match-primary);
}

.match-btn-primary:hover {
    background-color: var(--match-primary-dark);
    border-color: var(--match-primary-dark);
}

.match-btn-secondary {
    background-color: transparent;
    color: var(--match-primary);
    border: 2px solid var(--match-primary);
}

.match-btn-secondary:hover {
    background-color: var(--match-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-discovery-container {
        padding: 0 16px;
    }
    
    .match-hero-section {
        padding: 40px 0;
    }
    
    .match-hero-title {
        font-size: 2.5rem;
    }
    
    .match-hero-subtitle {
        font-size: 1rem;
    }
    
    .match-search-container {
        flex-direction: column;
    }
    
    .match-species-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .match-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .match-filter-select,
    .match-sort-select {
        min-width: auto;
    }
    
    .match-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .match-companions-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .match-auth-buttons {
        flex-direction: column;
    }
}

/* ============================================
   HEADER
   ============================================ */
.match-header {
    background-color: var(--match-bg-white);
    border-bottom: 1px solid var(--match-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--match-shadow);
    width: 100%;
    margin: 0;
}

.match-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    width: 100%;
}

.match-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--match-primary);
    letter-spacing: -0.5px;
}

.match-logo a:hover {
    opacity: 0.9;
}

.match-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-logo-img {
    height: 32px;
    width: auto;
}

.match-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--match-primary);
    letter-spacing: -0.5px;
}

.match-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Match Site Toggle Switch */
.match-toggle-container {
    display: flex;
    align-items: center;
}

.match-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

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

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

.match-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

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

.match-toggle-switch input:disabled + .match-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Match Notifications */
.match-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.match-notification-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.match-notification-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.match-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Match Profile Page Styles - Matching Studio Design */
.match-profile-hero {
    background: linear-gradient(135deg, var(--match-primary) 0%, #4a69bd 100%);
    padding: 40px 0 60px;
    color: white;
    position: relative;
}

.match-profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.3;
}

.match-profile-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
}

.match-profile-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: white;
    flex-shrink: 0;
    overflow: hidden;
}

.match-profile-hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-hero-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--match-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--match-text-muted);
    font-size: 32px;
}

.match-profile-hero-info {
    flex: 1;
    min-width: 0;
}

.match-profile-hero-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.match-profile-hero-location {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-profile-hero-badges {
    margin: 16px 0 24px 0;
}

.match-profile-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.match-profile-badge-verified {
    background: #28a745;
    color: white;
}

.match-profile-badge-founding {
    background: #ffc107;
    color: #212529;
}

.match-profile-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.match-profile-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.match-profile-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.match-profile-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.match-profile-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.match-profile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.match-profile-content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.match-profile-main-content {
    min-width: 0;
}

.match-profile-sidebar-content {
    min-width: 0;
}

.match-profile-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--match-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.match-profile-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--match-border);
    background: var(--match-bg-white);
}

.match-profile-card-header h2,
.match-profile-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--match-text-primary);
}

.match-profile-card-body {
    padding: 24px;
}

.match-profile-bio-text {
    line-height: 1.6;
    color: var(--match-text-secondary);
}

.match-profile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--match-text-muted);
}

.match-profile-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.match-profile-empty-state p {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.match-profile-empty-state small {
    font-size: 14px;
    opacity: 0.8;
}

.match-profile-empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--match-text-muted);
    font-size: 14px;
}

.match-profile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--match-text-secondary);
}

.match-profile-contact-item i {
    width: 16px;
    color: var(--match-text-muted);
}

.match-profile-contact-item a {
    color: var(--match-primary);
    text-decoration: none;
}

.match-profile-contact-item a:hover {
    text-decoration: underline;
}

.match-profile-specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-profile-specialty-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--match-bg-light);
    color: var(--match-primary);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .match-profile-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .match-profile-hero-name {
        font-size: 24px;
    }
    
    .match-profile-content-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .match-profile-card-header,
    .match-profile-card-body {
        padding: 16px;
    }
    
    .match-profile-hero-actions {
        justify-content: center;
    }
}

.match-nav a {
    color: var(--match-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--match-transition);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.match-nav a:hover {
    color: var(--match-primary);
    background: rgba(24, 119, 242, 0.08);
}

.match-nav a.match-nav-link-active {
    color: var(--match-primary);
    background: rgba(24, 119, 242, 0.12);
    font-weight: 600;
}

.match-nav a i {
    font-size: 16px;
}

.match-nav a span {
    display: inline-block;
}

/* User Menu Dropdown */
.match-nav-user-menu {
    position: relative;
    margin-left: 8px;
}

.match-nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--match-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--match-text-primary);
    transition: var(--match-transition);
}

.match-nav-user-btn:hover {
    background: var(--match-hover);
    border-color: var(--match-primary-light);
}

.match-nav-user-btn i.fa-user-circle {
    font-size: 20px;
    color: var(--match-primary);
}

.match-nav-user-btn i.fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
}

.match-nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--match-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.match-nav-user-dropdown.show {
    display: block;
}

.match-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--match-text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--match-transition);
    border-bottom: 1px solid var(--match-border-light);
}

.match-nav-dropdown-item:last-child {
    border-bottom: none;
}

.match-nav-dropdown-item:hover {
    background: var(--match-hover);
    color: var(--match-primary);
}

.match-nav-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--match-text-secondary);
}

.match-nav-dropdown-item:hover i {
    color: var(--match-primary);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .match-nav a span {
        display: none;
    }
    
    .match-nav a {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    .match-nav-user-btn span {
        display: none;
    }
    
    .match-nav-user-btn {
        padding: 8px;
        min-width: 40px;
    }
    
    .match-nav-user-dropdown {
        right: -8px;
        min-width: 180px;
    }
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.match-studio-main {
    margin-top: 72px; /* ensure content clears the fixed/sticky header */
}

.match-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 680px 360px;
    gap: 24px;
    align-items: start;
}

/* ============================================
   FEED CONTAINER
   ============================================ */
.match-feed-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   POST CARDS
   ============================================ */
.match-feed-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-post-card {
    padding: 20px;
    transition: var(--match-transition);
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    box-shadow: var(--match-shadow);
    border: 1px solid var(--match-border-light);
}

.match-post-card:hover {
    background-color: var(--match-hover);
}

.match-post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.match-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 0;
    object-fit: cover;
    border: 2px solid var(--match-border-light);
    flex-shrink: 0;
}

.match-post-author {
    flex: 1;
    min-width: 0;
}

.match-post-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--match-text-primary);
    margin: 0 0 2px 0;
    line-height: 1.4;
    display: block;
}

.match-post-author-subtitle {
    font-size: 13px;
    color: var(--match-text-secondary);
    margin: 0;
    line-height: 1.4;
    display: block;
}

.match-post-date {
    font-size: 13px;
    color: var(--match-text-muted);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 12px;
}

.match-post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--match-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.match-post-text {
    font-size: 15px;
    color: var(--match-text-primary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.match-post-image {
    width: 100%;
    border-radius: var(--match-radius-sm);
    margin: 16px 0;
    max-height: 600px;
    object-fit: cover;
    box-shadow: var(--match-shadow);
    transition: var(--match-transition);
}

.match-post-image:hover {
    box-shadow: var(--match-shadow-hover);
    transform: translateY(-2px);
}

/* Limit post images display - Facebook style */
.match-post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

/* Mobile: Only show first 2 images */
@media (max-width: 768px) {
    .match-post-images > div:nth-child(n+3) {
        display: none !important;
    }
    .match-post-images {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .match-post-more-overlay span {
        font-size: 32px !important;
    }
}

.match-post-hashtags {
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.match-post-hashtags a {
    color: var(--match-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--match-transition);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(60, 97, 197, 0.08);
}

.match-post-hashtags a:hover {
    background-color: rgba(60, 97, 197, 0.15);
    color: var(--match-primary-dark);
}

.match-post-engagement {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--match-border-light);
}

.match-post-engagement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--match-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--match-transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.match-post-engagement-item:hover {
    color: var(--match-primary);
    background-color: rgba(60, 97, 197, 0.08);
}

.match-post-engagement-item i {
    font-size: 18px;
}

.match-post-action {
    margin-top: 16px;
}

.match-btn-reserve {
    background: linear-gradient(135deg, var(--match-primary) 0%, var(--match-primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--match-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--match-transition);
    box-shadow: 0 2px 8px rgba(60, 97, 197, 0.3);
    letter-spacing: 0.3px;
}

.match-btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 97, 197, 0.4);
}

.match-btn-reserve:active {
    transform: translateY(0);
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.match-profile-container {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    box-shadow: var(--match-shadow);
    overflow: hidden;
}

.match-profile-header {
    position: relative;
}

.match-profile-banner {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    position: relative;
}

.match-profile-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.match-profile-info {
    padding: 0 32px 32px 32px;
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

.match-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--match-bg-white);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: var(--match-bg-white);
}

.match-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-details {
    margin-bottom: 20px;
}

.match-profile-details h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
}

.match-profile-details p {
    color: var(--match-text-secondary);
    font-size: 15px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-profile-details p i {
    color: var(--match-text-muted);
    font-size: 14px;
}

.match-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

.match-verified-badge i {
    font-size: 14px;
}

.match-profile-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.match-btn-primary {
    background: linear-gradient(135deg, var(--match-primary) 0%, var(--match-primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--match-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--match-transition);
    box-shadow: 0 2px 8px rgba(60, 97, 197, 0.3);
    letter-spacing: 0.3px;
}

.match-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 97, 197, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.match-btn-primary:active {
    transform: translateY(0);
}

.match-btn-secondary {
    background-color: var(--match-bg-white);
    color: var(--match-primary);
    border: 2px solid var(--match-primary);
    padding: 12px 24px;
    border-radius: var(--match-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--match-transition);
    letter-spacing: 0.3px;
}

.match-btn-secondary:hover {
    background-color: var(--match-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 97, 197, 0.3);
    text-decoration: none;
}

.match-btn-secondary:active {
    transform: translateY(0);
}

.match-profile-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-profile-about-card,
.match-profile-posts-section {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 24px;
    box-shadow: var(--match-shadow);
}

.match-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--match-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.match-profile-about-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--match-text-primary);
    margin: 0 0 16px 0;
}

.match-profile-about-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.match-about-detail-item {
    font-size: 14px;
    color: var(--match-text-primary);
    line-height: 1.5;
}

.match-about-detail-item strong {
    color: var(--match-text-secondary);
    font-weight: 600;
}

.match-profile-posts-section {
    padding: 0;
}

.match-profile-posts-section .match-section-title {
    padding: 24px 24px 16px 24px;
    margin: 0;
    border-bottom: 1px solid var(--match-border-light);
}

#match-profile-posts-content {
    padding: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.match-sidebar {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 88px;
    box-shadow: var(--match-shadow);
}

.match-sidebar h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--match-text-primary);
    letter-spacing: -0.3px;
}

.match-sidebar p {
    color: var(--match-text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.match-footer {
    background-color: var(--match-bg-white);
    border-top: 1px solid var(--match-border);
    padding: 32px 0;
    margin-top: 64px;
}

.match-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-footer p {
    color: var(--match-text-muted);
    font-size: 14px;
    margin: 0;
}

.match-footer-nav {
    display: flex;
    gap: 24px;
}

.match-footer-nav a {
    color: var(--match-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--match-transition);
}

.match-footer-nav a:hover {
    color: var(--match-primary);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.match-loading {
    padding: 60px 40px;
    text-align: center;
    color: var(--match-text-muted);
    font-size: 15px;
}

.match-error {
    padding: 60px 40px;
    text-align: center;
    color: #d32f2f;
    font-size: 15px;
    background-color: #ffebee;
    border-radius: var(--match-radius-sm);
    margin: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .match-main {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
    
    .match-sidebar {
        position: static;
        margin-top: 24px;
    }
    
    .match-header {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .match-header-container {
        padding: 0 12px 0 0 !important;
        padding-left: 0 !important;
        max-width: 100%;
        width: 100%;
        margin: 0;
        height: 56px;
    }
    
    .match-nav {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .match-nav-link {
        padding: 8px;
        font-size: 20px;
    }
    
    .match-nav-link span {
        display: none !important;
    }
    
    .match-nav-user-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .match-nav-user-btn span {
        display: none !important;
    }
    
    .match-nav-user-btn i.fa-chevron-down {
        display: none !important;
    }
    
    .bcp-brand {
        display: contents !important;
    }
    
    .bcp-brand a {
        display: flex !important;
        align-items: center !important;
        align-self: center !important;
        margin: -10px 0 0 5px !important;
        padding: 0 !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        gap: 4px !important;
    }
}

@media (max-width: 768px) {
    .match-main {
        padding: 16px;
        gap: 16px;
    }
    
    .match-feed-header {
        padding: 20px;
    }
    
    .match-feed-header h1 {
        font-size: 24px;
    }
    
    .match-post-card {
        padding: 20px;
    }
    
    .match-profile-info {
        padding: 0 20px 24px 20px;
    }
    
    .match-profile-content {
        padding: 24px 20px;
    }
    
    .match-profile-tabs {
        padding: 0 20px;
    }
    
    .match-nav {
        gap: 16px;
    }
    
    .match-nav a {
        font-size: 13px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-post-card {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   INLINE POST COMPOSER
   ============================================ */
.match-post-composer-card {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--match-shadow);
    border: 1px solid var(--match-border-light);
}

.match-post-composer-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.match-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--match-border-light);
    flex-shrink: 0;
}

.match-post-composer-header textarea {
    flex: 1;
    border: none;
    resize: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--match-text-primary);
    padding: 8px 0;
    line-height: 1.5;
    min-height: 60px;
    max-height: 200px;
}

.match-post-composer-header textarea:focus {
    outline: none;
}

.match-post-composer-header textarea::placeholder {
    color: var(--match-text-muted);
}

.match-post-composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--match-border-light);
}

.match-composer-media-buttons {
    display: flex;
    gap: 8px;
}

.match-composer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: var(--match-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--match-radius-sm);
    cursor: pointer;
    transition: var(--match-transition);
}

.match-composer-btn:hover {
    background-color: var(--match-hover);
    color: var(--match-primary);
}

.match-composer-btn i {
    font-size: 16px;
}

.match-composer-publish {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-post-type-select {
    padding: 8px 12px;
    border: 1px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--match-text-primary);
    background-color: var(--match-bg-white);
    cursor: pointer;
    transition: var(--match-transition);
}

.match-post-type-select:focus {
    outline: none;
    border-color: var(--match-primary);
}

.match-composer-images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--match-border-light);
}

.match-composer-image-preview {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--match-radius-sm);
    overflow: hidden;
    background-color: var(--match-bg);
}

.match-composer-image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-composer-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--match-transition);
}

.match-composer-image-remove:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ============================================
   MATCH STUDIO PROFILE VIEW
   ============================================ */
.match-studio-profile-view {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 24px;
}

.match-studio-profile-header {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--match-shadow);
    position: relative;
    z-index: 5; /* keep header content above any overlapping elements */
}

.match-studio-profile-banner {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    position: relative;
}

.match-edit-banner-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--match-transition);
    z-index: 10; /* ensure camera button is clickable */
}

.match-edit-banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.match-studio-profile-info {
    padding: 0 24px 24px 24px;
    position: relative;
    margin-top: -60px;
}

.match-studio-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--match-bg-white);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--match-bg-white);
    position: relative;
    z-index: 6;
}

.match-studio-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.match-edit-avatar-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid var(--match-bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--match-transition);
}

.match-edit-avatar-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.match-studio-profile-details {
    flex: 1;
    min-width: 0;
}

.match-studio-profile-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.match-profile-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--match-text-secondary);
    margin: 0 0 8px 0;
}

.match-profile-breeds {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--match-text-secondary);
    font-size: 14px;
    margin: 0 0 8px 0;
}

.match-profile-breeds i {
    color: var(--match-text-muted);
    font-size: 14px;
}

.match-profile-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--match-text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.match-profile-location i {
    color: var(--match-text-muted);
    font-size: 14px;
}

/* Trust Section - Compact Design */
.match-studio-trust-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--match-border-light);
}

.match-trust-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.match-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    line-height: 1.2;
    height: auto;
}

.match-badge-verified {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    cursor: help;
}

.match-badge-verified i {
    font-size: 10px;
}

.match-badge-founding {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.match-badge-founding i {
    font-size: 10px;
    color: #ff6b00;
}

/* Credentials Groups - Compact Inline Design */
.match-credentials-group {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.match-credentials-group:last-child {
    margin-bottom: 0;
}

.match-credentials-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--match-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.match-credentials-label i {
    font-size: 10px;
    color: var(--match-primary);
}

.match-credentials-grid {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.match-credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: #f8f9fa;
    border: 1px solid var(--match-border);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--match-text-primary);
    transition: all 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    height: auto;
}

.match-credential-badge:hover {
    background: #ffffff;
    border-color: var(--match-primary);
    box-shadow: 0 1px 3px rgba(60, 97, 197, 0.15);
}

.match-credential-badge i {
    font-size: 10px;
    flex-shrink: 0;
    opacity: 0.8;
}

.match-registry-badge {
    background: #e8f0fe;
    border-color: #c5d9f0;
    color: #1a73e8;
}

.match-registry-badge i {
    display: none;
}

.match-cert-badge {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.match-cert-badge i {
    color: #2e7d32;
}

.match-credential-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .match-credential-badge span {
        max-width: 150px;
    }
}

.match-studio-about-section {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--match-shadow);
}

.match-studio-about-section h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--match-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.match-studio-about-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--match-text-primary);
    margin: 0 0 12px 0;
}

.match-studio-about-section p:last-child {
    margin-bottom: 0;
}

.match-empty-about {
    border: 2px dashed var(--match-border);
    background-color: var(--match-bg);
}

.match-empty-message {
    color: var(--match-text-muted) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-empty-message i {
    font-size: 18px;
    color: var(--match-primary);
}

.match-empty-message a {
    color: var(--match-primary);
    text-decoration: none;
    font-weight: 600;
}

.match-empty-message a:hover {
    text-decoration: underline;
}

.match-studio-posts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-studio-posts-section h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    padding: 16px 0 0 0;
    color: var(--match-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   MATCH STUDIO STYLING
   ============================================ */

.match-studio-listings,
.match-studio-profile-edit {
    padding: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.match-studio-welcome {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--match-radius);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--match-shadow);
    border: 1px solid var(--match-border-light);
}

.match-studio-welcome h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
}

.match-studio-welcome p {
    font-size: 16px;
    color: var(--match-text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.match-studio-welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.match-studio-stats-box {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--match-shadow);
}

.match-studio-stats-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.3px;
}

.match-studio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.match-studio-stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--match-radius-sm);
    border: 1px solid var(--match-border-light);
    transition: var(--match-transition);
}

.match-studio-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--match-shadow-hover);
}

.match-studio-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--match-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.match-studio-stat-label {
    font-size: 13px;
    color: var(--match-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-studio-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.match-studio-recent-activity {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 32px;
    box-shadow: var(--match-shadow);
}

.match-studio-recent-activity h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.3px;
}

.match-studio-recent-activity p {
    color: var(--match-text-secondary);
    font-size: 15px;
    margin: 0;
}

/* Post Composer */
.match-studio-post-composer {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--match-shadow);
}

.match-studio-post-composer h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.3px;
}

.match-form-group {
    margin-bottom: 24px;
}

.match-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--match-text-primary);
    margin-bottom: 8px;
}

.match-form-group input[type="text"],
.match-form-group input[type="url"],
.match-form-group input[type="email"],
.match-form-group textarea,
.match-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--match-text-primary);
    background-color: var(--match-bg-white);
    transition: var(--match-transition);
}

.match-form-group input[type="text"]:focus,
.match-form-group input[type="url"]:focus,
.match-form-group input[type="email"]:focus,
.match-form-group textarea:focus,
.match-form-group select:focus {
    outline: none;
    border-color: var(--match-primary);
    box-shadow: 0 0 0 3px rgba(60, 97, 197, 0.1);
}

.match-form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.match-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--match-text-muted);
}

.match-radio-group,
.match-checkbox-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.match-radio-group label,
.match-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    color: var(--match-text-primary);
}

.match-radio-group input[type="radio"],
.match-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--match-primary);
}

.match-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--match-border-light);
}

/* Image Upload */
.match-profile-image-upload,
.match-profile-banner-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.match-profile-image-upload img,
.match-profile-banner-upload img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--match-radius-sm);
    border: 2px solid var(--match-border);
    background-color: var(--match-bg);
}

.match-profile-banner-upload img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Posts List */
.match-studio-posts-list {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 32px;
    box-shadow: var(--match-shadow);
}

.match-studio-posts-list h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.3px;
}

.match-studio-posts-list p {
    color: var(--match-text-secondary);
    font-size: 15px;
    margin: 0;
    text-align: center;
    padding: 40px;
}

/* Listings */
.match-studio-listings h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
}

.match-studio-listings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    overflow: hidden;
    box-shadow: var(--match-shadow);
}

.match-studio-listings-table th {
    background-color: var(--match-bg);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--match-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--match-border);
}

.match-studio-listings-table td {
    padding: 16px;
    border-bottom: 1px solid var(--match-border-light);
    font-size: 14px;
    color: var(--match-text-primary);
}

.match-studio-listings-table tr:hover {
    background-color: var(--match-hover);
}

.match-studio-listings-table tr:last-child td {
    border-bottom: none;
}

/* Profile Edit */
.match-studio-profile-edit h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
}

.match-studio-profile-edit form {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    padding: 32px;
    box-shadow: var(--match-shadow);
}

#match-profile-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
    padding: 12px;
    border: 2px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    background-color: var(--match-bg);
}

.match-cert-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--match-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.match-cert-tag .fa-times {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
}

.match-cert-tag .fa-times:hover {
    opacity: 1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.match-text-primary {
    color: var(--match-text-primary);
}

.match-text-secondary {
    color: var(--match-text-secondary);
}

.match-text-muted {
    color: var(--match-text-muted);
}

.match-bg-white {
    background-color: var(--match-bg-white);
}

/* ============================================
   COMPACT PROFILE EDIT FORM
   ============================================ */
.match-profile-edit-compact {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.match-compact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--match-text-primary);
    margin-bottom: 6px;
}

.match-compact-form input[type="text"],
.match-compact-form input[type="url"],
.match-compact-form textarea,
.match-compact-form select,
.match-compact-form-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    transition: var(--match-transition);
    background-color: var(--match-bg-white);
}

.match-compact-form select,
.match-compact-form-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.match-compact-form input:focus,
.match-compact-form textarea:focus {
    outline: none;
    border-color: var(--match-primary);
    box-shadow: 0 0 0 3px rgba(60, 97, 197, 0.1);
}

.match-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.match-form-col {
    flex: 1;
}

.match-form-col-small {
    flex: 0 0 120px;
}

.match-form-group-compact {
    margin-bottom: 16px;
}

.match-checkbox-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.match-checkbox-inline label {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.match-checkbox-inline input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    cursor: pointer;
}

.match-btn-select {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: var(--match-bg-white);
    border: 1px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--match-transition);
}

.match-btn-select:hover {
    border-color: var(--match-primary);
    background: var(--match-hover);
}

.match-tags-display {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.match-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #28a745;
    color: white;
    border-radius: 16px;
    font-size: 13px;
}

.match-tag-remove {
    cursor: pointer;
    font-weight: 600;
}

.match-form-actions-compact {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--match-border-light);
    display: flex;
    justify-content: flex-end;
}

/* Sticky save button at bottom of viewport */
.match-sticky-save {
    position: sticky;
    bottom: 0;
    background: var(--match-bg-white, #ffffff);
    padding: 16px 0;
    margin-top: 32px;
    border-top: 1px solid var(--match-border-light, #e0e0e0);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.match-sticky-save button {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

/* Modal for selecting certifications/registries */
.match-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.match-selection-modal-content {
    background: white;
    border-radius: var(--match-radius);
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.match-selection-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.match-selection-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.match-selection-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--match-text-secondary);
}

.match-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.match-selection-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--match-border);
    border-radius: var(--match-radius-sm);
    cursor: pointer;
    transition: var(--match-transition);
}

.match-selection-item:hover {
    background: var(--match-hover);
    border-color: var(--match-primary);
}

.match-selection-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    cursor: pointer;
}

.match-selection-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--match-border-light);
}

.match-shadow {
    box-shadow: var(--match-shadow);
}

.match-shadow-hover {
    box-shadow: var(--match-shadow-hover);
}

/* ============================================
   PREMIUM PROFILE TRUST PANEL
   ============================================ */

.match-profile-header-card {
    background-color: var(--match-bg-white);
    border-radius: var(--match-radius);
    box-shadow: var(--match-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.match-profile-banner {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    position: relative;
}

.match-profile-info-section {
    padding: 0 32px 24px 32px;
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

/* Two-column header row: left (profile info) + right (badges) */
.match-profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 20px;
}

.match-profile-left {
    display: flex;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

/* Right side: Badges container */
.match-profile-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.match-profile-badges-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    margin-top: -3px; /* Raise badges up slightly to align with breeds/location row */
}

/* Divider between header and credentials */
.match-profile-divider {
    width: 100%;
    height: 1px;
    background-color: var(--match-border-light);
    margin: 20px 0;
}

.match-profile-trust-panel {
    width: 100%;
}

.match-profile-avatar-wrapper {
    flex-shrink: 0;
}

.match-profile-avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--match-bg-white);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: var(--match-bg-white);
}

.match-profile-header-content {
    flex: 1;
    min-width: 0;
}

.match-profile-name-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.match-profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--match-text-primary);
    letter-spacing: -0.5px;
}

.match-profile-handle {
    font-size: 15px;
    color: var(--match-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.match-profile-meta {
    margin-bottom: 12px;
}

.match-profile-meta-item {
    font-size: 15px;
    color: var(--match-text-secondary);
    font-weight: 500;
}

.match-profile-details-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.match-profile-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--match-text-secondary);
}

.match-profile-detail i {
    color: var(--match-text-muted);
    font-size: 14px;
}

/* Premium Trust Panel */
.match-profile-trust-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--match-border-light);
    border-radius: var(--match-radius-sm);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 320px;
    max-width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.match-trust-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    width: 100%;
}

.match-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px; /* Slightly reduced height (1px top/bottom instead of 2px) */
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    line-height: 1.2;
    transition: var(--match-transition);
    margin-right: 5px; /* Small right margin between badges */
}

.match-trust-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-badge-verified {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    cursor: help;
}

.match-badge-verified i {
    font-size: 10px;
}

.match-badge-founding {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.match-badge-founding i {
    font-size: 10px;
    color: #ff6b00;
}

/* Registries Section */
.match-registries-section {
    margin-bottom: 16px;
}

.match-section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--match-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.match-registry-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Removed duplicate .match-registry-badge definition - using the one that inherits from .match-credential-badge */

/* Certifications Section */
.match-certifications-section {
    margin-bottom: 16px;
}

.match-certification-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.match-cert-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: #ffffff;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
    transition: var(--match-transition);
}

.match-cert-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.match-view-all-link {
    color: var(--match-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 18px;
    background: rgba(60, 97, 197, 0.1);
    transition: var(--match-transition);
}

.match-view-all-link:hover {
    background: rgba(60, 97, 197, 0.2);
    color: var(--match-primary-dark);
}

/* Trust Statement */
.match-trust-statement {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--match-border-light);
}

.match-trust-statement small {
    font-size: 11px;
    color: var(--match-text-muted);
    line-height: 1.5;
    font-style: italic;
}

/* All Certifications Section */
.match-all-certifications {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-cert-species-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-cert-species-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--match-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-cert-pills-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .match-profile-header-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .match-profile-left {
        width: 100%;
    }
    
    .match-profile-header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .match-profile-badges-container {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .match-profile-trust-panel {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .match-profile-info-section {
        padding: 0 20px 24px 20px;
    }
    
    .match-profile-avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .match-profile-name {
        font-size: 24px;
    }
    
    .match-profile-trust-panel {
        padding: 16px;
    }
    
    .match-trust-badges-row {
        gap: 8px;
    }
    
    .match-trust-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Studio Sidebar Quick Create Buttons */
.menu-item button[style*="background: #3c61c5"],
.menu-item button[style*="background: #28a745"] {
    width: 100%;
    transition: all 0.2s ease;
}

.menu-item button[style*="background: #3c61c5"]:hover {
    background: #2d4fa3 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(60, 97, 197, 0.3);
}

.menu-item button[style*="background: #28a745"]:hover {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* ============================================
   STUDIO-STYLE PROFILE PAGE (Clean White Layout)
   ============================================ */
   
/* Studio-Style Profile Page */
.match-profile-studio-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.match-profile-studio-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.match-profile-studio-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-studio-info {
    position: absolute;
    bottom: -60px;
    left: 2rem;
    z-index: 10;
}

.match-profile-studio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.match-profile-studio-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-studio-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.match-profile-studio-avatar-placeholder i {
    font-size: 36px;
}

.match-profile-studio-details {
    padding: 4rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.match-profile-studio-left {
    flex: 1;
    min-width: 300px;
}

.match-profile-studio-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.match-profile-studio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.match-profile-studio-breed,
.match-profile-studio-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-profile-studio-breed i,
.match-profile-studio-location i {
    width: 16px;
    text-align: center;
}

.match-profile-studio-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.match-profile-studio-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.match-profile-studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.match-profile-studio-badge-verified {
    background: #10b981;
    color: white;
}

.match-profile-studio-badge-founding {
    background: #f59e0b;
    color: white;
}

.match-profile-studio-credentials {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.match-profile-studio-registries h4,
.match-profile-studio-certifications h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-profile-studio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.match-profile-studio-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-profile-studio-tag-registry {
    background: #dbeafe;
    color: #1d4ed8;
}

.match-profile-studio-tag-cert {
    background: #d1fae5;
    color: #065f46;
}

.match-profile-studio-tag-cert:hover {
    background: #a7f3d0;
    transform: translateY(-1px);
}

/* Content Grid */
.match-profile-studio-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.match-profile-studio-main {
    min-width: 0;
}

.match-profile-studio-sidebar {
    min-width: 0;
}

.match-profile-studio-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.match-profile-studio-card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.match-profile-studio-card-header h2,
.match-profile-studio-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-profile-studio-card-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.match-profile-studio-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

.match-profile-studio-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.match-profile-studio-empty p {
    font-size: 1rem;
    margin: 0;
}

.match-profile-studio-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.match-profile-studio-contact-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #6b7280;
}

.match-profile-studio-contact-item a {
    color: #3b82f6;
    text-decoration: none;
}

.match-profile-studio-contact-item a:hover {
    text-decoration: underline;
}

.match-profile-studio-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-profile-studio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.match-profile-studio-btn-primary {
    background: #3b82f6;
    color: white;
}

.match-profile-studio-btn-primary:hover {
    background: #2563eb;
}

.match-profile-studio-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.match-profile-studio-btn-secondary:hover {
    background: #e9ecef;
}

.match-profile-studio-specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.match-profile-studio-specialty-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Recent Posts Styling */
.match-profile-studio-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-profile-studio-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.match-profile-studio-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.match-profile-studio-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-profile-studio-post-content {
    flex: 1;
    min-width: 0;
}

.match-profile-studio-post-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.match-profile-studio-post-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.match-profile-studio-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.match-profile-studio-post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.match-profile-studio-post-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.match-profile-studio-post-stats i {
    margin-right: 0.25rem;
}

/* ============================================
   PETPORTAL STYLES
   ============================================ */

/* Companions Grid */
.petportal-companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.petportal-companion-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.petportal-companion-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.petportal-companion-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.petportal-companion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petportal-companion-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.petportal-companion-placeholder i {
    font-size: 3rem;
}

.petportal-companion-info {
    padding: 1.25rem;
}

.petportal-companion-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.petportal-companion-breed {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.petportal-companion-breeder {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.petportal-companion-actions {
    display: flex;
    gap: 0.5rem;
}

/* PetPortal Buttons */
.petportal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.petportal-btn-primary {
    background: #3b82f6;
    color: white;
}

.petportal-btn-primary:hover {
    background: #2563eb;
}

.petportal-btn-block {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.petportal-btn-block:hover {
    background: #e5e7eb;
}

/* Quick Actions */
.petportal-quick-actions {
    display: flex;
    flex-direction: column;
}

/* Portal Features */
.petportal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.petportal-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.petportal-feature i {
    width: 20px;
    text-align: center;
    color: #3b82f6;
    margin-top: 0.25rem;
}

.petportal-feature div {
    flex: 1;
}

.petportal-feature strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.petportal-feature p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .petportal-companions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .petportal-companion-image {
        height: 140px;
    }
    
    .petportal-companion-info {
        padding: 1rem;
    }
}

/* Demo Mode Styles */
.petportal-demo-card {
    position: relative;
    opacity: 0.8;
}

.petportal-demo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.petportal-demo-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.petportal-demo-overlay span {
    font-size: 0.875rem;
    font-weight: 600;
}

.petportal-btn-demo {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
    border: none !important;
}

.petportal-btn-demo:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Demo Placeholder Sections */
.petportal-demo-section {
    position: relative;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.petportal-demo-overlay-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

/* Activity Items */
.petportal-activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.petportal-activity-item:last-child {
    border-bottom: none;
}

.petportal-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.petportal-activity-content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.petportal-activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.petportal-activity-content small {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Demo Table */
.petportal-demo-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.petportal-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.petportal-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.85rem;
}

.petportal-table-row:last-child {
    border-bottom: none;
}

/* Contracts Grid */
.petportal-contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.petportal-contract-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.petportal-contract-header {
    padding: 0.75rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.petportal-contract-content {
    padding: 1rem;
}

.petportal-contract-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.petportal-contract-content p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.petportal-contract-status {
    margin: 0.75rem 0;
}

.petportal-contract-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Payments Grid */
.petportal-payments-grid {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.petportal-section-header {
    padding: 0.75rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.petportal-payment-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.petportal-payment-item:last-child {
    border-bottom: none;
}

.petportal-payment-details {
    font-size: 0.85rem;
    line-height: 1.4;
}

.petportal-payment-status {
    text-align: center;
}

.petportal-payment-status span {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.petportal-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.petportal-btn-small {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

/* Media Grid */
.petportal-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.petportal-media-item {
    text-align: center;
}

.petportal-media-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.petportal-media-placeholder i {
    font-size: 2rem;
    color: #6c757d;
}

.petportal-media-placeholder span {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.petportal-media-item small {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .petportal-table-header,
    .petportal-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .petportal-payment-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .petportal-contracts-grid {
        grid-template-columns: 1fr;
    }
    
    .petportal-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FAVORITES PAGE STYLES
   ============================================ */

.match-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.match-favorite-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.match-favorite-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.match-favorite-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.match-favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-favorite-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.match-favorite-placeholder i {
    font-size: 4rem;
}

.match-favorite-info {
    padding: 1.25rem;
}

.match-favorite-info h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.match-favorite-location {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-favorite-date {
    margin: 0 0 1.25rem 0;
    font-size: 0.85rem;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-favorite-actions {
    display: flex;
    gap: 0.75rem;
}

.match-favorite-actions .petportal-btn {
    flex: 1;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .match-favorites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-favorite-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .match-profile-studio-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-profile-studio-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .match-profile-studio-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .match-profile-studio-badges {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .match-profile-studio-credentials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .match-profile-studio-name {
        font-size: 1.5rem;
    }
    
    .match-profile-studio-info {
        left: 1rem;
    }
    
    .match-profile-studio-details {
        padding: 4rem 1rem 1.5rem 1rem;
    }
    
    .match-profile-studio-credentials {
        padding: 0 1rem 2rem 1rem;
    }
    
    .match-profile-studio-post {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .match-profile-studio-post-image {
        width: 100%;
        height: 120px;
    }
}

/* Post Image Preview */
.match-post-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.match-post-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.match-post-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 300px;
}

.match-post-image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.match-post-image-item:hover .match-post-image-actions {
    opacity: 1;
}

.match-post-image-edit,
.match-post-image-remove {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.match-post-image-edit:hover {
    background: white;
    transform: translateY(-1px);
}

.match-post-image-remove {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-post-image-remove:hover {
    background: #dc3545;
}

/* Image Editor Modal */
.match-image-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-image-editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.match-image-editor-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.match-image-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #333;
}

.match-image-editor-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.match-image-editor-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.match-image-editor-close:hover {
    background: #333;
}

.match-image-editor-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.match-image-editor-sidebar {
    width: 200px;
    border-right: 1px solid #333;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-editor-option {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-editor-option:hover {
    background: #2a2a2a;
    border-color: #3c61c5;
    color: white;
}

.match-editor-option.active {
    background: #3c61c5;
    border-color: #3c61c5;
    color: white;
}

.match-editor-option i {
    width: 20px;
    text-align: center;
}

.match-image-editor-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
}

.match-image-editor-canvas-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#match-editor-canvas {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid #333;
    border-radius: 8px;
}

#match-editor-text-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

#match-editor-text-input {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #3c61c5;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    min-width: 200px;
}

#match-editor-text-input:focus {
    outline: none;
    border-color: #5a7dd4;
}

.match-image-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #333;
}

.match-editor-btn-cancel,
.match-editor-btn-save {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.match-editor-btn-cancel {
    background: #333;
    color: white;
}

.match-editor-btn-cancel:hover {
    background: #444;
}

.match-editor-btn-save {
    background: #3c61c5;
    color: white;
}

.match-editor-btn-save:hover {
    background: #2d4fa3;
}

/* Dashboard Stats Section */
.match-studio-dashboard {
    background: white;
    border-radius: var(--match-radius, 12px);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--match-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.match-dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.match-stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.match-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3c61c5;
}

.match-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.match-stat-content {
    flex-grow: 1;
}

.match-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.match-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.match-stat-link {
    color: #999;
    font-size: 16px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.match-stat-card:hover .match-stat-link {
    color: #3c61c5;
}

.match-dashboard-quick-actions {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.match-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.match-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.match-quick-action-btn:hover {
    background: #3c61c5;
    color: white;
    border-color: #3c61c5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(60, 97, 197, 0.2);
}

.match-quick-action-btn i {
    font-size: 16px;
}

/* Floating Action Button (Mobile) */
.match-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: none; /* Hidden on desktop */
}

.match-fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3c61c5;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(60, 97, 197, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.match-fab-main:hover {
    background: #2d4fa3;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(60, 97, 197, 0.5);
}

.match-fab-main:active {
    transform: scale(0.95);
}

.match-fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
    animation: fabMenuSlideUp 0.3s ease;
    z-index: 1002;
}

@keyframes fabMenuSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1003;
}

.match-fab-toggle-item {
    cursor: default;
}

.match-fab-toggle-item:hover {
    transform: none;
}

.match-fab-item:hover {
    background: #f8f9fa;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.match-fab-item i {
    font-size: 18px;
    color: #3c61c5;
    width: 20px;
    text-align: center;
}

.match-fab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: none;
}

/* Show FAB only on mobile */
@media (max-width: 768px) {
    .match-fab {
        display: block;
    }
    
    /* Improve mobile visibility */
    .match-fab-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .match-fab-menu {
        min-width: 200px;
        gap: 16px;
        bottom: 80px;
    }
    
    .match-fab-item {
        padding: 16px 20px;
        font-size: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
        border: 2px solid rgba(60, 97, 197, 0.1);
    }
    
    .match-fab-item i {
        font-size: 20px;
    }
    
    /* Mobile-specific modal adjustments */
    .match-slide-in-modal {
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        top: 0 !important;
        height: 100vh !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }

    .match-slide-in-modal.active {
        display: block !important;
        transform: translateX(0) !important;
    }
    
    /* Messages modal mobile layout */
    .match-messages-slide-modal {
        left: 0 !important;
        width: 100vw !important;
        top: 0 !important;
        height: 100vh !important;
    }
    
    #messages-modal-conversations-panel {
        width: 100% !important;
    }
    
    #messages-modal-chat {
        display: none !important;
    }
    
    /* When viewing a conversation on mobile, hide conversation list */
    #match-messages-modal.viewing-conversation #messages-modal-conversations-panel {
        display: none !important;
    }
    
    #match-messages-modal.viewing-conversation #messages-modal-chat {
        display: flex !important;
        width: 100% !important;
    }
    
    #match-messages-modal.viewing-conversation #messages-modal-divider {
        display: none !important;
    }
    
    /* Ensure menu button is visible and accessible on mobile */
    .button-menu-mobile {
        display: block !important;
        z-index: 1001 !important;
    }
    
    /* Make hamburger menu more prominent on mobile */
   
    
    .button-menu-mobile {
        padding: 8px;
        cursor: pointer;
    }
    
    /* Adjust FAB position to not overlap with other mobile controls */
    .match-fab {
        bottom: 20px;
        right: 20px;
    }
    
    .match-fab-main {
        box-shadow: 0 6px 20px rgba(60, 97, 197, 0.5);
    }
}

/* Smaller phones (Galaxy S8, iPhone SE, etc.) - move FAB higher */
@media (max-width: 400px) {
    .match-fab {
        bottom: 180px !important;
        right: 16px !important;
    }
    
    .match-fab-main {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .match-fab-menu {
        bottom: 65px !important;
    }
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .match-dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .match-stat-card {
        padding: 12px;
    }
    
    .match-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .match-stat-value {
        font-size: 20px;
    }
    
    .match-stat-label {
        font-size: 12px;
    }
    
    .match-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .match-quick-action-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Galaxy Fold and narrow phones (480px and below) */
@media (max-width: 480px) {
    .match-discovery-container {
        padding: 0 8px;
    }

    .match-hero-section {
        padding: 24px 0;
    }

    .match-hero-title {
        font-size: 1.8rem;
    }

    .match-hero-subtitle {
        font-size: 0.9rem;
    }

    .match-companions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-companion-card {
        padding: 12px;
    }

    .match-nav-inner {
        padding: 0 8px;
    }

    .match-nav-links {
        gap: 4px;
    }

    .match-nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .match-profile-container {
        padding: 0 8px;
    }

    .match-profile-header {
        padding: 16px 12px;
    }

    .match-profile-info-section,
    .match-profile-section {
        padding: 16px 12px;
    }

    .match-profile-tabs {
        padding: 0 8px;
    }

    .match-profile-tab {
        padding: 10px 8px;
        font-size: 13px;
    }

    .match-auth-container {
        padding: 0 8px;
    }

    .match-auth-card {
        padding: 24px 16px;
    }

    .match-messages-container {
        padding: 0 8px;
    }

    .match-feed-container {
        padding: 0 8px;
    }

    .match-post-card {
        padding: 16px 12px;
    }

    .match-search-container {
        padding: 0 8px;
    }

    .match-search-input {
        font-size: 14px;
    }

    .match-species-tabs {
        gap: 4px;
    }

    .match-species-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .match-dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .match-quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .match-section-title {
        font-size: 1.3rem;
    }
}
