/**
 * Dating Core - Comprehensive Fixes
 * 
 * Fixes for:
 * - Anchor text underlines
 * - Menu bar visibility on messages page
 * - Real-time notification styles
 * - Filter panel improvements
 */

/* ============================================
   FIX #1: Remove underlines from navigation links
   ============================================ */
.site-header a,
.main-navigation a,
.site-branding a,
.dc-nav a,
.dc-tab-nav a,
.dc-menu a,
.dc-header a,
#site-navigation a,
nav a,
header a {
    text-decoration: none !important;
}

/* WordPress theme navigation fixes */
.entry-title a,
.entry-header a,
.menu-item a,
.nav-menu a,
.primary-menu a,
.main-menu a {
    text-decoration: none !important;
}

/* Hover state - subtle underline if needed */
.site-header a:hover,
.main-navigation a:hover {
    text-decoration: none !important;
    opacity: 0.8;
}

/* Dating plugin internal links */
.dc-section-link:hover {
    text-decoration: none !important;
    opacity: 0.9;
}

/* ============================================
   FIX: Page Navigation Tabs - Remove underlines
   ============================================ */
.dc-page-nav a,
.dc-page-nav-item,
.dc-page-nav-item:hover,
.dc-page-nav-item:focus,
.dc-page-nav-item:active,
.dc-page-nav-item.active {
    text-decoration: none !important;
}

/* Ensure no underline on tab text */
.dc-page-nav-item span {
    text-decoration: none !important;
}

/* Remove underline from dashicons in tabs */
.dc-page-nav-item .dashicons {
    text-decoration: none !important;
}

/* ============================================
   FIX: Profile & Matches Container Max Width
   ============================================ */
.dc-profile-edit-container,
.dc-profile-view-container,
.dc-profile-page-wrapper,
.dc-matches-container,
.dc-discover-container,
.dc-messages-container,
.dating-core-profile-edit {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Website Mode - Remove mobile app feel */
.dc-website-mode {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px;
}

/* Ensure proper page container width */
.dc-app.dc-website-mode {
    max-width: 1100px !important;
}

/* ============================================
   FIX: Hide WordPress Page Titles for Dating Pages
   ============================================ */
body.page .entry-title,
body.page .page-title,
body.page header.entry-header,
body.page .entry-header,
body.page article > header,
body.page-template-default .page-title,
body.page-template-default .entry-title,
body.page-template-default header.entry-header {
    display: none !important;
}

/* Hide title only when dc-app or dc-page-nav is present */
body.page .dc-app ~ .entry-title,
body.page .dc-page-nav ~ .entry-title,
.dc-website-mode ~ .entry-title,
.dc-profile-page-wrapper ~ .entry-title {
    display: none !important;
}

/* ============================================
   FIX #2: Menu bar visibility on messages page
   ============================================ */
body.page-template-messages .site-header,
body.page-template-messages .main-navigation,
body.page-template-messages #masthead,
body.page-template-messages header.site-header,
.dc-messages-page .site-header,
.dc-messages-page .main-navigation {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Ensure header doesn't get hidden by chat CSS */
.dc-chat-container ~ .site-header,
.dc-messages-container ~ .site-header {
    display: block !important;
}

/* Better mobile menu on messages page */
@media (max-width: 768px) {
    .dc-messages-page .site-header {
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
    }
}

/* ============================================
   FIX #3: Real-time notification styles
   ============================================ */
/* Notification bell with pulse animation */
.dc-notification-bell {
    position: relative;
    cursor: pointer;
}

.dc-notification-bell.has-notifications::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #e91e63;
    border-radius: 50%;
    animation: dc-pulse 2s infinite;
}

@keyframes dc-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Notification badge counter */
.dc-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    animation: dc-badge-pop 0.3s ease;
}

@keyframes dc-badge-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Real-time notification toast */
.dc-realtime-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 100000;
    animation: dc-slide-in 0.4s ease;
    border-left: 4px solid #e91e63;
}

@keyframes dc-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dc-realtime-notification .dc-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-realtime-notification .dc-notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e63;
}

