* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    min-height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    position: fixed;
    width: 100%;
}

.swipe-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    position: relative;
    overflow-x: hidden;
}

/* Header */
.swipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.swipe-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Counter */
.swipe-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.swipe-counter:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.counter-icon {
    font-size: 18px;
    animation: pulse-heart 0.6s ease-in-out;
}

@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.counter-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    min-width: 24px;
}

/* Main swipe area */
.swipe-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    padding: 40px 20px;
    gap: 24px;
}

/* Tagline */
.swipe-tagline {
    text-align: center;
    max-width: 500px;
    z-index: 5;
    padding: 0 20px;
}

.swipe-tagline h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.swipe-tagline p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.5;
}

/* Cards container */
.cards-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 520px;
    flex-shrink: 0;
}

/* Cards */
.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    cursor: grab;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.swipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 24px;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.active {
    z-index: 20;
}

.swipe-card.stacked {
    z-index: 10;
    pointer-events: none;
}

.card-number {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

/* Swipe indicators */
.swipe-indicators {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    pointer-events: none;
    z-index: 1;
}

.indicator-left,
.indicator-right {
    font-size: 32px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.indicator-left {
    color: #ff6b6b;
    border: 3px solid #ff6b6b;
    transform: rotate(-25deg);
}

.swipe-card.swipe-left .indicator-left {
    opacity: 1;
    animation: pulse-left 0.3s ease;
}

@keyframes pulse-left {
    0% { transform: rotate(-25deg) scale(1); }
    50% { transform: rotate(-25deg) scale(1.1); }
    100% { transform: rotate(-25deg) scale(1); }
}

.indicator-right {
    color: #51cf66;
    border: 3px solid #51cf66;
    transform: rotate(25deg);
}

.swipe-card.swipe-right .indicator-right {
    opacity: 1;
    animation: pulse-right 0.3s ease;
}

@keyframes pulse-right {
    0% { transform: rotate(25deg) scale(1); }
    50% { transform: rotate(25deg) scale(1.1); }
    100% { transform: rotate(25deg) scale(1); }
}

/* Animations */
@keyframes flyToSkip {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-500px, -300px) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes flyToApprove {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(100px, -100px) rotate(15deg);
    }
    100% {
        transform: translate(calc(100vw - 60px), -100px) rotate(0deg) scale(0.3);
        opacity: 0;
    }
}

/* Empty state */
.swipe-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Instructions */
.swipe-instructions {
    padding: 20px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: calc(100% - 40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    margin: 0 auto;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-button {
    flex: 1;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.modal-button-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modal-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.modal-button-leave {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.modal-button-leave:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.4);
}

.modal-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .swipe-title {
        font-size: 24px;
    }

    .swipe-tagline h2 {
        font-size: 24px;
    }

    .swipe-tagline p {
        font-size: 15px;
    }

    .cards-container {
        max-width: 90%;
        height: 480px;
    }

    .swipe-card {
        border-radius: 20px;
    }

    .card-number {
        font-size: 48px;
    }

    .indicator-left,
    .indicator-right {
        font-size: 24px;
        padding: 6px 12px;
    }

    .modal-content {
        padding: 32px 24px;
        width: calc(100% - 32px);
        max-width: 360px;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .swipe-title {
        font-size: 20px;
    }

    .swipe-counter {
        padding: 6px 12px;
        gap: 6px;
    }

    .counter-icon {
        font-size: 16px;
    }

    .counter-text {
        font-size: 16px;
    }

    .swipe-tagline h2 {
        font-size: 20px;
    }

    .swipe-tagline p {
        font-size: 14px;
    }

    .cards-container {
        max-width: 95%;
        height: 420px;
    }

    .swipe-card {
        border-radius: 16px;
    }

    .card-number {
        font-size: 40px;
    }

    .swipe-area {
        padding: 20px 10px;
        gap: 16px;
    }

    @keyframes flyToApprove {
        0% {
            transform: translate(0, 0) rotate(0deg);
            opacity: 1;
        }
        50% {
            transform: translate(50px, -50px) rotate(15deg);
        }
        100% {
            transform: translate(calc(100vw - 40px), -50px) rotate(0deg) scale(0.25);
            opacity: 0;
        }
    }
}
