.matchbooks-modal {
    max-width: 650px !important;
    width: 95%;
    max-height: 95vh;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Matchbooks Close Button - Desktop */
.matchbooks-modal .modal-header .close-btn,
#matchbooksModal .modal-header #closeMatchbooksModal {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff5757 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.4), 0 0 20px rgba(255, 87, 87, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 100;
    opacity: 1;
}

.matchbooks-modal .modal-header .close-btn:hover,
#matchbooksModal .modal-header #closeMatchbooksModal:hover {
    background: linear-gradient(135deg, #ff5757 0%, #ff3838 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.6), 0 0 30px rgba(255, 87, 87, 0.5);
    border-color: #ffd700;
}

.matchbooks-body {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.matchbooks-container {
    position: relative;
    width: 100%;
    height: 720px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.match-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

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

.matches-count, .skipped-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
}

.matches-count:hover, .skipped-count:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.matches-count i {
    color: #ff6b9d;
    filter: drop-shadow(0 0 6px rgba(255, 107, 157, 0.4));
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 0.9rem;
}

.skipped-count i {
    color: #c9c9c9;
    opacity: 0.8;
    font-size: 0.9rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.swipe-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    position: relative;
}

.swipe-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(156, 136, 255, 0.05) 0%, transparent 50%);
    animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.swipe-card-stack {
    position: relative;
    width: 440px;
    height: 550px;
    transform-style: preserve-3d;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.95) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 10px 20px rgba(0, 0, 0, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    cursor: grab;
    transition: opacity 0.3s ease-out,
                box-shadow 0.3s ease;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

.swipe-card:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2),
                0 15px 30px rgba(0, 0, 0, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.swipe-card.dragging {
    transition: none !important;
    cursor: grabbing;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
                0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.swipe-card.swiped-right {
    transform: translateX(150%) rotate(20deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-card.swiped-left {
    transform: translateX(-150%) rotate(-20deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-card.swiped-up {
    transform: translateY(-150%) rotate(10deg) scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.card-image {
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 50%, #48dbfb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.card-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
}

.card-info {
    padding: 1.75rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 0.98) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 50%;
    position: relative;
}

.card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.card-author {
    color: #8892b0;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.card-description {
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 0.88rem;
    color: #636e72;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(156, 136, 255, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-stat:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(156, 136, 255, 0.1) 100%);
    transform: translateY(-2px);
}

.card-stat i {
    background: linear-gradient(135deg, #667eea 0%, #9c88ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
}

.swipe-indicators {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.like-indicator, .nope-indicator, .super-indicator {
    position: absolute;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.like-indicator {
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(-15deg);
    color: white;
    border: 3px solid rgba(81, 207, 102, 0.5);
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.9) 0%, rgba(72, 219, 251, 0.9) 100%);
}

.nope-indicator {
    top: 50%;
    left: 20px;
    transform: translateY(-50%) rotate(15deg);
    color: white;
    border: 3px solid rgba(255, 107, 157, 0.5);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9) 0%, rgba(255, 87, 87, 0.9) 100%);
}

.super-indicator {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    color: white;
    border: 3px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 237, 78, 0.9) 100%);
}

.like-indicator i, .nope-indicator i, .super-indicator i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes indicatorPulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.swipe-card.tilting-right {
    box-shadow: 0 30px 80px rgba(81, 207, 102, 0.3),
                0 15px 30px rgba(81, 207, 102, 0.2),
                inset 0 0 30px rgba(81, 207, 102, 0.1);
}

.swipe-card.tilting-left {
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.3),
                0 15px 30px rgba(255, 107, 157, 0.2),
                inset 0 0 30px rgba(255, 107, 157, 0.1);
}

.swipe-card.tilting-up {
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.3),
                0 15px 30px rgba(255, 215, 0, 0.2),
                inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.swipe-controls {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    padding: 1.75rem;
    background: linear-gradient(to bottom, rgba(15, 15, 30, 0.5) 0%, rgba(15, 15, 30, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.swipe-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.6rem;
    position: relative;
    overflow: hidden;
}

.swipe-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.swipe-btn:hover {
    transform: scale(1.15) translateY(-3px);
}

.swipe-btn:hover::before {
    width: 100%;
    height: 100%;
}

.swipe-btn:active {
    transform: scale(0.95);
}

.nope-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 245, 0.95) 100%);
    color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.25),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.nope-btn:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.35),
                inset 0 1px 2px rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, #fff 0%, #ffe5e5 100%);
}

.like-btn {
    background: linear-gradient(135deg, #51cf66 0%, #48dbfb 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(81, 207, 102, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(81, 207, 102, 0.2);
    position: relative;
}

.like-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #51cf66, #48dbfb, #51cf66);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.like-btn:hover {
    box-shadow: 0 12px 35px rgba(81, 207, 102, 0.4),
                inset 0 1px 3px rgba(255, 255, 255, 0.4);
    transform: scale(1.15) translateY(-3px) rotate(5deg);
}

.like-btn:hover::after {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

.super-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35),
                    inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5),
                    0 0 20px rgba(255, 215, 0, 0.3),
                    inset 0 1px 2px rgba(255, 255, 255, 0.7);
    }
}

.super-btn:hover {
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5),
                0 0 30px rgba(255, 215, 0, 0.4),
                inset 0 1px 3px rgba(255, 255, 255, 0.7);
    transform: scale(1.15) translateY(-3px) rotate(-5deg);
}