.dc-realtime-notification .dc-notification-text {
    flex: 1;
}

.dc-realtime-notification .dc-notification-title {
    font-weight: 700;
    color: #212121;
    font-size: 14px;
    margin: 0 0 4px;
}

.dc-realtime-notification .dc-notification-message {
    color: #757575;
    font-size: 13px;
    margin: 0;
}

.dc-realtime-notification .dc-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 4px;
}

.dc-realtime-notification .dc-notification-close:hover {
    color: #616161;
}

/* Like notification special style */
.dc-realtime-notification.dc-like-notification {
    border-left-color: #ff5722;
}

.dc-realtime-notification.dc-match-notification {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, #fff 0%, #e8f5e9 100%);
}

/* ============================================
   FIX #4: Suggested users in messages
   ============================================ */
.dc-suggested-matches {
    padding: 16px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-radius: 12px;
    margin: 12px;
}

.dc-suggested-matches h4 {
    font-size: 14px;
    font-weight: 700;
    color: #c2185b;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-suggested-matches h4::before {
    content: '💕';
}

.dc-suggested-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.dc-suggested-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    cursor: pointer;
    flex-shrink: 0;
}

.dc-suggested-user img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e63;
    transition: transform 0.2s ease;
}

.dc-suggested-user:hover img {
    transform: scale(1.1);
}

.dc-suggested-user span {
    font-size: 12px;
    color: #c2185b;
    font-weight: 600;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   FIX #5: Filter panel improvements
   ============================================ */
.dc-filter-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 320px;
    display: none;
}

.dc-filter-panel.active {
    display: block;
    animation: dc-fade-in 0.3s ease;
}

@keyframes dc-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dc-filter-group {
    margin-bottom: 20px;
}

.dc-filter-group label {
    display: block;
    font-weight: 600;
    color: #424242;
    margin-bottom: 8px;
    font-size: 14px;
}

.dc-filter-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.dc-filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.dc-filter-buttons {
    display: flex;
    gap: 12px;
}

.dc-filter-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dc-filter-btn-primary {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    border: none;
}

.dc-filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.dc-filter-btn-secondary {
    background: #f5f5f5;
    color: #616161;
    border: none;
}

.dc-filter-btn-secondary:hover {
    background: #eeeeee;
}

/* ============================================
   FIX #6: General UI improvements
   ============================================ */
/* Better focus states */
*:focus {
    outline: 2px solid rgba(233, 30, 99, 0.3);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better button transitions */
button, .btn, [role="button"] {
    transition: all 0.2s ease;
}

/* Fix z-index issues */
.dc-modal {
    z-index: 100001 !important;
}

.dc-toast {
    z-index: 100002 !important;
}

/* ============================================
   FIX #7: Mobile responsiveness
   ============================================ */
@media (max-width: 768px) {
    .dc-realtime-notification {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .dc-suggested-matches {
        margin: 8px;
        padding: 12px;
    }
    
    .dc-filter-panel {
        left: 10px;
        right: 10px;
        transform: none;
        min-width: auto;
    }
}

/* ============================================
   FIX #8: Match Modal Premium Styling
   ============================================ */
.dc-match-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
}

.dc-match-modal.dc-show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-match-modal .dc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.dc-match-content {
    position: relative;
    background: linear-gradient(180deg, #e91e63 0%, #c2185b 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: dc-match-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dc-match-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.dc-match-title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dc-match-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 24px;
}

.dc-match-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.dc-match-photo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dc-match-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-match-heart {
    animation: dc-heart-pulse 1s ease infinite;
}

@keyframes dc-heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.dc-match-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-match-actions .dc-btn-primary {
    background: #fff;
    color: #e91e63;
    border: none;
    font-weight: 700;
}

.dc-match-actions .dc-btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.dc-match-actions .dc-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Confetti effect */
.dc-match-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.dc-match-confetti.dc-active::before,
.dc-match-confetti.dc-active::after {
    content: '🎉✨💕🎊❤️💖';
    position: absolute;
    font-size: 24px;
    animation: dc-confetti-fall 2s ease-out forwards;
}

.dc-match-confetti.dc-active::before {
    left: 10%;
    animation-delay: 0s;
}

.dc-match-confetti.dc-active::after {
    right: 10%;
    animation-delay: 0.3s;
}

@keyframes dc-confetti-fall {
    0% {
        top: -20px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ============================================
   FIX #9: Like Badge on Cards
   ============================================ */
.dc-liked-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.4);
    animation: dc-liked-bounce 0.5s ease;
}

@keyframes dc-liked-bounce {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.dc-liked-badge svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   FIX #10: Toast Notification Styling
   ============================================ */
.dc-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100003;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dc-toast.dc-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dc-toast-success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.dc-toast-error {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.dc-toast-info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.dc-toast-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.dc-toast-icon {
    font-size: 18px;
}

/* ============================================
   FIX #11: New Match Badge in List
   ============================================ */
.dc-match-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.dc-match-item:hover {
    transform: scale(1.05);
}

.dc-match-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e91e63;
    margin-bottom: 8px;
}

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

.dc-new-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}

.dc-match-name {
    font-size: 12px;
    color: #424242;
    font-weight: 600;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-new-match {
    animation: dc-new-match 0.5s ease;
}

@keyframes dc-new-match {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ============================================
   FIX #12: Z-Index Hierarchy
   ============================================ */
.dc-modal-backdrop { z-index: 99998 !important; }
.dc-modal { z-index: 99999 !important; }
.dc-match-modal { z-index: 100000 !important; }
.dc-realtime-notification { z-index: 100001 !important; }
.dc-toast { z-index: 100003 !important; }
#wpadminbar { z-index: 99997 !important; }

/* ============================================
   FIX #13: Header/Menu Always Visible
   ============================================ */
.site-header,
#masthead,
header.site-header {
    position: relative !important;
    z-index: 1000 !important;
}

/* Ensure content doesn't overlap header */
.dc-app,
.dc-discover-container,
.dc-messages-container,
.dc-profile-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   FIX #14: Button Disabled State
   ============================================ */
.dc-like-btn:disabled,
.dc-super-like-btn:disabled,
.dc-skip-btn:disabled,
.dc-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   FIX #15: Premium Action Buttons
   ============================================ */
.dc-action-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-action-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.dc-action-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.dc-like-btn,
#dc-like-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.dc-super-like-btn,
#dc-super-like-btn {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.dc-skip-btn,
#dc-skip-btn {
    background: linear-gradient(135deg, #f44336, #c62828) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* ============================================
   FIX #16: Hide WordPress Theme Navigation on Plugin Pages
   ============================================ */
/* When on plugin pages with dc-page-nav, hide the theme navigation */
body.page-template-default .main-navigation,
body.page .site-header .main-navigation {
    /* Keep visible but can be hidden per page */
}

/* Hide theme menu items that duplicate plugin pages */
.main-navigation .menu-item-type-post_type[class*="discover"] a,
.main-navigation .menu-item-type-post_type[class*="matches"] a,
.main-navigation .menu-item-type-post_type[class*="messages"] a,
.main-navigation .menu-item-type-post_type[class*="profile"] a,
.main-navigation .menu-item-type-post_type[class*="login"] a,
.main-navigation .menu-item-type-post_type[class*="register"] a,
.main-navigation .menu-item-type-post_type[class*="video-call"] a,
.main-navigation .menu-item-type-post_type[class*="random-chat"] a {
    /* Could be hidden if needed */
}

/* ============================================
   FIX #17: Hide Empty/Error States by Default
   ============================================ */
/* Hide empty/error/loading states by default - they should be shown via JS */
.dc-empty-state,
.dc-error-state,
.dc-loading-state,
.dc-no-results,
.dc-no-profiles,
[class*="dc-no-more"],
[class*="dc-something-wrong"] {
    display: none;
}

/* Show only when active class is added */
.dc-empty-state.dc-show,
.dc-empty-state.active,
.dc-error-state.dc-show,
.dc-error-state.active,
.dc-loading-state.dc-show,
.dc-loading-state.active {
    display: flex;
}

/* ============================================
   FIX #18: Hide Modals by Default
   ============================================ */
/* All modals should be hidden by default */
.dc-match-modal,
.dc-verification-modal,
.dc-email-modal,
.dc-profile-modal,
.dc-filter-modal,
[class*="-modal"]:not(.dc-video-modal),
[id*="-modal"] {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

/* Show modals when active */
.dc-match-modal.dc-show,
.dc-match-modal.active,
.dc-verification-modal.dc-show,
.dc-verification-modal.active,
.dc-email-modal.dc-show,
.dc-email-modal.active,
.dc-profile-modal.dc-show,
.dc-profile-modal.active,
[class*="-modal"].dc-show,
[class*="-modal"].active,
[class*="-modal"].is-open,
[id*="-modal"].dc-show,
[id*="-modal"].active,
[id*="-modal"].is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Premium modal specific - just ensure visibility when open */
.dc-premium-modal.is-open,
#dc-profile-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Premium modal structure when open */
#dc-profile-modal.is-open .dc-premium-modal-backdrop {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 1 !important;
}

#dc-profile-modal.is-open .dc-premium-modal-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 95% !important;
    max-width: 1000px !important;
    max-height: 90vh !important;
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5) !important;
}

#dc-profile-modal.is-open .dc-premium-modal-content {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

#dc-profile-modal.is-open .dc-premium-modal-left {
    display: flex !important;
    flex-direction: column !important;
    width: 50% !important;
    min-height: 500px !important;
    background: #1a1a2e !important;
    position: relative !important;
}

#dc-profile-modal.is-open .dc-premium-modal-right {
    display: block !important;
    width: 50% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 30px !important;
}

#dc-profile-modal.is-open .dc-premium-gallery {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    position: relative !important;
}