.matches-btn {
    background: linear-gradient(135deg, rgba(156, 136, 255, 0.95) 0%, rgba(102, 126, 234, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(156, 136, 255, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(156, 136, 255, 0.2);
    position: relative;
}

.matches-btn:hover {
    box-shadow: 0 12px 35px rgba(156, 136, 255, 0.4),
                inset 0 1px 3px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #9c88ff 0%, #667eea 100%);
}

.matches-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff5757 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.keyboard-hints {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(15, 15, 30, 0.8) 0%, rgba(15, 15, 30, 0.5) 100%);
    font-size: 0.9rem;
    color: #a8b2d1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.keyboard-hints span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyboard-hints kbd {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    color: white;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.matches-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    padding: 2rem;
    overflow-y: auto;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.matches-list h4 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.match-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(156, 136, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.match-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 50%, #48dbfb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.match-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(156, 136, 255, 0.3);
    border-color: rgba(156, 136, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.match-item:hover::before {
    opacity: 0.1;
}

.match-item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 157, 0.3));
}

.match-item-title {
    font-weight: 700;
    font-size: 1.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
}

.match-item-author {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #a8b2d1;
}

.match-item-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

.match-item-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.match-item-stats span:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.match-item-stats i {
    font-size: 0.85rem;
    color: #feca57;
}

.match-item-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(156, 136, 255, 0.2) 100%);
    border: 1px solid rgba(156, 136, 255, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.match-item-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.match-item-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(156, 136, 255, 0.3) 100%);
    border-color: rgba(156, 136, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 136, 255, 0.3);
}

.match-item-btn:hover::before {
    width: 200%;
    height: 200%;
}

.no-more-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-more-cards i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #9c88ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(156, 136, 255, 0.3));
}

.no-more-cards h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-more-cards p {
    color: #a8b2d1;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.no-more-cards .btn {
    background: linear-gradient(135deg, #667eea 0%, #9c88ff 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-more-cards .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.matchbooks-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.loading-spinner {
    margin-bottom: 2rem;
    position: relative;
}

.loading-spinner i {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 50%, #48dbfb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heartPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 157, 0.4));
}

@keyframes heartPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 20px rgba(255, 107, 157, 0.4));
    }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { 
        transform: scale(1.3) rotate(5deg);
        filter: drop-shadow(0 6px 30px rgba(255, 107, 157, 0.6));
    }
    75% { transform: scale(1.1) rotate(-3deg); }
}

.matchbooks-loading h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #9c88ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.matchbooks-loading p {
    color: #a8b2d1;
    font-size: 1.05rem;
    opacity: 0.9;
}

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

.swipe-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 15, 30, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.swipe-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b9d, #feca57, #48dbfb, #ff6b9d);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: rainbowRotate 3s linear infinite;
}

@keyframes rainbowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.swipe-card:hover::before {
    opacity: 0.2;
}

.super-like-animation {
    animation: superLikeExplode 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes superLikeExplode {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .matchbooks-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    .modal-header {
        padding: 1rem;
        background: linear-gradient(135deg, rgba(20, 20, 40, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    }
    
    .matchbooks-container {
        height: calc(100vh - 60px);
    }
    
    .match-stats {
        padding: 0.4rem;
        font-size: 0.85rem;
        gap: 1.5rem;
    }
    
    .matches-count, .skipped-count {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .matches-count i, .skipped-count i {
        font-size: 0.85rem;
    }
    
    .swipe-container {
        padding: 0.5rem 0;
        padding-bottom: 140px;
    }
    
    .swipe-card-stack {
        width: 90%;
        max-width: 380px;
        height: 58vh;
        max-height: 480px;
        margin-bottom: 40px;
    }
    
    .swipe-card {
        height: 100%;
        border-radius: 20px;
    }
    
    .card-image {
        height: 45%;
    }
    
    .card-info {
        height: 55%;
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.35rem;
    }
    
    .card-description {
        -webkit-line-clamp: 3;
        font-size: 0.92rem;
        line-height: 1.4;
    }
    
    .card-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-stat {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
        min-width: calc(33% - 0.5rem);
    }
    
    .keyboard-hints {
        display: none;
    }
    
    .swipe-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(15, 15, 30, 0.98) 0%, rgba(15, 15, 30, 0.95) 100%);
        backdrop-filter: blur(15px);
        z-index: 5;
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .swipe-btn {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .matches-badge {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        top: -6px;
        right: -6px;
    }
    
    .matches-list {
        padding: 1.5rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .match-item {
        padding: 1.25rem;
    }
    
    .matchbooks-loading h3 {
        font-size: 1.5rem;
    }
    
    .matchbooks-loading p {
        font-size: 0.95rem;
    }
    
    .loading-spinner i {
        font-size: 3.5rem;
    }
    
    .modal-header .close-btn,
    .modal-header #closeMatchbooksModal {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1.8rem !important;
        background: linear-gradient(135deg, #ff6b9d 0%, #ff5757 100%) !important;
        border: 3px solid white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 157, 0.6) !important;
        transition: all 0.3s ease !important;
        position: fixed !important;
        top: 30px !important;
        right: 5px !important;
        z-index: 10001 !important;
        opacity: 1 !important;
        font-weight: bold !important;
        padding: 0 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .modal-header .close-btn:hover,
    .modal-header #closeMatchbooksModal:hover,
    .modal-header .close-btn:active,
    .modal-header #closeMatchbooksModal:active {
        background: linear-gradient(135deg, #ff5757 0%, #ff3838 100%) !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 30px rgba(255, 107, 157, 0.7), 0 0 40px rgba(255, 87, 87, 0.8) !important;
        border-color: #ffd700 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .modal-header .close-btn,
    .modal-header #closeMatchbooksModal {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 1.5rem !important;
        position: fixed !important;
        top: 25px !important;
        right: 5px !important;
        border: 2px solid white !important;
        z-index: 10001 !important;
    }
}