#dc-profile-modal.is-open .dc-premium-gallery-main {
    flex: 1 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #0d0d1a !important;
}

#dc-profile-modal.is-open .dc-premium-gallery-main img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Action buttons at bottom of left column */
#dc-profile-modal.is-open .dc-premium-modal-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
}

/* Skip button (X) */
#dc-profile-modal.is-open .dc-premium-action-skip {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 3px solid #ff6b6b !important;
    cursor: pointer !important;
    background: rgba(255,107,107,0.2) !important;
    color: #ff6b6b !important;
    transition: all 0.3s ease !important;
}

#dc-profile-modal.is-open .dc-premium-action-skip:hover {
    background: #ff6b6b !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Super Like button (Star) */
#dc-profile-modal.is-open .dc-premium-action-super {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 3px solid #4dabf7 !important;
    cursor: pointer !important;
    background: rgba(77,171,247,0.2) !important;
    color: #4dabf7 !important;
    transition: all 0.3s ease !important;
}

#dc-profile-modal.is-open .dc-premium-action-super:hover {
    background: #4dabf7 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Like button (Heart) */
#dc-profile-modal.is-open .dc-premium-action-like {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 3px solid #51cf66 !important;
    cursor: pointer !important;
    background: rgba(81,207,102,0.2) !important;
    color: #51cf66 !important;
    transition: all 0.3s ease !important;
}

#dc-profile-modal.is-open .dc-premium-action-like:hover {
    background: #51cf66 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Close button */
#dc-profile-modal.is-open .dc-premium-modal-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 100 !important;
    align-items: center !important;
    justify-content: center !important;
}

#dc-profile-modal.is-open .dc-premium-modal-close:hover {
    background: rgba(0,0,0,0.8) !important;
}

/* Profile info sections */
#dc-profile-modal.is-open .dc-premium-profile-header {
    margin-bottom: 20px !important;
}

#dc-profile-modal.is-open .dc-premium-profile-name {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 10px !important;
}

#dc-profile-modal.is-open .dc-premium-profile-meta {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    color: #666 !important;
    font-size: 14px !important;
}

#dc-profile-modal.is-open .dc-premium-profile-section {
    margin-bottom: 25px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
}

#dc-profile-modal.is-open .dc-premium-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
}

#dc-profile-modal.is-open .dc-premium-profile-bio {
    color: #555 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

#dc-profile-modal.is-open .dc-premium-profile-interests {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#dc-profile-modal.is-open .dc-interest-tag {
    display: inline-block !important;
    background: linear-gradient(135deg, #e91e63, #f06292) !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#dc-profile-modal.is-open .dc-premium-profile-details {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

#dc-profile-modal.is-open .dc-premium-detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#dc-profile-modal.is-open .dc-premium-detail-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border-radius: 10px !important;
    color: #e91e63 !important;
}

#dc-profile-modal.is-open .dc-premium-detail-icon svg {
    width: 18px !important;
    height: 18px !important;
}

#dc-profile-modal.is-open .dc-premium-detail-content {
    display: flex !important;
    flex-direction: column !important;
}

#dc-profile-modal.is-open .dc-premium-detail-label {
    font-size: 12px !important;
    color: #999 !important;
}

#dc-profile-modal.is-open .dc-premium-detail-value {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #dc-profile-modal.is-open .dc-premium-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
    
    #dc-profile-modal.is-open .dc-premium-modal-content {
        flex-direction: column !important;
    }
    
    #dc-profile-modal.is-open .dc-premium-modal-left,
    #dc-profile-modal.is-open .dc-premium-modal-right {
        width: 100% !important;
    }
    
    #dc-profile-modal.is-open .dc-premium-modal-left {
        min-height: 350px !important;
        max-height: 50vh !important;
    }
    
    #dc-profile-modal.is-open .dc-premium-modal-right {
        max-height: 50vh !important;
        padding: 20px !important;
    }
    
    #dc-profile-modal.is-open .dc-premium-profile-details {
        grid-template-columns: 1fr !important;
    }
}

/* Video call modal has different behavior */
.dc-video-modal {
    display: block;
}

/* ============================================
   FIX #19: Match Modal Name Placeholder
   ============================================ */
/* Ensure the span doesn't show raw HTML */
#dc-match-name:empty::before {
    content: "Someone special";
}

/* ============================================
   FIX #20: Fix Login Page Email Verification Modal
   ============================================ */
/* Hide email verification modal by default on login page */
.dc-login-container .dc-verification-modal,
.dc-login-form ~ .dc-verification-modal,
.dc-login-wrap .dc-verification-modal,
[class*="login"] .dc-verification-modal,
body.page-template-default .dc-verification-modal:not(.dc-show) {
    display: none !important;
}

/* ============================================
   FIX #21: Better Card Stack Visibility
   ============================================ */
/* Ensure only the top cards are visible in stack */
.dc-card-stack .dc-card:nth-child(n+4) {
    display: none;
}

.dc-card-stack .dc-card:nth-child(1) {
    z-index: 3;
    transform: translateY(0) scale(1);
}

.dc-card-stack .dc-card:nth-child(2) {
    z-index: 2;
    transform: translateY(8px) scale(0.96);
    opacity: 0.9;
}

.dc-card-stack .dc-card:nth-child(3) {
    z-index: 1;
    transform: translateY(16px) scale(0.92);
    opacity: 0.8;
}

/* ============================================
   FIX #22: Video Call Page - Partner Required
   ============================================ */
/* Show error when no partner on video call page */
.dc-video-container:not([data-partner]) .dc-video-controls {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   FIX #23: Consistent Box Sizing
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================
   FIX #24: Loading Overlay Default Hidden
   ============================================ */
.dc-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.dc-loading-overlay.dc-show,
.dc-loading-overlay.active {
    display: flex;
}

.dc-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: dc-spin 1s linear infinite;
}

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

/* ============================================
   FIX #25: Ensure Discover Cards Show Content
   ============================================ */
.dc-discover-cards,
.dc-card-stack,
.dc-swipe-cards,
[class*="discover-card"],
[class*="swipe-card"] {
    min-height: 400px;
}

/* Show cards when they have data */
.dc-card[data-user-id],
.dc-profile-card[data-user-id] {
    display: block !important;
}

/* ============================================
   FIX #26: Action Buttons Icon Sizes (IMPORTANT!)
   ============================================ */
/* Main action buttons container */
#dc-action-buttons,
.dc-action-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 0 !important;
}

/* All action buttons base styling */
#dc-action-buttons button,
.dc-action-buttons button,
.dc-action-buttons .dc-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

/* Icon sizing inside action buttons */
#dc-action-buttons button svg,
.dc-action-buttons button svg,
#dc-action-buttons button img,
.dc-action-buttons button img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Rewind button */
#dc-rewind-btn,
.dc-action-btn-rewind,
button[data-action="rewind"] {
    width: 50px !important;
    height: 50px !important;
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
}

#dc-rewind-btn svg,
.dc-action-btn-rewind svg {
    width: 22px !important;
    height: 22px !important;
    color: #9e9e9e !important;
}

#dc-rewind-btn:hover {
    background: #eeeeee !important;
    transform: scale(1.1) !important;
}

/* Skip button (X) */
#dc-skip-btn,
.dc-action-btn-skip,
button[data-action="skip"],
button[data-action="pass"] {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

#dc-skip-btn svg,
.dc-action-btn-skip svg,
button[data-action="skip"] svg,
button[data-action="pass"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #fff !important;
    stroke: #fff !important;
    stroke-width: 3 !important;
}

#dc-skip-btn:hover,
.dc-action-btn-skip:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5) !important;
}

/* Super Like button (Star) */
#dc-super-like-btn,
.dc-action-btn-super,
button[data-action="super-like"],
button[data-action="superlike"] {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%) !important;
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.4) !important;
}

#dc-super-like-btn svg,
.dc-action-btn-super svg,
button[data-action="super-like"] svg {
    width: 24px !important;
    height: 24px !important;
    color: #fff !important;
    fill: #fff !important;
}

#dc-super-like-btn:hover,
.dc-action-btn-super:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 12px 35px rgba(77, 171, 247, 0.5) !important;
}

/* Like button (Heart) */
#dc-like-btn,
.dc-action-btn-like,
button[data-action="like"] {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
    box-shadow: 0 8px 25px rgba(81, 207, 102, 0.4) !important;
}

#dc-like-btn svg,
.dc-action-btn-like svg,
button[data-action="like"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #fff !important;
    fill: #fff !important;
}

#dc-like-btn:hover,
.dc-action-btn-like:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 12px 35px rgba(81, 207, 102, 0.5) !important;
}

/* Boost button */
#dc-boost-btn,
.dc-action-btn-boost,
button[data-action="boost"] {
    width: 50px !important;
    height: 50px !important;
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
}

#dc-boost-btn svg,
.dc-action-btn-boost svg {
    width: 22px !important;
    height: 22px !important;
    color: #9c27b0 !important;
    fill: #9c27b0 !important;
}

#dc-boost-btn:hover {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important;
    border-color: transparent !important;
    transform: scale(1.1) !important;
}

#dc-boost-btn:hover svg {
    color: #fff !important;
    fill: #fff !important;
}

/* Action button image fallback */
#dc-action-buttons button img,
.dc-action-buttons button img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

/* Fix for very small icons */
.dc-action-buttons svg,
#dc-action-buttons svg {
    min-width: 20px !important;
    min-height: 20px !important;
}

/* Active/pressed state */
#dc-action-buttons button:active,
.dc-action-buttons button:active {
    transform: scale(0.95) !important;
}

/* Mobile responsive action buttons */
@media (max-width: 768px) {
    #dc-action-buttons,
    .dc-action-buttons {
        gap: 8px !important;
        padding: 15px 0 !important;
    }
    
    #dc-skip-btn,
    #dc-like-btn,
    .dc-action-btn-skip,
    .dc-action-btn-like {
        width: 55px !important;
        height: 55px !important;
    }
    
    #dc-super-like-btn,
    #dc-rewind-btn,
    #dc-boost-btn,
    .dc-action-btn-super,
    .dc-action-btn-rewind,
    .dc-action-btn-boost {
        width: 45px !important;
        height: 45px !important;
    }
    
    #dc-skip-btn svg,
    #dc-like-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    #dc-super-like-btn svg,
    #dc-rewind-btn svg,
    #dc-boost-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}


